游戏王残局简化版

Annotation For X-LV-50.lua
Login

Annotation For X-LV-50.lua

Lines of X-LV-50.lua from check-in 3dff221746 that are changed by the sequence of edits moving toward check-in f8a1b1a6a8:

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