游戏王残局简化版

19.Let's GaGaGa.lua at [01d5320f0b]
Login

19.Let's GaGaGa.lua at [01d5320f0b]

File 19.Let's GaGaGa.lua artifact 7bd29374e2 part of check-in 01d5320f0b


--[[message
卡数:27
规则:大师3
一起来我我我
]]
Debug.SetAIName("四妹")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,3)
Debug.SetPlayerInfo(0,700,0,0)
Debug.SetPlayerInfo(1,12200,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,6,6,nil)
if g:GetCount()>0 then
  Duel.SendtoHand(g,nil,REASON_RULE)
end end)
Duel.RegisterEffect(e0,0)

Debug.AddCard(14785765,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(71453557,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(72355441,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(90673413,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(51790181,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(81816475,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(12298909,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(52105192,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(98494543,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(26082117,0,0,LOCATION_GRAVE,0,POS_FACEUP)
Debug.AddCard(33420078,0,0,LOCATION_GRAVE,0,POS_FACEUP)
Debug.AddCard(77334267,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(92661479,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(38495396,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(91949988,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(95040215,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(65878864,0,0,LOCATION_MZONE,2,POS_FACEDOWN_DEFENSE)
Debug.AddCard(61705417,0,0,LOCATION_SZONE,1,POS_FACEDOWN)
Debug.AddCard(97077563,0,0,LOCATION_SZONE,2,POS_FACEDOWN)
Debug.AddCard(44330098,1,1,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(75652080,1,1,LOCATION_GRAVE,0,POS_FACEUP)
Debug.AddCard(34710660,1,1,LOCATION_GRAVE,0,POS_FACEUP)
Debug.AddCard(80117527,1,1,LOCATION_GRAVE,0,POS_FACEUP,true)
Debug.AddCard(1992816,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK,true)
Debug.AddCard(89631139,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
local g1=Debug.AddCard(66235877,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
g1:CompleteProcedure()
Debug.AddCard(44095762,1,1,LOCATION_SZONE,1,POS_FACEDOWN)
Debug.AddCard(44095762,1,1,LOCATION_SZONE,2,POS_FACEDOWN)
Debug.AddCard(44095762,1,1,LOCATION_SZONE,3,POS_FACEDOWN)
Debug.ReloadFieldEnd()
Debug.ShowHint("从卡组中选择六张卡加入手卡!")
aux.BeginPuzzle()
local str = {}
local fun = {}

local cache_1

fun["通关邀请"] = function()
  local effect_100
  effect_100 = Effect.GlobalEffect()
  effect_100:SetType(EFFECT_TYPE_FIELD
    + EFFECT_TYPE_CONTINUOUS)
  effect_100:SetCode(EVENT_DAMAGE)
  function cache_1()

    cache_1 = Duel.GetLP(1)

    if cache_1 <= 0 then
      cache_1 = true
    else
      cache_1 = false
      end

    return cache_1
    end
  effect_100:SetCondition(cache_1)
  function cache_1()
    Debug.ShowHint("残局群181175613")
    return
    end
  effect_100:SetOperation(cache_1)
  Duel.RegisterEffect(effect_100
    , 0)
  end

fun["通关邀请"]()