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