游戏王残局简化版

X-LV-30.lua at [6ae6335b40]
Login

X-LV-30.lua at [6ae6335b40]

File single/X-LV-30.lua artifact c9d38cfb4a part of check-in 6ae6335b40


--[[message
卡数:6
规则:新大师
]]
--By OURYGO-YGO EZ manager
Debug.SetAIName("顽雨沉风")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,4)
Debug.SetPlayerInfo(0,8000,0,0)
Debug.SetPlayerInfo(1,3900,0,0)
Debug.AddCard(38395123,0,0,LOCATION_DECK,0,POS_FACEDOWN)
--~ Debug.AddCard(25290459,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(90500169,0,0,LOCATION_HAND,0,POS_FACEDOWN)
local g02=Debug.AddCard(46384672,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
local g12=Debug.AddCard(49888191,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
--~ local m02=Debug.AddCard(11741041,0,0,LOCATION_SZONE,2,POS_FACEUP)
Debug.AddCard(75884822,0,0,LOCATION_SZONE,3,POS_FACEDOWN)
--~ Debug.AddCard(70865988,0,0,LOCATION_SZONE,2,POS_FACEDOWN)
local c0=Debug.AddCard(90011152,0,0,LOCATION_SZONE,5,POS_FACEUP)
Debug.AddCard(79335209,0,0,LOCATION_HAND,0,POS_FACEUP_ATTACK)
Debug.AddCard(42941100,0,0,LOCATION_HAND,0,POS_FACEUP_ATTACK)
Debug.AddCard(12482652,0,0,LOCATION_HAND,0,POS_FACEUP_ATTACK)
Debug.AddCard(980973,0,0,LOCATION_GRAVE,0,POS_FACEUP)
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)


local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE_START+PHASE_END)
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetTurnPlayer()==0 end)
e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
Debug.ShowHint("其实这局最多只能打3900血。") end)
Duel.RegisterEffect(e1,0)