游戏王残局简化版

Annotation For 19.Let's GaGaGa.lua
Login

Annotation For 19.Let's GaGaGa.lua

Lines of 19.Let's GaGaGa.lua from check-in 909ef71cf2 that are changed by the sequence of edits moving toward check-in de01b7781c:

                         1: --[[message
                         2: 卡数:27
                         3: 规则:大师3
                         4: 一起来我我我
                         5: ]]
                         6: Debug.SetAIName("四妹")
                         7: Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,3)
                         8: Debug.SetPlayerInfo(0,700,0,0)
                         9: Debug.SetPlayerInfo(1,12200,0,0)
                        10: 
909ef71cf2 2023-06-25   11: local e0=Effect.GlobalEffect()
909ef71cf2 2023-06-25   12: e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
909ef71cf2 2023-06-25   13: e0:SetCode(EVENT_ADJUST)
909ef71cf2 2023-06-25   14: e0:SetCountLimit(1)
909ef71cf2 2023-06-25   15: e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(0)>0 end)
909ef71cf2 2023-06-25   16: e0:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
909ef71cf2 2023-06-25   17: local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK,0,6,6,nil)
909ef71cf2 2023-06-25   18: if g:GetCount()>0 then
909ef71cf2 2023-06-25   19:   Duel.SendtoHand(g,nil,REASON_RULE)
909ef71cf2 2023-06-25   20: end end)
909ef71cf2 2023-06-25   21: Duel.RegisterEffect(e0,0)
909ef71cf2 2023-06-25   22: 
                        23: Debug.AddCard(14785765,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        24: Debug.AddCard(71453557,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        25: Debug.AddCard(72355441,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        26: Debug.AddCard(90673413,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        27: Debug.AddCard(51790181,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        28: Debug.AddCard(81816475,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        29: Debug.AddCard(12298909,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        30: Debug.AddCard(52105192,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        31: Debug.AddCard(98494543,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        32: Debug.AddCard(26082117,0,0,LOCATION_GRAVE,0,POS_FACEUP)
                        33: Debug.AddCard(33420078,0,0,LOCATION_GRAVE,0,POS_FACEUP)
                        34: Debug.AddCard(77334267,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        35: Debug.AddCard(92661479,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        36: Debug.AddCard(38495396,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        37: Debug.AddCard(91949988,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        38: Debug.AddCard(95040215,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        39: Debug.AddCard(65878864,0,0,LOCATION_MZONE,2,POS_FACEDOWN_DEFENSE)
                        40: Debug.AddCard(61705417,0,0,LOCATION_SZONE,1,POS_FACEDOWN)
                        41: Debug.AddCard(97077563,0,0,LOCATION_SZONE,2,POS_FACEDOWN)
                        42: Debug.AddCard(44330098,1,1,LOCATION_HAND,0,POS_FACEDOWN)
                        43: Debug.AddCard(75652080,1,1,LOCATION_GRAVE,0,POS_FACEUP)
                        44: Debug.AddCard(34710660,1,1,LOCATION_GRAVE,0,POS_FACEUP)
                        45: Debug.AddCard(80117527,1,1,LOCATION_GRAVE,0,POS_FACEUP,true)
                        46: Debug.AddCard(1992816,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK,true)
                        47: Debug.AddCard(89631139,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
                        48: local g1=Debug.AddCard(66235877,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
                        49: g1:CompleteProcedure()
                        50: Debug.AddCard(44095762,1,1,LOCATION_SZONE,1,POS_FACEDOWN)
                        51: Debug.AddCard(44095762,1,1,LOCATION_SZONE,2,POS_FACEDOWN)
                        52: Debug.AddCard(44095762,1,1,LOCATION_SZONE,3,POS_FACEDOWN)
                        53: Debug.ReloadFieldEnd()
909ef71cf2 2023-06-25   54: Debug.ShowHint("从卡组中选择六张卡加入手卡!")
                        55: aux.BeginPuzzle()
                        56: local str = {}
                        57: local fun = {}
                        58: 
                        59: local cache_1
                        60: 
                        61: fun["通关邀请"] = function()
                        62:   local effect_100
                        63:   effect_100 = Effect.GlobalEffect()
                        64:   effect_100:SetType(EFFECT_TYPE_FIELD
                        65:     + EFFECT_TYPE_CONTINUOUS)
                        66:   effect_100:SetCode(EVENT_DAMAGE)
                        67:   function cache_1()
                        68: 
                        69:     cache_1 = Duel.GetLP(1)
                        70: 
                        71:     if cache_1 <= 0 then
                        72:       cache_1 = true
                        73:     else
                        74:       cache_1 = false
                        75:       end
                        76: 
                        77:     return cache_1
                        78:     end
                        79:   effect_100:SetCondition(cache_1)
                        80:   function cache_1()
                        81:     Debug.ShowHint("残局群181175613")
                        82:     return
                        83:     end
                        84:   effect_100:SetOperation(cache_1)
                        85:   Duel.RegisterEffect(effect_100
                        86:     , 0)
                        87:   end
                        88: 
                        89: fun["通关邀请"]()