游戏王残局简化版

sample9.lua at [94e40230e3]
Login

sample9.lua at [94e40230e3]

File single/sample9.lua artifact f9a31cb1e6 part of check-in 94e40230e3


--[[message
卡数:11
规则:大师2020
综合残局2
]]
Debug.SetAIName("sample9")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,5)
Debug.SetPlayerInfo(0,100,0,0)
Debug.SetPlayerInfo(1,4300,0,0)

Debug.AddCard(00027551,0,0,LOCATION_SZONE,2,POS_FACEDOWN)

Debug.AddCard(67441435,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
Debug.AddCard(50720316,0,0,LOCATION_GRAVE,1,POS_FACEUP_ATTACK)

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

Debug.AddCard(63060238,0,0,LOCATION_DECK,1,POS_FACEUP_ATTACK)
Debug.AddCard(15839054,0,0,LOCATION_DECK,2,POS_FACEUP_ATTACK)
Debug.AddCard(24094653,0,0,LOCATION_DECK,3,POS_FACEUP_ATTACK)
Debug.AddCard(45906428,0,0,LOCATION_DECK,4,POS_FACEUP_ATTACK)

Debug.AddCard(16304628,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(45815891,0,0,LOCATION_EXTRA,1,POS_FACEDOWN)
Debug.AddCard(34086406,0,0,LOCATION_EXTRA,2,POS_FACEDOWN)
Debug.AddCard(17412721,0,0,LOCATION_EXTRA,3,POS_FACEDOWN)

Debug.AddCard(74677422,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(89631139,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK)

--~ Debug.AddCard(70342110,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)