游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

Lines of script/c0.lua from check-in a754e6f3f2 that are changed by the sequence of edits moving toward check-in 147dea3834:

                         1: local str = {}
                         2: local fun = {}
                         3: 
                         4: local cache_1
                         5: local cache_2
                         6: 
                         7: 
                         8: 
                         9: _G["通关邀请"] = function()
                        10:   local effect_1
                        11:   effect_1 = Effect.GlobalEffect()
                        12:   effect_1:SetType(EFFECT_TYPE_FIELD
                        13:     + EFFECT_TYPE_CONTINUOUS)
                        14:   effect_1:SetCode(EVENT_DAMAGE)
                        15:   function cache_1()
                        16:     cache_1 = Duel.GetLP(1)
                        17:     if cache_1 <= 0 then
                        18:       cache_1 = true
                        19:     else
                        20:       cache_1 = false
                        21:       end
                        22:     return cache_1
                        23:     end
                        24:   effect_1:SetCondition(cache_1)
                        25:   function cache_1()
                        26:     Debug.ShowHint("残局群181175613")
                        27:     return
                        28:     end
                        29:   effect_1:SetOperation(cache_1)
                        30: 
                        31:   Duel.RegisterEffect(effect_1
                        32:     , 0)
                        33:   end
                        34: 
                        35: fun["是否效果卡"] = function(card)
a754e6f3f2 2023-06-29   36: --~   Card.IsCode(card,)
                        37:   end
                        38: 
                        39: _G["开局说明"] = function()
                        40:   Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_GRAVE,0,nil)
                        41: 
                        42: --~   local cache_1 = {}
                        43: 
                        44: --~   cache_2 = Duel.GetFieldGroup(0,LOCATION_DECK,0)
                        45: --~   cache_1:insert(cache_2)
                        46: --~   cache_2 = Duel.GetFieldGroup(0,LOCATION_GRAVE,0)
                        47: --~   cache_1:insert(cache_2)
                        48: --~   cache_2 = Duel.GetFieldGroup(0,LOCATION_MZONE,0)
                        49: --~   cache_1:insert(cache_2)
                        50: --~   cache_2 = Duel.GetFieldGroup(0,LOCATION_HAND,0)
                        51: --~   cache_1:insert(cache_2)
                        52: --~   cache_2 = Duel.GetFieldGroup(0,LOCATION_PZONE,0)
                        53: --~   cache_1:insert(cache_2)
                        54: --~   cache_2 = Duel.GetFieldGroup(0,LOCATION_REMOVED,0)
                        55: --~   cache_1:insert(cache_2)
                        56: --~   cache_2 = Duel.GetFieldGroup(0,LOCATION_EXTRA,0)
                        57: --~   cache_1:insert(cache_2)
                        58: --~   cache_2 = Duel.GetFieldGroup(0,LOCATION_SZONE,0)
                        59: --~   cache_1:insert(cache_2)
                        60: 
                        61: --~   cache_2 = Duel.GetFieldGroup(0,0,LOCATION_DECK)
                        62: --~   cache_1:insert(cache_2)
                        63: --~   cache_2 = Duel.GetFieldGroup(0,0,LOCATION_GRAVE)
                        64: --~   cache_1:insert(cache_2)
                        65: --~   cache_2 = Duel.GetFieldGroup(0,0,LOCATION_MZONE)
                        66: --~   cache_1:insert(cache_2)
                        67: --~   cache_2 = Duel.GetFieldGroup(0,0,LOCATION_HAND)
                        68: --~   cache_1:insert(cache_2)
                        69: --~   cache_2 = Duel.GetFieldGroup(0,0,LOCATION_PZONE)
                        70: --~   cache_1:insert(cache_2)
                        71: --~   cache_2 = Duel.GetFieldGroup(0,0,LOCATION_REMOVED)
                        72: --~   cache_1:insert(cache_2)
                        73: --~   cache_2 = Duel.GetFieldGroup(0,0,LOCATION_EXTRA)
                        74: --~   cache_1:insert(cache_2)
                        75: --~   cache_2 = Duel.GetFieldGroup(0,0,LOCATION_SZONE)
                        76: --~   cache_1:insert(cache_2)
                        77: 
                        78: --~   cache_2 = Duel.GetOverlayGroup(0,LOCATION_MZONE,0)
                        79: --~   cache_1:insert(cache_2)
                        80: --~   cache_2 = Duel.GetOverlayGroup(0,0,LOCATION_SZONE)
                        81: --~   cache_1:insert(cache_2)
                        82: 
                        83: --~   for i=1, #cache_1 do
                        84: --~     end
                        85: 
                        86: 
                        87:   str["这个残局的效果卡数量"] = 0
                        88: 
                        89: --~   str["我方卡组"] = Duel.GetFieldGroupCount(0,LOCATION_DECK,0)
                        90: --~   str["我方墓地"] = Duel.GetFieldGroupCount(0,LOCATION_GRAVE,0)
                        91: --~   str["我方怪兽区"] = Duel.GetFieldGroupCount(0,LOCATION_MZONE,0)
                        92: --~   str["我方手卡"] = Duel.GetFieldGroupCount(0,LOCATION_HAND,0)
                        93: --~   str["我方灵摆区"] = Duel.GetFieldGroupCount(0,LOCATION_PZONE,0)
                        94: --~   str["我方除外区"] = Duel.GetFieldGroupCount(0,LOCATION_REMOVED,0)
                        95: --~   str["我方额外卡组"] = Duel.GetFieldGroupCount(0,LOCATION_EXTRA,0)
                        96: --~   str["我方魔陷区"] = Duel.GetFieldGroupCount(0,LOCATION_SZONE,0)
                        97: 
                        98: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方卡组"]
                        99: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方墓地"]
                       100: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方怪兽区"]
                       101: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方手卡"]
                       102: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方灵摆区"]
                       103: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方除外区"]
                       104: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方额外卡组"]
                       105: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方魔陷区"]
                       106: 
                       107: --~   str["对方卡组"] = Duel.GetFieldGroupCount(0,0,LOCATION_DECK)
                       108: --~   str["对方墓地"] = Duel.GetFieldGroupCount(0,0,LOCATION_GRAVE)
                       109: --~   str["对方怪兽区"] = Duel.GetFieldGroupCount(0,0,LOCATION_MZONE)
                       110: --~   str["对方手卡"] = Duel.GetFieldGroupCount(0,0,LOCATION_HAND)
                       111: --~   str["对方灵摆区"] = Duel.GetFieldGroupCount(0,0,LOCATION_PZONE)
                       112: --~   str["对方除外区"] = Duel.GetFieldGroupCount(0,0,LOCATION_REMOVED)
                       113: --~   str["对方额外卡组"] = Duel.GetFieldGroupCount(0,0,LOCATION_EXTRA)
                       114: --~   str["对方魔陷区"] = Duel.GetFieldGroupCount(0,0,LOCATION_SZONE)
                       115: 
                       116: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方卡组"]
                       117: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方墓地"]
                       118: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方怪兽区"]
                       119: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方手卡"]
                       120: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方灵摆区"]
                       121: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方除外区"]
                       122: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方额外卡组"]
                       123: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方魔陷区"]
                       124: 
                       125: --~   str["我方超量素材"] = Duel.GetOverlayCount(0, LOCATION_MZONE, 0)
                       126: --~   str["对方超量素材"] = Duel.GetOverlayCount(0, 0, LOCATION_MZONE)
                       127: 
                       128: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方超量素材"]
                       129: --~   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方超量素材"]
                       130: 
                       131: --~   Debug.ShowHint(str["这个残局的效果卡数量"])
                       132:   end
                       133: 
                       134: