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