游戏王残局简化版

NH-02.lua at [780f65c9b3]
Login

NH-02.lua at [780f65c9b3]

File NH-02.lua artifact 4482f864ad part of check-in 780f65c9b3


--[[message
卡数:49
规则:大师3
大风起兮云飞扬!
]]
Debug.SetAIName("顽雨沉风")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_PSEUDO_SHUFFLE+DUEL_SIMPLE_AI,3)
Debug.SetPlayerInfo(0,3100,0,0)
Debug.SetPlayerInfo(1,123700,0,0)

local e0=Effect.GlobalEffect()
e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_ADJUST)
e0:SetCountLimit(1)
e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(0)>0 end)
e0:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK,0,8,8,nil)
if g:GetCount()>0 then
  Duel.SendtoHand(g,nil,REASON_RULE)
end end)
Duel.RegisterEffect(e0,0)

Debug.AddCard(7198399,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
Debug.AddCard(99666430,0,0,LOCATION_MZONE,0,POS_FACEUP_ATTACK,true)
Debug.AddCard(68815132,0,0,LOCATION_MZONE,0,POS_FACEUP_ATTACK)
Debug.AddCard(46247516,1,1,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
--~ Debug.AddCard(96945958,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(17658803,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(17658803,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(96945958,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(71007216,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(56585883,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
Debug.AddCard(5399521,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(70117860,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(98867329,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(56747793,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(37011715,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(73356503,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(7044562,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(76812113,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK)
--~ Debug.AddCard(68815132,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
Debug.AddCard(14785765,0,0,LOCATION_MZONE,4,POS_FACEUP_ATTACK)
--~ Debug.AddCard(70117860,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
Debug.AddCard(70117860,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
--~ Debug.AddCard(7608148,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
c=Debug.AddCard(21516908,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
c:CompleteProcedure()
Debug.AddCard(80208158,1,1,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
c=Debug.AddCard(14577226,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
c:CompleteProcedure()
Debug.AddCard(98506199,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK,true)
Debug.AddCard(70939418,0,0,LOCATION_REMOVED,0,POS_FACEUP_ATTACK)
Debug.AddCard(82044279,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(64880894,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(42110604,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(14816688,0,0,LOCATION_SZONE,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(52503575,0,0,LOCATION_SZONE,2,POS_FACEDOWN_ATTACK)
Debug.AddCard(19162134,0,0,LOCATION_SZONE,5,POS_FACEUP_ATTACK)
Debug.AddCard(79333300,0,0,LOCATION_SZONE,3,POS_FACEDOWN_ATTACK)
Debug.AddCard(79333300,0,0,LOCATION_SZONE,4,POS_FACEDOWN_ATTACK)
Debug.AddCard(67775894,0,0,LOCATION_SZONE,1,POS_FACEDOWN_ATTACK)
Debug.AddCard(43722862,0,0,LOCATION_DECK,1,POS_FACEUP_ATTACK)
Debug.AddCard(12525049,0,0,LOCATION_DECK,2,POS_FACEUP_ATTACK)
--~ Debug.AddCard(56585883,0,0,LOCATION_DECK,3,POS_FACEUP_ATTACK)
Debug.AddCard(12247206,0,0,LOCATION_DECK,4,POS_FACEUP_ATTACK)
--~ Debug.AddCard(88392300,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
Debug.AddCard(49267971,0,0,LOCATION_DECK,4,POS_FACEUP_ATTACK)
Debug.AddCard(27753563,0,0,LOCATION_DECK,4,POS_FACEUP_ATTACK)
--~ Debug.AddCard(56585883,0,0,LOCATION_DECK,3,POS_FACEUP_ATTACK)
--~ Debug.AddCard(67775894,0,0,LOCATION_DECK,5,POS_FACEUP_ATTACK)
Debug.AddCard(80161395,0,0,LOCATION_DECK,6,POS_FACEUP_ATTACK)
Debug.AddCard(31178212,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
Debug.AddCard(33776734,1,1,LOCATION_HAND,0,POS_FACEUP_ATTACK)
Debug.AddCard(60643553,1,1,LOCATION_HAND,0,POS_FACEUP_ATTACK)
--~ Debug.AddCard(24731453,1,1,LOCATION_HAND,0,POS_FACEUP_ATTACK)
Debug.AddCard(64554883,1,1,LOCATION_MZONE,0,POS_FACEUP_ATTACK)
Debug.AddCard(46247516,1,1,LOCATION_MZONE,0,POS_FACEUP_ATTACK)
Debug.AddCard(12247206,1,1,LOCATION_SZONE,0,POS_FACEDOWN_ATTACK)
--~ Debug.AddCard(5833312,1,1,LOCATION_SZONE,5,POS_FACEUP_ATTACK)
Debug.AddCard(71829750,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
Debug.AddCard(14342283,1,1,LOCATION_SZONE,1,POS_FACEUP_ATTACK)
Debug.AddCard(67616300,1,1,LOCATION_SZONE,5,POS_FACEUP_ATTACK)
Debug.AddCard(44405066,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(46247516,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(29401950,1,1,LOCATION_SZONE,2,POS_FACEDOWN_ATTACK)

Debug.AddCard(64554883,1,1,LOCATION_MZONE,4,POS_FACEUP_ATTACK)
Debug.AddCard(7198399,1,1,LOCATION_MZONE,4,POS_FACEUP_ATTACK)
Debug.AddCard(67949763,1,1,LOCATION_SZONE,4,POS_FACEDOWN_ATTACK)
Debug.AddCard(67949763,1,1,LOCATION_SZONE,3,POS_FACEDOWN_ATTACK)
Debug.ReloadFieldEnd()

Debug.ShowHint("从卡组中选择八张卡加入手卡!")
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)