游戏王残局简化版

Annotation For single/NH-04.lua
Login

Annotation For single/NH-04.lua

Lines of single/NH-04.lua from check-in 6f64eab2fd that are changed by the sequence of edits moving toward check-in 89d053c6cd:

                         1: --[[message
                         2: 不容小觑的似羊动物!
                         3: ]]
                         4: 
                         5: 
                         6: --~ 必须位于残局文件顶部
                         7: --~ 加载残局函数库
                         8: Debug.AddCard(0,0,0,LOCATION_MZONE,-1,POS_FACEUP)
                         9: 
                        10: 
                        11: Debug.SetAIName("顽雨沉风")
                        12: Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_PSEUDO_SHUFFLE+DUEL_SIMPLE_AI,4)
                        13: Debug.SetPlayerInfo(0,500,0,0)
                        14: Debug.SetPlayerInfo(1,30000,0,0)
6f64eab2fd 2023-07-07   15: local c=Debug.AddCard(55948544,1,1,LOCATION_EXTRA,0,POS_FACEUP_ATTACK)
6f64eab2fd 2023-07-07   16: local n=0
6f64eab2fd 2023-07-07   17: 
6f64eab2fd 2023-07-07   18: function print_hand(e,tp,eg,ep,ev,re,r,rp)
6f64eab2fd 2023-07-07   19:   local ac=Duel.AnnounceCard(tp)
6f64eab2fd 2023-07-07   20:   local c=Duel.CreateToken(tp,ac)
6f64eab2fd 2023-07-07   21:   if n<2 then
6f64eab2fd 2023-07-07   22:     Duel.SendtoHand(c,nil,REASON_RULE)
6f64eab2fd 2023-07-07   23:     Duel.ShuffleHand(tp)
6f64eab2fd 2023-07-07   24:     n=n+1
6f64eab2fd 2023-07-07   25:   else
6f64eab2fd 2023-07-07   26:     if n==10 then
6f64eab2fd 2023-07-07   27:       Debug.ShowHint("印卡过多,审判降临!")
6f64eab2fd 2023-07-07   28:       Duel.SetLP(0,0)
6f64eab2fd 2023-07-07   29:     else
6f64eab2fd 2023-07-07   30:       n=n+1
6f64eab2fd 2023-07-07   31:       Duel.Remove(c,POS_FACEUP,REASON_RULE)
6f64eab2fd 2023-07-07   32:       Duel.SendtoDeck(c,tp,0,REASON_RULE)
6f64eab2fd 2023-07-07   33:     end
6f64eab2fd 2023-07-07   34:   end
6f64eab2fd 2023-07-07   35: end
6f64eab2fd 2023-07-07   36: 
6f64eab2fd 2023-07-07   37: local e1=Effect.CreateEffect(c)
6f64eab2fd 2023-07-07   38: e1:SetType(EFFECT_TYPE_IGNITION)
6f64eab2fd 2023-07-07   39: e1:SetProperty(EFFECT_FLAG_BOTH_SIDE)
6f64eab2fd 2023-07-07   40: e1:SetRange(LOCATION_EXTRA)
6f64eab2fd 2023-07-07   41: e1:SetOperation(print_hand)
6f64eab2fd 2023-07-07   42: c:RegisterEffect(e1)
                        43: 
                        44: Debug.AddCard(14558127,1,1,LOCATION_HAND,0,POS_FACEDOWN)
                        45: local m1=Debug.AddCard(65403020,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
                        46: Debug.AddCard(84794011,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
                        47: Debug.AddCard(92731455,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
                        48: Debug.AddCard(67441435,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
                        49: Debug.AddCard(81035362,0,0,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
                        50: local m2=Debug.AddCard(86099788,1,1,LOCATION_MZONE,4,POS_FACEUP_ATTACK)
                        51: Debug.AddCard(11366199,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
                        52: Debug.AddCard(41147577,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
                        53: Debug.AddCard(26268488,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
                        54: Debug.AddCard(17016362,1,1,LOCATION_MZONE,0,POS_FACEUP_ATTACK)
                        55: local s2=Debug.AddCard(38296564,1,1,LOCATION_SZONE,0,POS_FACEUP_ATTACK)
                        56: 
                        57: local s1=Debug.AddCard(19508728,0,0,LOCATION_SZONE,2,POS_FACEUP)
                        58: Debug.PreEquip(s1,m1)
                        59: Debug.AddCard(68462976,1,1,LOCATION_SZONE,5,POS_FACEUP)
                        60: 
                        61: Debug.ReloadFieldEnd()
6f64eab2fd 2023-07-07   62: Debug.PreSetTarget(s2, m2)
6f64eab2fd 2023-07-07   63: Debug.ShowHint("这是一个印卡残局,点击对方额外卡组可以发动《法老的审判》打印任意卡。\n只能打印2张卡到手卡,其他8张卡片将被添加到主卡组或额外卡组。")
                        64: --~ Debug.ShowHint("只能打印2张卡到手卡,其他8张卡片将被添加到主卡组或额外卡组。")
                        65: aux.BeginPuzzle()
                        66: 
                        67: 
                        68: 
                        69: