游戏王残局简化版

sample1.lua at [748a21fd39]
Login

sample1.lua at [748a21fd39]

File sample1.lua artifact 312022d7b0 part of check-in 748a21fd39


--[[message
卡数:6
规则:大师2020
游戏王基本操作
]]
Debug.SetAIName("sample1")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,5)
Debug.SetPlayerInfo(0,100,0,0)
Debug.SetPlayerInfo(1,1500,0,0)

Debug.AddCard(89943723,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)

Debug.AddCard(94192409,0,0,LOCATION_SZONE,1,POS_FACEDOWN)
Debug.AddCard(97077563,0,0,LOCATION_SZONE,2,POS_FACEDOWN)
Debug.AddCard(60082869,0,0,LOCATION_SZONE,3,POS_FACEDOWN)
Debug.AddCard(84749824,0,0,LOCATION_SZONE,4,POS_FACEDOWN)

Debug.AddCard(62113340,0,0,LOCATION_HAND,0,POS_FACEDOWN)

Debug.AddCard(89631139,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
Debug.AddCard(70781052,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(70781052,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK)

Debug.AddCard(70342110,1,1,LOCATION_SZONE,2,POS_FACEDOWN)
Debug.AddCard(97077563,1,1,LOCATION_SZONE,3,POS_FACEDOWN)

Debug.ReloadFieldEnd()
aux.BeginPuzzle()

local e999=Effect.GlobalEffect()
e999:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e999:SetCode(EVENT_DAMAGE)
e999:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(1)<=0 end)
e999:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
Debug.ShowHint("残局群181175613") end)
Duel.RegisterEffect(e999,0)