游戏王残局简化版

X-LV-47.lua at [72c02e08f7]
Login

X-LV-47.lua at [72c02e08f7]

File single/X-LV-47.lua artifact 708925ae5a part of check-in 72c02e08f7


--[[message
卡数:8
规则:新大师
个十百千万?
]]
--created by puzzle editor
Debug.SetAIName("顽雨沉风")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,4)
Debug.SetPlayerInfo(0,621543,0,0)
Debug.SetPlayerInfo(1,231370,0,0)

local c=Debug.AddCard(5758500,1,1,LOCATION_EXTRA,0,POS_FACEUP_ATTACK) 
local n=0

function print_hand(e,tp,eg,ep,ev,re,r,rp)
  local ac=Duel.AnnounceCard(tp)
  local c=Duel.CreateToken(tp,ac)
  if n<1 then
    Duel.SendtoHand(c,nil,REASON_RULE)
    Duel.ShuffleHand(tp)
    n=n+1
  else
    if n==1 then
      Debug.ShowHint("印卡过多,审判降临!")
      Duel.SetLP(0,0)
    else
      n=n+1
      Duel.Remove(c,POS_FACEUP,REASON_RULE)
      Duel.SendtoDeck(c,tp,0,REASON_RULE)
    end
  end
end

local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_BOTH_SIDE)
e1:SetRange(LOCATION_EXTRA)
e1:SetOperation(print_hand)
c:RegisterEffect(e1)

Debug.AddCard(77622396,0,0,LOCATION_SZONE,1,POS_FACEDOWN_ATTACK)
Debug.AddCard(49658464,0,0,LOCATION_SZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(22205600,0,0,LOCATION_SZONE,3,POS_FACEDOWN_ATTACK)

Debug.AddCard(13758665,1,1,LOCATION_SZONE,1,POS_FACEUP_ATTACK)
Debug.AddCard(51452091,1,1,LOCATION_SZONE,3,POS_FACEUP_ATTACK)


local c11=Debug.AddCard(79182538,1,1,LOCATION_MZONE,0,POS_FACEUP_ATTACK)
e11=Effect.CreateEffect(c11)
e11:SetType(EFFECT_TYPE_SINGLE)
e11:SetCode(EFFECT_UPDATE_ATTACK)
e11:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e11:SetValue(1156)
c11:RegisterEffect(e11)
local c12=Debug.AddCard(77603950,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
e12=Effect.CreateEffect(c12)
e12:SetType(EFFECT_TYPE_SINGLE)
e12:SetCode(EFFECT_UPDATE_ATTACK)
e12:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e12:SetValue(1252)
c12:RegisterEffect(e12)
local c13=Debug.AddCard(89631139,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
e13=Effect.CreateEffect(c13)
e13:SetType(EFFECT_TYPE_SINGLE)
e13:SetCode(EFFECT_UPDATE_ATTACK)
e13:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e13:SetValue(1698)
c13:RegisterEffect(e13)
local c14=Debug.AddCard(6367785,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
e14=Effect.CreateEffect(c14)
e14:SetType(EFFECT_TYPE_SINGLE)
e14:SetCode(EFFECT_UPDATE_ATTACK)
e14:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e14:SetValue(652)
c14:RegisterEffect(e14)
local c15=Debug.AddCard(26268488,1,1,LOCATION_MZONE,4,POS_FACEUP_ATTACK)
e15=Effect.CreateEffect(c15)
e15:SetType(EFFECT_TYPE_SINGLE)
e15:SetCode(EFFECT_UPDATE_ATTACK)
e15:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e15:SetValue(254)
c15:RegisterEffect(e15)
local c16=Debug.AddCard(27134689,1,1,LOCATION_MZONE,5,POS_FACEUP_ATTACK)
e16=Effect.CreateEffect(c16)
e16:SetType(EFFECT_TYPE_SINGLE)
e16:SetCode(EFFECT_UPDATE_ATTACK)
e16:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e16:SetValue(800)
c16:RegisterEffect(e16)

local c21=Debug.AddCard(99645428,0,0,LOCATION_MZONE,0,POS_FACEUP_ATTACK)
e21=Effect.CreateEffect(c21)
e21:SetType(EFFECT_TYPE_SINGLE)
e21:SetCode(EFFECT_UPDATE_ATTACK)
e21:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e21:SetValue(-21565)
c21:RegisterEffect(e21)
local c22=Debug.AddCard(46986414,0,0,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
e22=Effect.CreateEffect(c22)
e22:SetType(EFFECT_TYPE_SINGLE)
e22:SetCode(EFFECT_UPDATE_ATTACK)
e22:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e22:SetValue(-56546)
c22:RegisterEffect(e22)
local c23=Debug.AddCard(52367652,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
e23=Effect.CreateEffect(c23)
e23:SetType(EFFECT_TYPE_SINGLE)
e23:SetCode(EFFECT_UPDATE_ATTACK)
e23:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e23:SetValue(-65415)
c23:RegisterEffect(e23)
local c24=Debug.AddCard(57662975,0,0,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
e24=Effect.CreateEffect(c24)
e24:SetType(EFFECT_TYPE_SINGLE)
e24:SetCode(EFFECT_UPDATE_ATTACK)
e24:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e24:SetValue(-45212)
c24:RegisterEffect(e24)
local c25=Debug.AddCard(7562372,0,0,LOCATION_MZONE,4,POS_FACEUP_ATTACK)
e25=Effect.CreateEffect(c25)
e25:SetType(EFFECT_TYPE_SINGLE)
e25:SetCode(EFFECT_UPDATE_ATTACK)
e25:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e25:SetValue(-32215)
c25:RegisterEffect(e25)
local c26=Debug.AddCard(66889139,0,0,LOCATION_MZONE,5,POS_FACEUP_ATTACK)
e26=Effect.CreateEffect(c26)
e26:SetType(EFFECT_TYPE_SINGLE)
e26:SetCode(EFFECT_UPDATE_ATTACK)
e26:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e26:SetValue(-801)
c26:RegisterEffect(e26)

Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)
Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)
Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)
Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)
Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)
Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)


Debug.ReloadFieldEnd()
aux.BeginPuzzle()
local e999=Effect.GlobalEffect()
e999:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e999:SetCode(EVENT_DAMAGE)
e999:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(1)<=0 end)
e999:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
Debug.ShowHint("残局群181175613") end)
Duel.RegisterEffect(e999,0)

Debug.ShowHint("这是一个印卡残局,点击对方额外卡组可以发动《魂之解放》打印任意卡!\n只能打印1张卡到手卡或额外卡组!\n部分怪兽攻守已改变!")
--~ Debug.ShowHint("只能打印1张卡到手卡或额外卡组!")
--~ Debug.ShowHint("场上的怪兽攻击力已改变!")