游戏王残局简化版

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

Annotation For single/X-LV-50.lua

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

e7f204fb3d 2023-06-29    1: --[[message
e7f204fb3d 2023-06-29    2: 卡数:1
e7f204fb3d 2023-06-29    3: 规则:新大师
e7f204fb3d 2023-06-29    4: ]]
e7f204fb3d 2023-06-29    5: --created by puzzle editor
e7f204fb3d 2023-06-29    6: Debug.SetAIName("顽雨沉风")
e7f204fb3d 2023-06-29    7: Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,4)
e7f204fb3d 2023-06-29    8: Debug.SetPlayerInfo(0,100,0,0)
e7f204fb3d 2023-06-29    9: Debug.SetPlayerInfo(1,5950,0,0)
e7f204fb3d 2023-06-29   10: 
e7f204fb3d 2023-06-29   11: local c=Debug.AddCard(5758500,1,1,LOCATION_EXTRA,0,POS_FACEUP_ATTACK) 
e7f204fb3d 2023-06-29   12: local n=0
e7f204fb3d 2023-06-29   13: 
e7f204fb3d 2023-06-29   14: function print_hand(e,tp,eg,ep,ev,re,r,rp)
e7f204fb3d 2023-06-29   15:   local ac=Duel.AnnounceCard(tp)
e7f204fb3d 2023-06-29   16:   local c=Duel.CreateToken(tp,ac)
e7f204fb3d 2023-06-29   17:   if n<1 then
e7f204fb3d 2023-06-29   18:     Duel.SendtoHand(c,nil,REASON_RULE)
e7f204fb3d 2023-06-29   19:     Duel.ShuffleHand(tp)
e7f204fb3d 2023-06-29   20:     n=n+1
e7f204fb3d 2023-06-29   21:   else
e7f204fb3d 2023-06-29   22:     if n==1 then
e7f204fb3d 2023-06-29   23:       Debug.ShowHint("印卡过多,审判降临!")
e7f204fb3d 2023-06-29   24:       Duel.SetLP(0,0)
e7f204fb3d 2023-06-29   25:     else
e7f204fb3d 2023-06-29   26:       n=n+1
e7f204fb3d 2023-06-29   27:       Duel.Remove(c,POS_FACEUP,REASON_RULE)
e7f204fb3d 2023-06-29   28:       Duel.SendtoDeck(c,tp,0,REASON_RULE)
e7f204fb3d 2023-06-29   29:     end
e7f204fb3d 2023-06-29   30:   end
e7f204fb3d 2023-06-29   31: end
e7f204fb3d 2023-06-29   32: 
e7f204fb3d 2023-06-29   33: local e1=Effect.CreateEffect(c)
e7f204fb3d 2023-06-29   34: e1:SetType(EFFECT_TYPE_IGNITION)
e7f204fb3d 2023-06-29   35: e1:SetProperty(EFFECT_FLAG_BOTH_SIDE)
e7f204fb3d 2023-06-29   36: e1:SetRange(LOCATION_EXTRA)
e7f204fb3d 2023-06-29   37: e1:SetOperation(print_hand)
e7f204fb3d 2023-06-29   38: c:RegisterEffect(e1)
e7f204fb3d 2023-06-29   39: 
e7f204fb3d 2023-06-29   40: 
e7f204fb3d 2023-06-29   41: local c16=Debug.AddCard(27288416,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   42: --~ e16=Effect.CreateEffect(c16)
e7f204fb3d 2023-06-29   43: --~ e16:SetType(EFFECT_TYPE_SINGLE)
e7f204fb3d 2023-06-29   44: --~ e16:SetCode(EFFECT_UPDATE_ATTACK)
e7f204fb3d 2023-06-29   45: --~ e16:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7f204fb3d 2023-06-29   46: --~ e16:SetValue(-29700)
e7f204fb3d 2023-06-29   47: --~ c16:RegisterEffect(e16)
e7f204fb3d 2023-06-29   48: 
e7f204fb3d 2023-06-29   49: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   50: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   51: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   52: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   53: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   54: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   55: --~ local c16=Debug.AddCard(7902349,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   56: --~ local c16=Debug.AddCard(8124921,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   57: --~ local c16=Debug.AddCard(44519536,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   58: --~ local c16=Debug.AddCard(70903634,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   59: --~ local c16=Debug.AddCard(33396948,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   60: 
e7f204fb3d 2023-06-29   61: Debug.AddCard(20129614,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
e7f204fb3d 2023-06-29   62: 
e7f204fb3d 2023-06-29   63: Debug.ReloadFieldEnd()
e7f204fb3d 2023-06-29   64: 
e7f204fb3d 2023-06-29   65: aux.BeginPuzzle()
e7f204fb3d 2023-06-29   66: local e999=Effect.GlobalEffect()
e7f204fb3d 2023-06-29   67: e999:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e7f204fb3d 2023-06-29   68: e999:SetCode(EVENT_DAMAGE)
e7f204fb3d 2023-06-29   69: e999:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(1)<=0 end)
e7f204fb3d 2023-06-29   70: e999:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
e7f204fb3d 2023-06-29   71: Debug.ShowHint("残局群181175613") end)
e7f204fb3d 2023-06-29   72: Duel.RegisterEffect(e999,0)
e7f204fb3d 2023-06-29   73: 
e7f204fb3d 2023-06-29   74: Debug.ShowHint("这是一个印卡残局,点击对方额外卡组可以发动《魂之解放》打印任意卡!\n只能打印1张卡到手卡或额外卡组!")
e7f204fb3d 2023-06-29   75: --~ Debug.ShowHint("只能打印1张卡到手卡或额外卡组!")
e7f204fb3d 2023-06-29   76: --~ Debug.ShowHint("场上的怪兽攻击力已改变!")