游戏王残局简化版

LV-015.lua at [1e14de5096]
Login

LV-015.lua at [1e14de5096]

File single/LV-015.lua artifact e4eab5840c part of check-in 1e14de5096


--[[message
卡数:13
规则:大师3
]]
Debug.SetAIName("Level-015")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI)
Debug.SetPlayerInfo(0,8000,0,0)
Debug.SetPlayerInfo(1,8100,0,0)

Debug.AddCard(31786629,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(24611934,0,0,LOCATION_MZONE,3,POS_FACEUP_ATTACK)

Debug.AddCard(43641473,0,0,LOCATION_SZONE,0,POS_FACEDOWN)
Debug.AddCard(43641473,0,0,LOCATION_SZONE,1,POS_FACEDOWN)
Debug.AddCard(74701381,0,0,LOCATION_SZONE,2,POS_FACEDOWN)
Debug.AddCard(74701381,0,0,LOCATION_SZONE,3,POS_FACEDOWN)

Debug.AddCard(40619825,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(61405855,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(23171610,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(86318356,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(18161786,0,0,LOCATION_HAND,0,POS_FACEDOWN)

local m01=Debug.AddCard(75347539,1,1,LOCATION_MZONE,2,POS_FACEUP_DEFENCE)
local s01=Debug.AddCard(98495314,1,1,LOCATION_SZONE,2,POS_FACEUP_ATTACK)
Debug.PreEquip(s01,m01)

Debug.ReloadFieldEnd()
aux.BeginPuzzle()


local str = {}
local fun = {}

local cache_1

fun["通关邀请"] = function()
  local effect_100
  effect_100 = Effect.GlobalEffect()
  effect_100:SetType(EFFECT_TYPE_FIELD
    + EFFECT_TYPE_CONTINUOUS)
  effect_100:SetCode(EVENT_DAMAGE)
  function cache_1()

    cache_1 = Duel.GetLP(1)

    if cache_1 <= 0 then
      cache_1 = true
    else
      cache_1 = false
      end

    return cache_1
    end
  effect_100:SetCondition(cache_1)
  function cache_1()
    Debug.ShowHint("残局群181175613")
    return
    end
  effect_100:SetOperation(cache_1)
  Duel.RegisterEffect(effect_100
    , 0)
  end

fun["通关邀请"]()