游戏王残局简化版

Annotation For single/X-LV-47.lua
Login

Annotation For single/X-LV-47.lua

Origin for each line in single/X-LV-47.lua from check-in e7f204fb3d:

e7f204fb3d 2023-06-29    1: --[[message
e7f204fb3d 2023-06-29    2: 卡数:8
e7f204fb3d 2023-06-29    3: 规则:新大师
e7f204fb3d 2023-06-29    4: 个十百千万?
e7f204fb3d 2023-06-29    5: ]]
e7f204fb3d 2023-06-29    6: --created by puzzle editor
e7f204fb3d 2023-06-29    7: Debug.SetAIName("顽雨沉风")
e7f204fb3d 2023-06-29    8: Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,4)
e7f204fb3d 2023-06-29    9: Debug.SetPlayerInfo(0,621543,0,0)
e7f204fb3d 2023-06-29   10: Debug.SetPlayerInfo(1,231370,0,0)
e7f204fb3d 2023-06-29   11: 
e7f204fb3d 2023-06-29   12: local c=Debug.AddCard(5758500,1,1,LOCATION_EXTRA,0,POS_FACEUP_ATTACK) 
e7f204fb3d 2023-06-29   13: local n=0
e7f204fb3d 2023-06-29   14: 
e7f204fb3d 2023-06-29   15: function print_hand(e,tp,eg,ep,ev,re,r,rp)
e7f204fb3d 2023-06-29   16:   local ac=Duel.AnnounceCard(tp)
e7f204fb3d 2023-06-29   17:   local c=Duel.CreateToken(tp,ac)
e7f204fb3d 2023-06-29   18:   if n<1 then
e7f204fb3d 2023-06-29   19:     Duel.SendtoHand(c,nil,REASON_RULE)
e7f204fb3d 2023-06-29   20:     Duel.ShuffleHand(tp)
e7f204fb3d 2023-06-29   21:     n=n+1
e7f204fb3d 2023-06-29   22:   else
e7f204fb3d 2023-06-29   23:     if n==1 then
e7f204fb3d 2023-06-29   24:       Debug.ShowHint("印卡过多,审判降临!")
e7f204fb3d 2023-06-29   25:       Duel.SetLP(0,0)
e7f204fb3d 2023-06-29   26:     else
e7f204fb3d 2023-06-29   27:       n=n+1
e7f204fb3d 2023-06-29   28:       Duel.Remove(c,POS_FACEUP,REASON_RULE)
e7f204fb3d 2023-06-29   29:       Duel.SendtoDeck(c,tp,0,REASON_RULE)
e7f204fb3d 2023-06-29   30:     end
e7f204fb3d 2023-06-29   31:   end
e7f204fb3d 2023-06-29   32: end
e7f204fb3d 2023-06-29   33: 
e7f204fb3d 2023-06-29   34: local e1=Effect.CreateEffect(c)
e7f204fb3d 2023-06-29   35: e1:SetType(EFFECT_TYPE_IGNITION)
e7f204fb3d 2023-06-29   36: e1:SetProperty(EFFECT_FLAG_BOTH_SIDE)
e7f204fb3d 2023-06-29   37: e1:SetRange(LOCATION_EXTRA)
e7f204fb3d 2023-06-29   38: e1:SetOperation(print_hand)
e7f204fb3d 2023-06-29   39: c:RegisterEffect(e1)
e7f204fb3d 2023-06-29   40: 
e7f204fb3d 2023-06-29   41: Debug.AddCard(77622396,0,0,LOCATION_SZONE,1,POS_FACEDOWN_ATTACK)
e7f204fb3d 2023-06-29   42: Debug.AddCard(49658464,0,0,LOCATION_SZONE,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   43: Debug.AddCard(22205600,0,0,LOCATION_SZONE,3,POS_FACEDOWN_ATTACK)
e7f204fb3d 2023-06-29   44: 
e7f204fb3d 2023-06-29   45: Debug.AddCard(13758665,1,1,LOCATION_SZONE,1,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   46: Debug.AddCard(51452091,1,1,LOCATION_SZONE,3,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   47: 
e7f204fb3d 2023-06-29   48: 
e7f204fb3d 2023-06-29   49: local c11=Debug.AddCard(79182538,1,1,LOCATION_MZONE,0,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   50: e11=Effect.CreateEffect(c11)
e7f204fb3d 2023-06-29   51: e11:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29   52: e11:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29   53: e11:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29   54: e11:SetValue(1156)
e7f204fb3d 2023-06-29   55: c11:RegisterEffect(e11)
e7f204fb3d 2023-06-29   56: local c12=Debug.AddCard(77603950,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   57: e12=Effect.CreateEffect(c12)
e7f204fb3d 2023-06-29   58: e12:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29   59: e12:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29   60: e12:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29   61: e12:SetValue(1252)
e7f204fb3d 2023-06-29   62: c12:RegisterEffect(e12)
e7f204fb3d 2023-06-29   63: local c13=Debug.AddCard(89631139,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   64: e13=Effect.CreateEffect(c13)
e7f204fb3d 2023-06-29   65: e13:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29   66: e13:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29   67: e13:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29   68: e13:SetValue(1698)
e7f204fb3d 2023-06-29   69: c13:RegisterEffect(e13)
e7f204fb3d 2023-06-29   70: local c14=Debug.AddCard(6367785,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   71: e14=Effect.CreateEffect(c14)
e7f204fb3d 2023-06-29   72: e14:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29   73: e14:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29   74: e14:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29   75: e14:SetValue(652)
e7f204fb3d 2023-06-29   76: c14:RegisterEffect(e14)
e7f204fb3d 2023-06-29   77: local c15=Debug.AddCard(26268488,1,1,LOCATION_MZONE,4,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   78: e15=Effect.CreateEffect(c15)
e7f204fb3d 2023-06-29   79: e15:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29   80: e15:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29   81: e15:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29   82: e15:SetValue(254)
e7f204fb3d 2023-06-29   83: c15:RegisterEffect(e15)
e7f204fb3d 2023-06-29   84: local c16=Debug.AddCard(27134689,1,1,LOCATION_MZONE,5,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   85: e16=Effect.CreateEffect(c16)
e7f204fb3d 2023-06-29   86: e16:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29   87: e16:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29   88: e16:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29   89: e16:SetValue(800)
e7f204fb3d 2023-06-29   90: c16:RegisterEffect(e16)
e7f204fb3d 2023-06-29   91: 
e7f204fb3d 2023-06-29   92: local c21=Debug.AddCard(99645428,0,0,LOCATION_MZONE,0,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   93: e21=Effect.CreateEffect(c21)
e7f204fb3d 2023-06-29   94: e21:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29   95: e21:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29   96: e21:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29   97: e21:SetValue(-21565)
e7f204fb3d 2023-06-29   98: c21:RegisterEffect(e21)
e7f204fb3d 2023-06-29   99: local c22=Debug.AddCard(46986414,0,0,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29  100: e22=Effect.CreateEffect(c22)
e7f204fb3d 2023-06-29  101: e22:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29  102: e22:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29  103: e22:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29  104: e22:SetValue(-56546)
e7f204fb3d 2023-06-29  105: c22:RegisterEffect(e22)
e7f204fb3d 2023-06-29  106: local c23=Debug.AddCard(52367652,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29  107: e23=Effect.CreateEffect(c23)
e7f204fb3d 2023-06-29  108: e23:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29  109: e23:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29  110: e23:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29  111: e23:SetValue(-65415)
e7f204fb3d 2023-06-29  112: c23:RegisterEffect(e23)
e7f204fb3d 2023-06-29  113: local c24=Debug.AddCard(57662975,0,0,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29  114: e24=Effect.CreateEffect(c24)
e7f204fb3d 2023-06-29  115: e24:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29  116: e24:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29  117: e24:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29  118: e24:SetValue(-45212)
e7f204fb3d 2023-06-29  119: c24:RegisterEffect(e24)
e7f204fb3d 2023-06-29  120: local c25=Debug.AddCard(7562372,0,0,LOCATION_MZONE,4,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29  121: e25=Effect.CreateEffect(c25)
e7f204fb3d 2023-06-29  122: e25:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29  123: e25:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29  124: e25:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29  125: e25:SetValue(-32215)
e7f204fb3d 2023-06-29  126: c25:RegisterEffect(e25)
e7f204fb3d 2023-06-29  127: local c26=Debug.AddCard(66889139,0,0,LOCATION_MZONE,5,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29  128: e26=Effect.CreateEffect(c26)
e7f204fb3d 2023-06-29  129: e26:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29  130: e26:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29  131: e26:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29  132: e26:SetValue(-801)
e7f204fb3d 2023-06-29  133: c26:RegisterEffect(e26)
e7f204fb3d 2023-06-29  134: 
e7f204fb3d 2023-06-29  135: Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)
e7f204fb3d 2023-06-29  136: Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)
e7f204fb3d 2023-06-29  137: Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)
e7f204fb3d 2023-06-29  138: Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)
e7f204fb3d 2023-06-29  139: Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)
e7f204fb3d 2023-06-29  140: Debug.AddCard(7562372,1,1,LOCATION_DECK,4,POS_FACEDOWN)
e7f204fb3d 2023-06-29  141: 
e7f204fb3d 2023-06-29  142: 
e7f204fb3d 2023-06-29  143: Debug.ReloadFieldEnd()
e7f204fb3d 2023-06-29  144: aux.BeginPuzzle()
e7f204fb3d 2023-06-29  145: local e999=Effect.GlobalEffect()
e7f204fb3d 2023-06-29  146: e999:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e7f204fb3d 2023-06-29  147: e999:SetCode(EVENT_DAMAGE)
e7f204fb3d 2023-06-29  148: e999:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(1)<=0 end)
e7f204fb3d 2023-06-29  149: e999:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
e7f204fb3d 2023-06-29  150: Debug.ShowHint("残局群181175613") end)
e7f204fb3d 2023-06-29  151: Duel.RegisterEffect(e999,0)
e7f204fb3d 2023-06-29  152: 
e7f204fb3d 2023-06-29  153: Debug.ShowHint("这是一个印卡残局,点击对方额外卡组可以发动《魂之解放》打印任意卡!\n只能打印1张卡到手卡或额外卡组!\n部分怪兽攻守已改变!")
e7f204fb3d 2023-06-29  154: --~ Debug.ShowHint("只能打印1张卡到手卡或额外卡组!")
e7f204fb3d 2023-06-29  155: --~ Debug.ShowHint("场上的怪兽攻击力已改变!")