游戏王残局简化版

sample6.lua at [72c02e08f7]
Login

sample6.lua at [72c02e08f7]

File single/sample6.lua artifact 23983c7c81 part of check-in 72c02e08f7


--[[message
卡数:1
规则:大师2020
灵摆召唤入门2
]]
Debug.SetAIName("sample6")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,5)
Debug.SetPlayerInfo(0,100,0,0)
Debug.SetPlayerInfo(1,2800,0,0)

Debug.AddCard(17390179,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(17390179,0,0,LOCATION_MZONE,1,POS_FACEUP_ATTACK)

Debug.AddCard(35322812,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(17390179,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(35322812,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(53129443,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(28363749,0,0,LOCATION_HAND,0,POS_FACEDOWN)

--~ Debug.AddCard(31386180,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)

Debug.AddCard(67284908,1,1,LOCATION_MZONE,1,POS_FACEUP_DEFENSE)
--~ Debug.AddCard(23205979,1,1,LOCATION_MZONE,2,POS_FACEUP_DEFENCE)
--~ Debug.AddCard(31305911,1,1,LOCATION_MZONE,3,POS_FACEUP_DEFENCE)

--~ Debug.AddCard(44095762,1,1,LOCATION_SZONE,2,POS_FACEDOWN)

Debug.ReloadFieldEnd()
--~ Debug.ShowHint("GAME START!")
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)