游戏王残局简化版

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 1ccfd2b4b5 that are changed by the sequence of edits moving toward check-in 1759c92880:

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