游戏王残局简化版

AlphaKretin_02_Set_Rotation.lua at [b342293e3d]
Login

AlphaKretin_02_Set_Rotation.lua at [b342293e3d]

File AlphaKretin_02_Set_Rotation.lua artifact b8bb81a2cd part of check-in b342293e3d


--[[message
卡数:20
规则:新大师
Field spells are fun, right?
]]
Debug.SetAIName("AlphaKretin")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,4)

Debug.SetPlayerInfo(0,1000,0,0)
Debug.SetPlayerInfo(1,3000,0,0)

--AI's field.
Debug.AddCard(30459350,1,1,LOCATION_SZONE,2,POS_FACEUP) --Imp Iron Wall

--AI's Extra Deck
Debug.AddCard(23995346,1,1,LOCATION_EXTRA,0,POS_FACEDOWN) --Omega
Debug.AddCard(23995346,1,1,LOCATION_EXTRA,0,POS_FACEDOWN) --LS Mich
Debug.AddCard(23995346,1,1,LOCATION_EXTRA,0,POS_FACEDOWN) --Black Rose
Debug.AddCard(23995346,1,1,LOCATION_EXTRA,0,POS_FACEDOWN) --LS Minerva
Debug.AddCard(23995346,1,1,LOCATION_EXTRA,0,POS_FACEDOWN) --Bujin Tsukuyomi
Debug.AddCard(23995346,1,1,LOCATION_EXTRA,0,POS_FACEDOWN) --Emeral
Debug.AddCard(23995346,1,1,LOCATION_EXTRA,0,POS_FACEDOWN) --Diamond Dire

--AI’s GY
Debug.AddCard(34710660,1,1,LOCATION_GRAVE,0,POS_FACEUP) --EMG Turtle

--Player's Extra Deck
Debug.AddCard(50091196,0,0,LOCATION_EXTRA,0,POS_FACEDOWN) --Formula Synchron
Debug.AddCard(44852429,0,0,LOCATION_EXTRA,0,POS_FACEDOWN) --Siegfried
Debug.AddCard(65536818,0,0,LOCATION_EXTRA,0,POS_FACEDOWN) --Denglong
Debug.AddCard(82956492,0,0,LOCATION_EXTRA,0,POS_FACEDOWN) --D'Arc
Debug.AddCard(13455674,0,0,LOCATION_EXTRA,0,POS_FACEDOWN) --Crystron von double tuner

--Player's Hand
Debug.AddCard(64280356,0,0,LOCATION_HAND,0,POS_FACEDOWN) --Tincan
Debug.AddCard(11609969,0,0,LOCATION_HAND,0,POS_FACEDOWN) --Tincan

--Player's Field
Debug.AddCard(73468603,0,0,LOCATION_SZONE,2,POS_FACEDOWN) --Set Rotation
Debug.AddCard(43898403,0,0,LOCATION_SZONE,3,POS_FACEDOWN) --Twinsters

--Player's Main Deck
Debug.AddCard(61488417,0,0,LOCATION_DECK,0,POS_FACEDOWN) --Chiwen
Debug.AddCard(89189982,0,0,LOCATION_DECK,0,POS_FACEDOWN) --Mare Mare
Debug.AddCard(73360025,0,0,LOCATION_DECK,0,POS_FACEDOWN) --Contract w/ Swamp
Debug.AddCard(19580308,0,0,LOCATION_DECK,0,POS_FACEDOWN) --D/D Lamia
Debug.AddCard(46372010,0,0,LOCATION_DECK,0,POS_FACEDOWN) --Contract w/ Gate
Debug.AddCard(1274455,0,0,LOCATION_DECK,0,POS_FACEDOWN) --Soartroopers
Debug.AddCard(67237709,0,0,LOCATION_DECK,0,POS_FACEDOWN) --Kozmotown
Debug.AddCard(85668449,0,0,LOCATION_DECK,0,POS_FACEDOWN) --Brain Lab

--Player's GY
Debug.AddCard(5133471,0,0,LOCATION_GRAVE,0,POS_FACEUP) --Galaxy Cyclone
Debug.AddCard(58695102,0,0,LOCATION_GRAVE,0,POS_FACEUP) --Recover

Debug.ReloadFieldEnd()
--~ Debug.ShowHint("Win in one turn!")
--Below makes it a one turn puzzle.
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)