游戏王残局简化版

QB081 the frogs.lua at [2ae38e8afd]
Login

QB081 the frogs.lua at [2ae38e8afd]

File QB081 the frogs.lua artifact 31945cef97 part of check-in 2ae38e8afd


--[[message
卡数:
规则:大师3
]]
Debug.SetAIName("QB081 the frogs")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI, 3)
Debug.SetPlayerInfo(0,500,0,0)
Debug.SetPlayerInfo(1,10700,0,0)

Debug.AddCard(4239451,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
Debug.AddCard(84451804,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
Debug.AddCard(23408872,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
Debug.AddCard(1357146,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)

Debug.AddCard(14785765,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
Debug.AddCard(95992081,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(10002346,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(34086406,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(36898537,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(26593852,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(34103656,0,0,LOCATION_SZONE,5,POS_FACEUP_ATTACK)
Debug.AddCard(96947648,0,0,LOCATION_SZONE,2,POS_FACEDOWN_ATTACK)
Debug.AddCard(70865988,0,0,LOCATION_SZONE,3,POS_FACEDOWN_ATTACK)
Debug.AddCard(4239451,0,0,LOCATION_HAND,0,POS_FACEUP_ATTACK)
Debug.AddCard(64034255,0,0,LOCATION_HAND,1,POS_FACEUP_ATTACK)
Debug.AddCard(12525049,0,0,LOCATION_HAND,2,POS_FACEUP_ATTACK)
Debug.AddCard(9126351,0,0,LOCATION_HAND,3,POS_FACEUP_ATTACK)
Debug.AddCard(22842214,0,0,LOCATION_HAND,4,POS_FACEUP_ATTACK)
Debug.AddCard(26400609,0,0,LOCATION_HAND,5,POS_FACEUP_ATTACK)
Debug.AddCard(94415058,0,0,LOCATION_HAND,6,POS_FACEUP_ATTACK)
Debug.AddCard(26400609,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(94739788,1,1,LOCATION_SZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(94739788,1,1,LOCATION_SZONE,3,POS_FACEUP_ATTACK)
Debug.ReloadFieldEnd()
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(effect_event
    , player_for_activate_the_effect
    , card_gruop_for_effect
    , player_for_effect_event
    , value_for_effect
    , effect_for_trigger
    , reason_for_trigger
    , player_for_trigger)

    cache_1 = Duel.GetLP(1)

    return cache_1 <= 0
    end
  effect_100:SetCondition(cache_1)
  function cache_1(effect_event
    , player_for_activate_the_effect
    , card_gruop_for_effect
    , player_for_effect_event
    , value_for_effect
    , effect_for_trigger
    , reason_for_trigger
    , player_for_trigger)
    Debug.ShowHint("残局群181175613")
    return
    end
  effect_100:SetOperation(cache_1)
  Duel.RegisterEffect(effect_100
    , 0)
  end