Lines of
script/c0.lua
from check-in 647c058939
that are changed by the sequence of edits moving toward
check-in 5f9c2f6f9c:
1: local str = {}
2: local fun = {}
3:
4: local cache_1
5: local cache_2
6: local cache_3
7:
8:
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: fun["是否效果卡"] = function(card)
37: local cache_1
38: local cache_2
39: local cache_3
40:
41: cache_1 = Card.IsType(card, TYPE_SPELL)
42: cache_2 = Card.IsType(card, TYPE_TRAP)
43: cache_3 = Card.IsType(card, TYPE_EFFECT)
44:
45: if cache_1
46: or cache_2
47: or cache_3 then
48: return true
49: end
50: return false
51: end
52:
53: _G["开局说明"] = function()
54: cache_1 = 0
55: cache_1 = cache_1 + LOCATION_DECK
56: cache_1 = cache_1 + LOCATION_HAND
57: cache_1 = cache_1 + LOCATION_MZONE
58: cache_1 = cache_1 + LOCATION_SZONE
59: cache_1 = cache_1 + LOCATION_GRAVE
60: cache_1 = cache_1 + LOCATION_REMOVED
61: cache_1 = cache_1 + LOCATION_EXTRA
62: cache_1 = cache_1 + LOCATION_OVERLAY
63:
64: str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,cache_1,cache_1,nil)
647c058939 2023-06-30 65: --~ str["我方卡组"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_DECK,0,nil)
647c058939 2023-06-30 66: --~ str["我方墓地"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_GRAVE,0,nil)
647c058939 2023-06-30 67: --~ str["我方怪兽区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,6,LOCATION_MZONE,nil)
647c058939 2023-06-30 68: --~ str["我方手卡"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_HAND,0,nil)
647c058939 2023-06-30 69: --~ str["我方灵摆区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_PZONE,0,nil)
647c058939 2023-06-30 70: --~ str["我方除外区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_REMOVED,0,nil)
647c058939 2023-06-30 71: --~ str["我方额外卡组"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_EXTRA,0,nil)
647c058939 2023-06-30 72: --~ str["我方魔陷区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_SZONE,0,nil)
647c058939 2023-06-30 73: --~ str["我方超量素材"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_OVERLAY,0,nil)
647c058939 2023-06-30 74:
647c058939 2023-06-30 75: --~ str["对方卡组"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_DECK,nil)
647c058939 2023-06-30 76: --~ str["对方墓地"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_GRAVE,nil)
647c058939 2023-06-30 77: --~ str["对方怪兽区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_MZONE,nil)
647c058939 2023-06-30 78: --~ str["对方手卡"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_HAND,nil)
647c058939 2023-06-30 79: --~ str["对方灵摆区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_PZONE,nil)
647c058939 2023-06-30 80: --~ str["对方除外区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_REMOVED,nil)
647c058939 2023-06-30 81: --~ str["对方额外卡组"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_EXTRA,nil)
647c058939 2023-06-30 82: --~ str["对方魔陷区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_SZONE,nil)
647c058939 2023-06-30 83: --~ str["对方超量素材"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_OVERLAY,nil)
647c058939 2023-06-30 84:
647c058939 2023-06-30 85: --~ str["这个残局的效果卡数量"] = 0
647c058939 2023-06-30 86:
647c058939 2023-06-30 87: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方卡组"]
647c058939 2023-06-30 88: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方墓地"]
647c058939 2023-06-30 89: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方怪兽区"]
647c058939 2023-06-30 90: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方手卡"]
647c058939 2023-06-30 91: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方灵摆区"]
647c058939 2023-06-30 92: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方除外区"]
647c058939 2023-06-30 93: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方额外卡组"]
647c058939 2023-06-30 94: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方魔陷区"]
647c058939 2023-06-30 95: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方超量素材"]
647c058939 2023-06-30 96:
647c058939 2023-06-30 97: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方卡组"]
647c058939 2023-06-30 98: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方墓地"]
647c058939 2023-06-30 99: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方怪兽区"]
647c058939 2023-06-30 100: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方手卡"]
647c058939 2023-06-30 101: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方灵摆区"]
647c058939 2023-06-30 102: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方除外区"]
647c058939 2023-06-30 103: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方额外卡组"]
647c058939 2023-06-30 104: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方魔陷区"]
647c058939 2023-06-30 105: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方超量素材"]
106:
107: str["开局说明"] = "效果卡:"
108: str["开局说明"] = str["开局说明"] .. str["这个残局的效果卡数量"]
109:
110: Debug.ShowHint(str["开局说明"])
647c058939 2023-06-30 111: --~ Debug.ShowHint(str["我方怪兽区"])
112: end
113:
114: