游戏王残局简化版

Artifact [6c7de7aa3b]
Login

Artifact [6c7de7aa3b]

Artifact 6c7de7aa3b2ac0b6253c74d818d3c1b03bd9d9751bd2aec9193add6b01140e7b:


local str = {}

local cache_1
local cache_2

_G["通关邀请"] = 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

_G["开局说明"] = function()
  str["这个残局的效果卡数量"] = 0

  str["我方卡组"] = Duel.GetFieldGroupCount(0,LOCATION_DECK,0)
  str["我方墓地"] = Duel.GetFieldGroupCount(0,LOCATION_GRAVE,0)
  str["我方怪兽区"] = Duel.GetFieldGroupCount(0,LOCATION_MZONE,0)
  str["我方手卡"] = Duel.GetFieldGroupCount(0,LOCATION_HAND,0)
  str["我方灵摆区"] = Duel.GetFieldGroupCount(0,LOCATION_PZONE,0)
  str["我方除外区"] = Duel.GetFieldGroupCount(0,LOCATION_REMOVED,0)
  str["我方额外卡组"] = Duel.GetFieldGroupCount(0,LOCATION_EXTRA,0)
  str["我方魔陷区"] = Duel.GetFieldGroupCount(0,LOCATION_SZONE,0)

  str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方卡组"]
  str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方墓地"]
  str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方怪兽区"]
  str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方手卡"]
  str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方灵摆区"]
  str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方除外区"]
  str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方额外卡组"]
  str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方魔陷区"]

  Debug.ShowHint(str["这个残局的效果卡数量"])
  end