游戏王残局简化版

Annotation For single/19.Let's GaGaGa.lua
Login

Annotation For single/19.Let's GaGaGa.lua

Lines of single/19.Let's GaGaGa.lua from check-in 32fa479c6d that are changed by the sequence of edits moving toward check-in 2382d49fea:

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