游戏王残局简化版

sample2.lua at [29959a9986]
Login

sample2.lua at [29959a9986]

File single/sample2.lua artifact f11b0ce377 part of check-in 29959a9986


--[[message
卡数:8
规则:大师2020
同调召唤入门
]]
Debug.SetAIName("sample2")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,5)
Debug.SetPlayerInfo(0,100,0,0)
Debug.SetPlayerInfo(1,3100,0,0)

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

Debug.AddCard(34100324,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)

Debug.AddCard(83764718,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(96363153,0,0,LOCATION_HAND,0,POS_FACEDOWN)

Debug.AddCard(63977008,0,0,LOCATION_DECK,1,POS_FACEUP_ATTACK)
Debug.AddCard(40348946,0,0,LOCATION_DECK,2,POS_FACEUP_ATTACK)

Debug.AddCard(68124775,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(26593852,0,0,LOCATION_EXTRA,1,POS_FACEDOWN)

Debug.AddCard(34408491,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(16527176,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK)

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)