游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

Lines of script/c0.lua from check-in 40620faf3c that are changed by the sequence of edits moving toward check-in e3fdda8ef9:

                         1: local str = {}
                         2: local fun = {}
                         3: 
                         4: local cache_1
                         5: local cache_2
                         6: 
                         7: fun["是否效果卡"] = function()
                         8:   end
                         9: 
                        10: _G["通关邀请"] = function()
                        11:   local effect_1
                        12:   effect_1 = Effect.GlobalEffect()
                        13:   effect_1:SetType(EFFECT_TYPE_FIELD
                        14:     + EFFECT_TYPE_CONTINUOUS)
                        15:   effect_1:SetCode(EVENT_DAMAGE)
                        16:   function cache_1()
                        17:     cache_1 = Duel.GetLP(1)
                        18:     if cache_1 <= 0 then
                        19:       cache_1 = true
                        20:     else
                        21:       cache_1 = false
                        22:       end
                        23:     return cache_1
                        24:     end
                        25:   effect_1:SetCondition(cache_1)
                        26:   function cache_1()
                        27:     Debug.ShowHint("残局群181175613")
                        28:     return
                        29:     end
                        30:   effect_1:SetOperation(cache_1)
                        31: 
                        32:   Duel.RegisterEffect(effect_1
                        33:     , 0)
                        34:   end
                        35: 
                        36: _G["开局说明"] = function()
                        37:   str["这个残局的效果卡数量"] = 0
                        38: 
                        39:   str["我方卡组"] = Duel.GetFieldGroupCount(0,LOCATION_DECK,0)
                        40:   str["我方墓地"] = Duel.GetFieldGroupCount(0,LOCATION_GRAVE,0)
                        41:   str["我方怪兽区"] = Duel.GetFieldGroupCount(0,LOCATION_MZONE,0)
                        42:   str["我方手卡"] = Duel.GetFieldGroupCount(0,LOCATION_HAND,0)
                        43:   str["我方灵摆区"] = Duel.GetFieldGroupCount(0,LOCATION_PZONE,0)
                        44:   str["我方除外区"] = Duel.GetFieldGroupCount(0,LOCATION_REMOVED,0)
                        45:   str["我方额外卡组"] = Duel.GetFieldGroupCount(0,LOCATION_EXTRA,0)
                        46:   str["我方魔陷区"] = Duel.GetFieldGroupCount(0,LOCATION_SZONE,0)
                        47: 
                        48:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方卡组"]
                        49:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方墓地"]
                        50:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方怪兽区"]
                        51:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方手卡"]
                        52:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方灵摆区"]
                        53:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方除外区"]
                        54:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方额外卡组"]
                        55:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方魔陷区"]
                        56: 
                        57:   str["对方卡组"] = Duel.GetFieldGroupCount(0,0,LOCATION_DECK)
                        58:   str["对方墓地"] = Duel.GetFieldGroupCount(0,0,LOCATION_GRAVE)
                        59:   str["对方怪兽区"] = Duel.GetFieldGroupCount(0,0,LOCATION_MZONE)
                        60:   str["对方手卡"] = Duel.GetFieldGroupCount(0,0,LOCATION_HAND)
                        61:   str["对方灵摆区"] = Duel.GetFieldGroupCount(0,0,LOCATION_PZONE)
                        62:   str["对方除外区"] = Duel.GetFieldGroupCount(0,0,LOCATION_REMOVED)
                        63:   str["对方额外卡组"] = Duel.GetFieldGroupCount(0,0,LOCATION_EXTRA)
                        64:   str["对方魔陷区"] = Duel.GetFieldGroupCount(0,0,LOCATION_SZONE)
                        65: 
                        66:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方卡组"]
                        67:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方墓地"]
                        68:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方怪兽区"]
                        69:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方手卡"]
                        70:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方灵摆区"]
                        71:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方除外区"]
                        72:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方额外卡组"]
                        73:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方魔陷区"]
                        74: 
                        75:   str["我方超量素材"] = Duel.GetOverlayCount(0, LOCATION_MZONE, 0)
                        76:   str["对方超量素材"] = Duel.GetOverlayCount(0, 0, LOCATION_MZONE)
                        77: 
                        78:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方超量素材"]
                        79:   str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方超量素材"]
                        80: 
                        81:   Debug.ShowHint(str["这个残局的效果卡数量"])
                        82:   end
                        83: 
                        84: