游戏王残局简化版

X-LV-27.lua at [fee70f269d]
Login

X-LV-27.lua at [fee70f269d]

File single/X-LV-27.lua artifact 129e3a733f part of check-in fee70f269d


--[[message
新手教学
]]
--By OURYGO-YGO EZ manager
--~ 必须位于残局文件顶部
--~ 加载残局函数库
Debug.AddCard(0,0,0,LOCATION_MZONE,-1,POS_FACEUP)
Debug.SetAIName("顽雨沉风")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,4)
Debug.SetPlayerInfo(0,51100,0,0)
Debug.SetPlayerInfo(1,34600,0,0)
Debug.AddCard(36736723,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(63977008,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(53855409,0,0,LOCATION_HAND,0,POS_FACEDOWN)
local g02=Debug.AddCard(13582837,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
local g12=Debug.AddCard(27134689,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
local m01=Debug.AddCard(26864586,0,0,LOCATION_SZONE,1,POS_FACEDOWN)
--~ Debug.AddCard(61844784,0,0,LOCATION_GRAVE,0,POS_FACEUP)
local m02=Debug.AddCard(403847,0,0,LOCATION_SZONE,2,POS_FACEUP)
local m03=Debug.AddCard(8529136,0,0,LOCATION_SZONE,3,POS_FACEDOWN)
local c1=Debug.AddCard(67616300,0,0,LOCATION_SZONE,5,POS_FACEUP)
Debug.PreAddCounter(c1,0x2a,1) local e1=Effect.CreateEffect(c1) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EFFECT_DESTROY_REPLACE) e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk) 	if chk==0 then return bit.band(r,REASON_RULE)==0 		and e:GetHandler():GetCounter(0x2a)>0 end 	return true end) e1:SetOperation(function (e,tp,eg,ep,ev,re,r,rp,chk) 	e:GetHandler():RemoveCounter(tp,0x2a,1,REASON_EFFECT) end) e1:SetReset(RESET_EVENT+0x1fe0000) c1:RegisterEffect(e1)
Debug.AddCard(60800381,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)Debug.AddCard(53855409,0,0,LOCATION_GRAVE,0,POS_FACEUP)Debug.ReloadFieldEnd()
Debug.ShowHint("魔法防护器的效果已适用!")
aux.BeginPuzzle()
fun["开局说明"]()