游戏王残局简化版

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 5985f1c474 that are changed by the sequence of edits moving toward check-in 93595441a0:

                         1: --[[message
                         2: 卡数:28
                         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: 
                        11: Debug.AddCard(14785765,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        12: Debug.AddCard(71453557,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        13: Debug.AddCard(72355441,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        14: Debug.AddCard(90673413,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        15: Debug.AddCard(51790181,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        16: Debug.AddCard(81816475,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        17: Debug.AddCard(12298909,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        18: Debug.AddCard(52105192,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        19: Debug.AddCard(98494543,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        20: Debug.AddCard(26082117,0,0,LOCATION_GRAVE,0,POS_FACEUP)
                        21: Debug.AddCard(33420078,0,0,LOCATION_GRAVE,0,POS_FACEUP)
                        22: Debug.AddCard(77334267,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        23: Debug.AddCard(92661479,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        24: Debug.AddCard(38495396,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        25: Debug.AddCard(91949988,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        26: Debug.AddCard(95040215,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        27: Debug.AddCard(65878864,0,0,LOCATION_MZONE,2,POS_FACEDOWN_DEFENSE)
                        28: Debug.AddCard(61705417,0,0,LOCATION_SZONE,1,POS_FACEDOWN)
                        29: Debug.AddCard(97077563,0,0,LOCATION_SZONE,2,POS_FACEDOWN)
                        30: Debug.AddCard(44330098,1,1,LOCATION_HAND,0,POS_FACEDOWN)
                        31: Debug.AddCard(75652080,1,1,LOCATION_GRAVE,0,POS_FACEUP)
                        32: Debug.AddCard(34710660,1,1,LOCATION_GRAVE,0,POS_FACEUP)
                        33: Debug.AddCard(80117527,1,1,LOCATION_GRAVE,0,POS_FACEUP,true)
                        34: Debug.AddCard(1992816,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK,true)
                        35: Debug.AddCard(89631139,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
                        36: local g1=Debug.AddCard(66235877,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
                        37: g1:CompleteProcedure()
                        38: Debug.AddCard(44095762,1,1,LOCATION_SZONE,1,POS_FACEDOWN)
                        39: Debug.AddCard(44095762,1,1,LOCATION_SZONE,2,POS_FACEDOWN)
                        40: Debug.AddCard(44095762,1,1,LOCATION_SZONE,3,POS_FACEDOWN)
                        41: Debug.ReloadFieldEnd()
                        42: aux.BeginPuzzle()
                        43: 
                        44: local str = {}
                        45: local fun = {}
                        46: 
                        47: local cache_1
                        48: local cache_2
                        49: 
                        50: fun["通关邀请"] = function()
5985f1c474 2023-06-26   51:   local effect_100
5985f1c474 2023-06-26   52:   effect_100 = Effect.GlobalEffect()
5985f1c474 2023-06-26   53:   effect_100:SetType(EFFECT_TYPE_FIELD
                        54:     + EFFECT_TYPE_CONTINUOUS)
5985f1c474 2023-06-26   55:   effect_100:SetCode(EVENT_DAMAGE)
                        56:   function cache_1()
                        57: 
                        58:     cache_1 = Duel.GetLP(1)
                        59: 
                        60:     if cache_1 <= 0 then
                        61:       cache_1 = true
                        62:     else
                        63:       cache_1 = false
                        64:       end
                        65: 
                        66:     return cache_1
                        67:     end
5985f1c474 2023-06-26   68:   effect_100:SetCondition(cache_1)
                        69:   function cache_1()
                        70:     Debug.ShowHint("残局群181175613")
                        71:     return
                        72:     end
5985f1c474 2023-06-26   73:   effect_100:SetOperation(cache_1)
5985f1c474 2023-06-26   74:   Duel.RegisterEffect(effect_100
                        75:     , 0)
                        76:   end
                        77: 
                        78: fun["开局添加手卡"] = function(str_1)
5985f1c474 2023-06-26   79:   local effect_101
5985f1c474 2023-06-26   80:   effect_101 = Effect.GlobalEffect()
5985f1c474 2023-06-26   81:   effect_101:SetType(EFFECT_TYPE_FIELD
                        82:     + EFFECT_TYPE_CONTINUOUS)
5985f1c474 2023-06-26   83:   effect_101:SetCode(EVENT_ADJUST)
5985f1c474 2023-06-26   84:   effect_101:SetCountLimit(1)
                        85:   function cache_1()
                        86:     cache_1 = Duel.GetLP(0)
                        87:     if cache_1 > 0 then
                        88:       cache_1 = true
                        89:     else
                        90:       cache_1 = false
                        91:       end
                        92:     return cache_1
                        93:     end
5985f1c474 2023-06-26   94:   effect_101:SetCondition(cache_1)
                        95:   function cache_1(effect_event
                        96:     , player_who_activate_the_effect)
                        97:     cache_1 = Duel.SelectMatchingCard(player_who_activate_the_effect
                        98:        , Card.IsAbleToHand
                        99:        , player_who_activate_the_effect
                       100:        , LOCATION_DECK
                       101:        , 0
                       102:        , str_1
                       103:        , str_1
                       104:        , nil)
                       105:     cache_2 = cache_1:GetCount()
                       106:     if cache_2 > 0 then
                       107:       Duel.SendtoHand(cache_1
                       108:         , nil
                       109:         , REASON_RULE)
                       110:       end
                       111:     end
5985f1c474 2023-06-26  112:   effect_101:SetOperation(cache_1)
5985f1c474 2023-06-26  113:   Duel.RegisterEffect(effect_101
                       114:     , 0)
                       115:   end
                       116: 
                       117: fun["通关邀请"]()
                       118: fun["开局添加手卡"](6)
                       119: 
                       120: 
                       121: 
                       122: 
                       123: