游戏王残局简化版

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 03c37a1f5b that are changed by the sequence of edits moving toward check-in 7fa8fa7b82:

                         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: 
                        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: 
                        49: fun["通关邀请"] = function()
                        50:   local effect_100
                        51:   effect_100 = Effect.GlobalEffect()
                        52:   effect_100:SetType(EFFECT_TYPE_FIELD
                        53:     + EFFECT_TYPE_CONTINUOUS)
                        54:   effect_100:SetCode(EVENT_DAMAGE)
                        55:   function cache_1()
                        56: 
                        57:     cache_1 = Duel.GetLP(1)
                        58: 
                        59:     if cache_1 <= 0 then
                        60:       cache_1 = true
                        61:     else
                        62:       cache_1 = false
                        63:       end
                        64: 
                        65:     return cache_1
                        66:     end
                        67:   effect_100:SetCondition(cache_1)
                        68:   function cache_1()
                        69:     Debug.ShowHint("残局群181175613")
                        70:     return
                        71:     end
                        72:   effect_100:SetOperation(cache_1)
                        73:   Duel.RegisterEffect(effect_100
                        74:     , 0)
                        75:   end
                        76: 
                        77: fun["开局添加手卡"] = function(str_1)
                        78:   local effect_101
                        79:   effect_101 = Effect.GlobalEffect()
                        80:   effect_101:SetType(EFFECT_TYPE_FIELD
                        81:     + EFFECT_TYPE_CONTINUOUS)
                        82:   effect_101:SetCode(EVENT_ADJUST)
                        83:   effect_101:SetCountLimit(1)
                        84:   function cache_1()
                        85:     cache_1 = Duel.GetLP(0)
                        86:     if cache_1 > 0 then
                        87:       cache_1 = true
                        88:     else
                        89:       cache_1 = false
                        90:       end
                        91:     return cache_1
                        92:     end
                        93:   effect_101:SetCondition(cache_1)
                        94:   function cache_1(effect_event
                        95:     , player_who_activate_the_effect)
                        96:     cache_1 = Duel.SelectMatchingCard(player_who_activate_the_effect
                        97:        , Card.IsAbleToHand
                        98:        , player_who_activate_the_effect
                        99:        , LOCATION_DECK
                       100:        , 0
                       101:        , str_1
                       102:        , str_1
                       103:        , nil)
                       104:     cache_1 = cache_1:GetCount()
                       105:     if cache_1 > 0 then
03c37a1f5b 2023-06-26  106:       Duel.SendtoHand(cache_1
                       107:         , nil
                       108:         , REASON_RULE)
                       109:       end
                       110:     end
                       111:   effect_101:SetOperation(cache_1)
                       112:   Duel.RegisterEffect(effect_101
                       113:     , 0)
                       114:   end
                       115: 
                       116: fun["通关邀请"]()
                       117: fun["开局添加手卡"](6)
                       118: