游戏王残局简化版

Dragonmaids vs Dragons_衍生版_2.lua at [5985f1c474]
Login

Dragonmaids vs Dragons_衍生版_2.lua at [5985f1c474]

File Dragonmaids vs Dragons_衍生版_2.lua artifact 088a4bb084 part of check-in 5985f1c474


--[[message
卡数:27
规则:大师2020
This Puzzle is made by 闪光的白日梦 and optimized by Eroldin.
]]

Debug.SetAIName("闪光的白日梦")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,5)
Debug.SetPlayerInfo(0,1100,0,0)
Debug.SetPlayerInfo(1,12900,0,0)

Debug.AddCard(40110009,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
Debug.AddCard(78625592,1,1,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
Debug.AddCard(42055234,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
Debug.AddCard(49575521,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
Debug.AddCard(32600024,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
Debug.AddCard(15848542,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
Debug.AddCard(24799107,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(41232647,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(14625090,0,0,LOCATION_SZONE,0,POS_FACEUP_ATTACK)
Debug.AddCard(11741041,0,0,LOCATION_SZONE,1,POS_FACEUP_ATTACK)
Debug.AddCard(62256492,0,0,LOCATION_HAND,0,POS_FACEUP_ATTACK)
Debug.AddCard(62256492,0,0,LOCATION_SZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(77515704,0,0,LOCATION_SZONE,3,POS_FACEUP_ATTACK)
Debug.AddCard(56051086,0,0,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
Debug.AddCard(40398073,0,0,LOCATION_HAND,0,POS_FACEUP_ATTACK)
--~ Debug.AddCard(69196160,0,0,LOCATION_HAND,0,POS_FACEUP_ATTACK)
Debug.AddCard(76782778,0,0,LOCATION_HAND,3,POS_FACEUP_ATTACK)
Debug.AddCard(13171876,0,0,LOCATION_HAND,4,POS_FACEUP_ATTACK)
Debug.AddCard(80161395,0,0,LOCATION_HAND,5,POS_FACEUP_ATTACK)
Debug.AddCard(44095762,1,1,LOCATION_SZONE,0,POS_FACEDOWN_ATTACK)
Debug.AddCard(99267151,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
Debug.AddCard(86780027,1,1,LOCATION_SZONE,1,POS_FACEUP_ATTACK)

Debug.AddCard(50913601,1,1,LOCATION_SZONE,5,POS_FACEUP_ATTACK)
Debug.AddCard(54250060,0,0,LOCATION_SZONE,5,POS_FACEUP_ATTACK)
Debug.AddCard(99267151,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(99267151,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
Debug.AddCard(77910045,1,1,LOCATION_SZONE,4,POS_FACEUP_ATTACK)
Debug.AddCard(10669138,1,1,LOCATION_MZONE,6,POS_FACEUP_ATTACK)
Debug.ReloadFieldEnd()
aux.BeginPuzzle()



local str = {}
local fun = {}

local cache1

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_who_activate_the_effect
    , card_gruop_for_effect
    , player_for_effect_event
    , value_for_effect
    , effect_for_trigger
    , reason_for_trigger
    , player_who_trigger)

    cache_1 = Duel.GetLP(1)

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


fun["通关邀请"]()