游戏王残局简化版

30.Inhuman Unicore.lua at [a754e6f3f2]
Login

30.Inhuman Unicore.lua at [a754e6f3f2]

File single/30.Inhuman Unicore.lua artifact b5d34f4b27 part of check-in a754e6f3f2


--[[message
卡数:53
规则:大师3
毫无人性的尤尼科
]]
Debug.SetAIName("四妹")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,3)
Debug.SetPlayerInfo(0,2100,0,0)
Debug.SetPlayerInfo(1,33400,0,0)

Debug.AddCard(85605684,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(37742478,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(37011715,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(49267971,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(6850209,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(98045062,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(31829185,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(23434538,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(1475311,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(24508238,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(9622164,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(72989439,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(51630558,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(64034255,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(41442341,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(19439119,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(72892473,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(97651498,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(3972721,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(38737148,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(74848038,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(56399890,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(97439806,0,0,LOCATION_DECK,0,POS_FACEDOWN)
--~ Debug.AddCard(19439119,0,0,LOCATION_DECK,0,POS_FACEDOWN)
--~ Debug.AddCard(72892473,0,0,LOCATION_DECK,0,POS_FACEDOWN)
--~ Debug.AddCard(97651498,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(14198496,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(50091196,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(44155002,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(38354937,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(37910722,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(42956963,0,0,LOCATION_SZONE,2,POS_FACEDOWN)
Debug.AddCard(50933533,1,1,LOCATION_DECK,0,POS_FACEUP)
Debug.AddCard(4906301,1,1,LOCATION_DECK,0,POS_FACEUP)
Debug.AddCard(88305978,1,1,LOCATION_DECK,0,POS_FACEUP)
Debug.AddCard(12275533,1,1,LOCATION_DECK,0,POS_FACEUP)
Debug.AddCard(44330098,1,1,LOCATION_DECK,0,POS_FACEUP)
Debug.AddCard(64605089,1,1,LOCATION_DECK,0,POS_FACEUP)
Debug.AddCard(86039057,1,1,LOCATION_HAND,0,POS_FACEUP)
Debug.AddCard(95360850,1,1,LOCATION_HAND,0,POS_FACEUP)
Debug.AddCard(82593786,1,1,LOCATION_HAND,0,POS_FACEUP)
Debug.AddCard(45118716,1,1,LOCATION_HAND,0,POS_FACEUP)
Debug.AddCard(14017402,1,1,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(80208158,1,1,LOCATION_GRAVE,0,POS_FACEUP)
Debug.AddCard(23899727,1,1,LOCATION_GRAVE,0,POS_FACEUP)
Debug.AddCard(26593852,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK,true)
Debug.AddCard(10248389,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK,true)
Debug.AddCard(71203602,1,1,LOCATION_MZONE,4,POS_FACEUP_ATTACK,true)
local m2=Debug.AddCard(59170782,1,1,LOCATION_MZONE,2,POS_FACEUP_DEFENSE,true)
local s2=Debug.AddCard(8719957,1,1,LOCATION_SZONE,2,POS_FACEUP)
Debug.PreEquip(s2,m2)
Debug.AddCard(58120309,1,1,LOCATION_SZONE,0,POS_FACEDOWN)
Debug.AddCard(70284332,1,1,LOCATION_SZONE,1,POS_FACEDOWN)
Debug.AddCard(59695933,1,1,LOCATION_SZONE,3,POS_FACEDOWN)
Debug.AddCard(48130397,1,1,LOCATION_SZONE,4,POS_FACEDOWN)
Debug.AddCard(37694547,1,1,LOCATION_SZONE,5,POS_FACEUP)
Debug.ReloadFieldEnd()
aux.BeginPuzzle()

local str = {}
local fun = {}

local cache_1
local cache_2

fun["通关邀请"] = function()
  local effect_1
  effect_1 = Effect.GlobalEffect()
  effect_1:SetType(EFFECT_TYPE_FIELD
    + EFFECT_TYPE_CONTINUOUS)
  effect_1: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_1:SetCondition(cache_1)
  function cache_1()
    Debug.ShowHint("残局群181175613")
    return
    end
  effect_1:SetOperation(cache_1)
  Duel.RegisterEffect(effect_1
    , 0)
  end

fun["开局添加手卡"] = function(str_1)
  local effect_1
  effect_1 = Effect.GlobalEffect()
  effect_1:SetType(EFFECT_TYPE_FIELD
    + EFFECT_TYPE_CONTINUOUS)
  effect_1:SetCode(EVENT_ADJUST)
  effect_1:SetCountLimit(1)
  function cache_1()
    return true
    end
  effect_1:SetCondition(cache_1)
  function cache_1(effect_event
    , player_who_activate_the_effect)
    str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
       , Card.IsAbleToHand
       , player_who_activate_the_effect
       , LOCATION_DECK
       , 0
       , str_1
       , str_1
       , nil)
    Duel.SendtoHand(str["玩家选定的卡"]
      , nil
      , REASON_RULE)
    end
  effect_1:SetOperation(cache_1)
  Duel.RegisterEffect(effect_1
    , 0)
  end

fun["通关邀请"]()
fun["开局添加手卡"](5)