eeeff3c24b 2023-07-15 1:
e59d27b43b 2023-07-17 2: local str = {}
e59d27b43b 2023-07-17 3:
6f9888787e 2023-08-02 4: local math = math
6f9888787e 2023-08-02 5: local string = string
6f9888787e 2023-08-02 6: local table = table
6f9888787e 2023-08-02 7:
6f9888787e 2023-08-02 8: _G.fun = {}
6f9888787e 2023-08-02 9:
6f9888787e 2023-08-02 10: ---------------------------------
6f9888787e 2023-08-02 11:
3e5c876e42 2023-07-28 12: local cache_1
3e5c876e42 2023-07-28 13: local cache_2
3e5c876e42 2023-07-28 14: local cache_3
3e5c876e42 2023-07-28 15: local cache_4
3e5c876e42 2023-07-28 16: local cache_5
3e5c876e42 2023-07-28 17: local cache_6
3e5c876e42 2023-07-28 18: local cache_7
3e5c876e42 2023-07-28 19: local cache_8
3e5c876e42 2023-07-28 20: local cache_9
3e5c876e42 2023-07-28 21:
0f75e3f03e 2023-08-02 22: local _
9f9e2c9f7f 2023-07-28 23:
9f9e2c9f7f 2023-07-28 24: str["效果卡的种类表"] = {
9f9e2c9f7f 2023-07-28 25:
9f9e2c9f7f 2023-07-28 26: TYPE_SPELL
9f9e2c9f7f 2023-07-28 27: , TYPE_TRAP
9f9e2c9f7f 2023-07-28 28: , TYPE_EFFECT
9f9e2c9f7f 2023-07-28 29: }
9f9e2c9f7f 2023-07-28 30:
9f9e2c9f7f 2023-07-28 31: str["无效果灵摆怪兽表"] = {
9f9e2c9f7f 2023-07-28 32:
9f9e2c9f7f 2023-07-28 33: 28363749
9f9e2c9f7f 2023-07-28 34: , 19474136
9f9e2c9f7f 2023-07-28 35: , 17390179
9f9e2c9f7f 2023-07-28 36: , 83980492
9f9e2c9f7f 2023-07-28 37: }
9f9e2c9f7f 2023-07-28 38:
3e5c876e42 2023-07-28 39: cache_1 = 0
3e5c876e42 2023-07-28 40:
3e5c876e42 2023-07-28 41: cache_1 = cache_1 + LOCATION_HAND
3e5c876e42 2023-07-28 42: + LOCATION_MZONE
3e5c876e42 2023-07-28 43: + LOCATION_SZONE
3e5c876e42 2023-07-28 44: + LOCATION_GRAVE
3e5c876e42 2023-07-28 45: + LOCATION_REMOVED
3e5c876e42 2023-07-28 46:
3e5c876e42 2023-07-28 47: str["除卡组与额外卡组以外的区域"] = cache_1
3e5c876e42 2023-07-28 48:
3e5c876e42 2023-07-28 49: cache_1 = cache_1 + LOCATION_DECK
3e5c876e42 2023-07-28 50: + LOCATION_EXTRA
3e5c876e42 2023-07-28 51:
3e5c876e42 2023-07-28 52: str["所有区域"] = cache_1
3e5c876e42 2023-07-28 53:
dd1a253607 2023-08-02 54: --第一层-------------------------------
dd1a253607 2023-08-02 55:
dd1a253607 2023-08-02 56: local cache_1
dd1a253607 2023-08-02 57: local cache_2
dd1a253607 2023-08-02 58: local cache_3
dd1a253607 2023-08-02 59: local cache_4
dd1a253607 2023-08-02 60: local cache_5
dd1a253607 2023-08-02 61: local cache_6
dd1a253607 2023-08-02 62: local cache_7
dd1a253607 2023-08-02 63: local cache_8
dd1a253607 2023-08-02 64: local cache_9
dd1a253607 2023-08-02 65:
dd1a253607 2023-08-02 66: local _
45478ef823 2023-07-13 67:
70edc71d15 2023-08-02 68: fun["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
70edc71d15 2023-08-02 69:
70edc71d15 2023-08-02 70: Debug.ReloadFieldBegin = function(str_1, str_2) --{
70edc71d15 2023-08-02 71:
70edc71d15 2023-08-02 72: str["不洗牌"] = str_1 & DUEL_PSEUDO_SHUFFLE
70edc71d15 2023-08-02 73:
70edc71d15 2023-08-02 74: str["无BP"] = str_1 & DUEL_ATTACK_FIRST_TURN
70edc71d15 2023-08-02 75:
9078d0bbe3 2023-10-14 76: str["无AI"] = str_1 & DUEL_SIMPLE_AI
9078d0bbe3 2023-10-14 77:
70edc71d15 2023-08-02 78: str["规则表"] = {
70edc71d15 2023-08-02 79:
70edc71d15 2023-08-02 80: [3] = "大师3 "
70edc71d15 2023-08-02 81: , [4] = "新大师 "
70edc71d15 2023-08-02 82: , [5] = "大师2020 "
70edc71d15 2023-08-02 83: }
70edc71d15 2023-08-02 84:
70edc71d15 2023-08-02 85: if str_2 then --{
70edc71d15 2023-08-02 86:
70edc71d15 2023-08-02 87: str["规则"] = str["规则表"][str_2]
70edc71d15 2023-08-02 88:
70edc71d15 2023-08-02 89: --}
70edc71d15 2023-08-02 90:
70edc71d15 2023-08-02 91: else --{
70edc71d15 2023-08-02 92:
70edc71d15 2023-08-02 93: str["规则"] = str["规则表"][5]
70edc71d15 2023-08-02 94:
70edc71d15 2023-08-02 95: end --}
70edc71d15 2023-08-02 96:
70edc71d15 2023-08-02 97: fun["Debug.ReloadFieldBegin"](str_1, str_2)
70edc71d15 2023-08-02 98:
70edc71d15 2023-08-02 99: end --}
70edc71d15 2023-08-02 100:
e883722fe2 2023-08-02 101: fun["一_随机抽卡"] = function(str_1) --{
e883722fe2 2023-08-02 102:
e883722fe2 2023-08-02 103: str["随机抽卡的数量"] = str_1
e883722fe2 2023-08-02 104:
e883722fe2 2023-08-02 105: str["效果"] = Effect.GlobalEffect()
e883722fe2 2023-08-02 106:
e883722fe2 2023-08-02 107: str["效果"]:SetType(EFFECT_TYPE_FIELD
e883722fe2 2023-08-02 108: + EFFECT_TYPE_CONTINUOUS)
e883722fe2 2023-08-02 109:
e883722fe2 2023-08-02 110: str["效果"]:SetCode(EVENT_ADJUST)
e883722fe2 2023-08-02 111:
e883722fe2 2023-08-02 112: str["效果"]:SetCondition(aux.TRUE)
e883722fe2 2023-08-02 113:
e883722fe2 2023-08-02 114: function cache_1(effect_event
e883722fe2 2023-08-02 115: , player_who_activate_the_effect) --{
e883722fe2 2023-08-02 116:
e883722fe2 2023-08-02 117: Duel.ShuffleDeck(0)
e883722fe2 2023-08-02 118:
e883722fe2 2023-08-02 119: Duel.Draw(0,str_1,REASON_RULE)
e883722fe2 2023-08-02 120:
e883722fe2 2023-08-02 121: effect_event:Reset()
e883722fe2 2023-08-02 122:
e883722fe2 2023-08-02 123: end --}
e883722fe2 2023-08-02 124:
e883722fe2 2023-08-02 125: str["效果"]:SetOperation(cache_1)
e883722fe2 2023-08-02 126:
e883722fe2 2023-08-02 127: Duel.RegisterEffect(str["效果"]
e883722fe2 2023-08-02 128: , 0)
e883722fe2 2023-08-02 129:
e883722fe2 2023-08-02 130: end --}
e883722fe2 2023-08-02 131:
c291f89d7e 2023-08-02 132: fun["一_失败得分"] = function() --{
9f9e2c9f7f 2023-07-28 133:
9f9e2c9f7f 2023-07-28 134: str["失败得分表"] = {
9f9e2c9f7f 2023-07-28 135:
1c6488a768 2023-07-28 136: [0] = "神龙之圣刻印"
1c6488a768 2023-07-28 137: , [100] = "调和支援士"
1c6488a768 2023-07-28 138: , [200] = "深渊的暗杀者"
1c6488a768 2023-07-28 139: , [300] = "救援猫"
1c6488a768 2023-07-28 140: , [400] = "注射天使 莉莉"
1c6488a768 2023-07-28 141: , [500] = "不知火的隐者"
1c6488a768 2023-07-28 142: , [600] = "影依猎鹰"
1c6488a768 2023-07-28 143: , [700] = "铁兽战线 姬特"
1c6488a768 2023-07-28 144: , [800] = "召唤僧"
1c6488a768 2023-07-28 145: , [900] = "恩底弥翁的仆从"
1c6488a768 2023-07-28 146: , [1000] = "机壳工具 丑恶"
1c6488a768 2023-07-28 147: , [1100] = "欧尼斯特"
1c6488a768 2023-07-28 148: , [1200] = "次元吸引者"
1c6488a768 2023-07-28 149: , [1300] = "黑羽-疾风之盖尔"
1c6488a768 2023-07-28 150: , [1400] = "加农炮兵"
1c6488a768 2023-07-28 151: , [1500] = "教导的大神祗官"
1c6488a768 2023-07-28 152: , [1600] = "地中族导师"
1c6488a768 2023-07-28 153: , [1700] = "相剑师-莫邪"
1c6488a768 2023-07-28 154: , [1800] = "宝玉兽-青玉飞马"
1c6488a768 2023-07-28 155: , [1900] = "命运英雄 血魔-D"
1c6488a768 2023-07-28 156: , [2000] = "流离的狮鹫骑手"
1c6488a768 2023-07-28 157: , [2100] = "电子龙"
1c6488a768 2023-07-28 158: , [2200] = "古遗物-死镰"
1c6488a768 2023-07-28 159: , [2300] = "能朋克 调狐"
1c6488a768 2023-07-28 160: , [2400] = "俱舍怒威族·芬里尔狼"
1c6488a768 2023-07-28 161: , [2500] = "黑魔术师"
1c6488a768 2023-07-28 162: , [2600] = "雅典娜"
1c6488a768 2023-07-28 163: , [2700] = "暗黑界的龙神 格拉法"
1c6488a768 2023-07-28 164: , [2800] = "魔导兽 刻耳柏洛斯尊主"
1c6488a768 2023-07-28 165: , [2900] = "元素英雄 永生侠"
1c6488a768 2023-07-28 166: , [3000] = "青眼白龙"
9f9e2c9f7f 2023-07-28 167: }
9f9e2c9f7f 2023-07-28 168:
7dab13f692 2023-07-25 169: str["对方玩家的初始生命值"] = Duel.GetLP(1)
7dab13f692 2023-07-25 170:
7dab13f692 2023-07-25 171: str["效果"] = Effect.GlobalEffect()
7dab13f692 2023-07-25 172:
7dab13f692 2023-07-25 173: str["效果"]:SetType(EFFECT_TYPE_FIELD
7dab13f692 2023-07-25 174: + EFFECT_TYPE_CONTINUOUS)
7dab13f692 2023-07-25 175:
7dab13f692 2023-07-25 176: str["效果"]:SetCode(EVENT_PHASE_START+PHASE_END)
7dab13f692 2023-07-25 177:
7dab13f692 2023-07-25 178: function cache_1(effect_event
7dab13f692 2023-07-25 179: , player_who_activate_the_effect) --{
7dab13f692 2023-07-25 180:
7dab13f692 2023-07-25 181: cache_1 = Duel.GetLP(1) - str["对方玩家的初始生命值"]
7dab13f692 2023-07-25 182:
7dab13f692 2023-07-25 183: if cache_1 > 0 then --{
7dab13f692 2023-07-25 184:
7dab13f692 2023-07-25 185: return
7dab13f692 2023-07-25 186:
7dab13f692 2023-07-25 187: --}
7dab13f692 2023-07-25 188:
7dab13f692 2023-07-25 189: else --{
7dab13f692 2023-07-25 190:
7dab13f692 2023-07-25 191: cache_1 = math.abs(cache_1) / (str["对方玩家的初始生命值"] - 100)
7dab13f692 2023-07-25 192:
7dab13f692 2023-07-25 193: cache_1 = math.tointeger(cache_1 * 3000 // 100 * 100)
7dab13f692 2023-07-25 194:
7dab13f692 2023-07-25 195: end --}
7dab13f692 2023-07-25 196:
7dab13f692 2023-07-25 197: if cache_1 > 3000 then --{
7dab13f692 2023-07-25 198:
7dab13f692 2023-07-25 199: --}
7dab13f692 2023-07-25 200:
7dab13f692 2023-07-25 201: else --{
7dab13f692 2023-07-25 202:
7dab13f692 2023-07-25 203: Debug.ShowHint("这局,您的得分是 "
7dab13f692 2023-07-25 204: .. cache_1
7dab13f692 2023-07-25 205: .. " 分!\n处于「"
7dab13f692 2023-07-25 206: .. str["失败得分表"][cache_1]
7dab13f692 2023-07-25 207: .. "」级别!")
7dab13f692 2023-07-25 208:
7dab13f692 2023-07-25 209: end --}
7dab13f692 2023-07-25 210:
7dab13f692 2023-07-25 211: effect_event:Reset()
7dab13f692 2023-07-25 212:
7dab13f692 2023-07-25 213: end --}
7dab13f692 2023-07-25 214:
7dab13f692 2023-07-25 215: str["效果"]:SetOperation(cache_1)
7dab13f692 2023-07-25 216:
7dab13f692 2023-07-25 217: Duel.RegisterEffect(str["效果"]
7dab13f692 2023-07-25 218: , 0)
7dab13f692 2023-07-25 219:
7dab13f692 2023-07-25 220: end --}
c291f89d7e 2023-08-02 221:
1911134505 2023-08-02 222: fun["一_该效果不能被连锁"] = function() --{
c291f89d7e 2023-08-02 223:
c291f89d7e 2023-08-02 224: Duel.SetChainLimit(aux.FALSE)
c291f89d7e 2023-08-02 225:
c291f89d7e 2023-08-02 226: return true
c291f89d7e 2023-08-02 227: end --}
c291f89d7e 2023-08-02 228:
c291f89d7e 2023-08-02 229: fun["一_通关邀请"] = function() --{
7282130e6b 2023-10-12 230: --备用:圣魔术师
7282130e6b 2023-10-12 231: str["原解邀请"] = "残局群181175613"
7282130e6b 2023-10-12 232: str["二解邀请"] = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」"
c291f89d7e 2023-08-02 233:
c291f89d7e 2023-08-02 234: str["效果"] = Effect.GlobalEffect()
c291f89d7e 2023-08-02 235:
c291f89d7e 2023-08-02 236: str["效果"]:SetType(EFFECT_TYPE_FIELD
c291f89d7e 2023-08-02 237: + EFFECT_TYPE_CONTINUOUS)
c291f89d7e 2023-08-02 238:
c291f89d7e 2023-08-02 239: str["效果"]:SetCode(EVENT_DAMAGE)
c291f89d7e 2023-08-02 240:
c291f89d7e 2023-08-02 241: function cache_1() --{
c291f89d7e 2023-08-02 242:
c291f89d7e 2023-08-02 243: cache_1 = Duel.GetLP(1)
c291f89d7e 2023-08-02 244:
c291f89d7e 2023-08-02 245: if cache_1 <= 0 then --{
c291f89d7e 2023-08-02 246:
c291f89d7e 2023-08-02 247: if cache_1 == 0 then --{
c291f89d7e 2023-08-02 248:
c291f89d7e 2023-08-02 249: --}
c291f89d7e 2023-08-02 250:
c291f89d7e 2023-08-02 251: else --{
c291f89d7e 2023-08-02 252:
7282130e6b 2023-10-12 253: Debug.ShowHint(str["二解邀请"])
c291f89d7e 2023-08-02 254:
c291f89d7e 2023-08-02 255: end --}
c291f89d7e 2023-08-02 256:
7282130e6b 2023-10-12 257: Debug.ShowHint(str["原解邀请"])
c291f89d7e 2023-08-02 258:
c291f89d7e 2023-08-02 259: --}
c291f89d7e 2023-08-02 260:
c291f89d7e 2023-08-02 261: else --{
c291f89d7e 2023-08-02 262:
c291f89d7e 2023-08-02 263: return false
c291f89d7e 2023-08-02 264:
c291f89d7e 2023-08-02 265: end --}
c291f89d7e 2023-08-02 266:
c291f89d7e 2023-08-02 267: end --}
c291f89d7e 2023-08-02 268:
c291f89d7e 2023-08-02 269: str["效果"]:SetCondition(cache_1)
c291f89d7e 2023-08-02 270:
c291f89d7e 2023-08-02 271: str["效果"]:SetOperation(aux.NULL)
c291f89d7e 2023-08-02 272:
c291f89d7e 2023-08-02 273: Duel.RegisterEffect(str["效果"]
c291f89d7e 2023-08-02 274: , 0)
c291f89d7e 2023-08-02 275:
c291f89d7e 2023-08-02 276: end --}
c291f89d7e 2023-08-02 277:
c291f89d7e 2023-08-02 278: fun["一_是否效果卡"] = function(card) --{
c291f89d7e 2023-08-02 279:
c291f89d7e 2023-08-02 280: for i = 1, #str["效果卡的种类表"] do --{
c291f89d7e 2023-08-02 281:
c291f89d7e 2023-08-02 282: if Card.IsType(card, str["效果卡的种类表"][i]) then --{
c291f89d7e 2023-08-02 283:
c291f89d7e 2023-08-02 284: return true
c291f89d7e 2023-08-02 285: end --}
c291f89d7e 2023-08-02 286:
c291f89d7e 2023-08-02 287: end --}
c291f89d7e 2023-08-02 288:
c291f89d7e 2023-08-02 289: if Card.IsType(card, TYPE_PENDULUM) then --{
c291f89d7e 2023-08-02 290:
c291f89d7e 2023-08-02 291: for i = 1, #str["无效果灵摆怪兽表"] do --{
c291f89d7e 2023-08-02 292:
c291f89d7e 2023-08-02 293: if Card.IsCode(card, str["无效果灵摆怪兽表"][i]) then --{
c291f89d7e 2023-08-02 294:
c291f89d7e 2023-08-02 295: --}
c291f89d7e 2023-08-02 296:
c291f89d7e 2023-08-02 297: else --{
c291f89d7e 2023-08-02 298:
c291f89d7e 2023-08-02 299: return true
c291f89d7e 2023-08-02 300:
c291f89d7e 2023-08-02 301: end --}
c291f89d7e 2023-08-02 302:
c291f89d7e 2023-08-02 303: end --}
c291f89d7e 2023-08-02 304:
c291f89d7e 2023-08-02 305: end --}
c291f89d7e 2023-08-02 306:
c291f89d7e 2023-08-02 307: return false
c291f89d7e 2023-08-02 308:
c291f89d7e 2023-08-02 309: end --}
c291f89d7e 2023-08-02 310:
c291f89d7e 2023-08-02 311: fun["一_开局添加手卡"] = function(str_1) --{
3a117406ec 2023-09-28 312:
3a117406ec 2023-09-28 313: str["开局添加手卡"] = true
c291f89d7e 2023-08-02 314:
c291f89d7e 2023-08-02 315: str["开局添加手卡的数量"] = str_1
c291f89d7e 2023-08-02 316:
c291f89d7e 2023-08-02 317: str["效果"] = Effect.GlobalEffect()
c291f89d7e 2023-08-02 318:
c291f89d7e 2023-08-02 319: str["效果"]:SetType(EFFECT_TYPE_FIELD
c291f89d7e 2023-08-02 320: + EFFECT_TYPE_CONTINUOUS)
c291f89d7e 2023-08-02 321:
c291f89d7e 2023-08-02 322: str["效果"]:SetCode(EVENT_ADJUST)
c291f89d7e 2023-08-02 323:
c291f89d7e 2023-08-02 324: str["效果"]:SetCondition(aux.TRUE)
c291f89d7e 2023-08-02 325:
c291f89d7e 2023-08-02 326: function cache_1(effect_event
c291f89d7e 2023-08-02 327: , player_who_activate_the_effect) --{
c291f89d7e 2023-08-02 328:
c291f89d7e 2023-08-02 329: str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
c291f89d7e 2023-08-02 330: , Card.IsAbleToHand
c291f89d7e 2023-08-02 331: , player_who_activate_the_effect
c291f89d7e 2023-08-02 332: , LOCATION_DECK
c291f89d7e 2023-08-02 333: , 0
c291f89d7e 2023-08-02 334: , str_1
c291f89d7e 2023-08-02 335: , str_1
c291f89d7e 2023-08-02 336: , nil)
c291f89d7e 2023-08-02 337:
c291f89d7e 2023-08-02 338: Duel.SendtoHand(str["玩家选定的卡"]
c291f89d7e 2023-08-02 339: , nil
c291f89d7e 2023-08-02 340: , REASON_RULE)
c291f89d7e 2023-08-02 341:
c291f89d7e 2023-08-02 342: effect_event:Reset()
c291f89d7e 2023-08-02 343:
c291f89d7e 2023-08-02 344: end --}
c291f89d7e 2023-08-02 345:
c291f89d7e 2023-08-02 346: str["效果"]:SetOperation(cache_1)
c291f89d7e 2023-08-02 347:
c291f89d7e 2023-08-02 348: Duel.RegisterEffect(str["效果"]
c291f89d7e 2023-08-02 349: , 0)
c291f89d7e 2023-08-02 350:
c291f89d7e 2023-08-02 351: end --}
c291f89d7e 2023-08-02 352:
c291f89d7e 2023-08-02 353: fun["一_禁格"] = function(str_1) --{
0912fe4f22 2023-10-08 354:
0912fe4f22 2023-10-08 355: str["禁格"] = true
c291f89d7e 2023-08-02 356:
c291f89d7e 2023-08-02 357: str["禁格的数量"] = str_1
c291f89d7e 2023-08-02 358:
c291f89d7e 2023-08-02 359: str["效果"] = Effect.GlobalEffect()
c291f89d7e 2023-08-02 360:
c291f89d7e 2023-08-02 361: str["效果"]:SetCode(EFFECT_USE_EXTRA_MZONE)
c291f89d7e 2023-08-02 362:
c291f89d7e 2023-08-02 363: str["效果"]:SetValue(str_1)
c291f89d7e 2023-08-02 364:
c291f89d7e 2023-08-02 365: Duel.RegisterEffect(str["效果"],0)
c291f89d7e 2023-08-02 366:
c291f89d7e 2023-08-02 367: end --}
c291f89d7e 2023-08-02 368:
c291f89d7e 2023-08-02 369: --第二层-------------------------------
c291f89d7e 2023-08-02 370:
c291f89d7e 2023-08-02 371: local cache_1
c291f89d7e 2023-08-02 372: local cache_2
c291f89d7e 2023-08-02 373: local cache_3
c291f89d7e 2023-08-02 374: local cache_4
c291f89d7e 2023-08-02 375: local cache_5
c291f89d7e 2023-08-02 376: local cache_6
c291f89d7e 2023-08-02 377: local cache_7
c291f89d7e 2023-08-02 378: local cache_8
c291f89d7e 2023-08-02 379: local cache_9
c291f89d7e 2023-08-02 380:
c291f89d7e 2023-08-02 381: local _
c110227920 2023-08-02 382:
c110227920 2023-08-02 383: fun["Debug.ReloadFieldEnd"] = Debug.ReloadFieldEnd
c110227920 2023-08-02 384:
c110227920 2023-08-02 385: Debug.ReloadFieldEnd = function(str_1) --{
c110227920 2023-08-02 386:
c110227920 2023-08-02 387: fun["Debug.ReloadFieldEnd"]()
c110227920 2023-08-02 388:
c110227920 2023-08-02 389: if str_1 then --{
c110227920 2023-08-02 390:
c110227920 2023-08-02 391: fun["一_随机抽卡"](str_1)
c110227920 2023-08-02 392:
c110227920 2023-08-02 393: end --}
c110227920 2023-08-02 394:
c110227920 2023-08-02 395: end --}
76d31290b8 2023-08-02 396:
76d31290b8 2023-08-02 397: fun["二_印卡"] = function(str_1, str_2, str_3) --{
c291f89d7e 2023-08-02 398:
c291f89d7e 2023-08-02 399: if str_3 then --{
c291f89d7e 2023-08-02 400:
c291f89d7e 2023-08-02 401: --}
c291f89d7e 2023-08-02 402:
c291f89d7e 2023-08-02 403: else --{
c291f89d7e 2023-08-02 404:
c291f89d7e 2023-08-02 405: str_3 = str_2
c291f89d7e 2023-08-02 406:
c291f89d7e 2023-08-02 407: end --}
c291f89d7e 2023-08-02 408:
c291f89d7e 2023-08-02 409: Debug.ShowHint("点击对方额外卡组可以进行印卡。\n手卡只能印 "
c291f89d7e 2023-08-02 410: .. str_2
c291f89d7e 2023-08-02 411: .. " 张。\n最多可以印 "
c291f89d7e 2023-08-02 412: .. str_3
c291f89d7e 2023-08-02 413: .. " 张")
c291f89d7e 2023-08-02 414:
c291f89d7e 2023-08-02 415: str["效果"] = Effect.CreateEffect(str_1)
c291f89d7e 2023-08-02 416:
c291f89d7e 2023-08-02 417: str["当前印卡数"] = 1
c291f89d7e 2023-08-02 418:
c291f89d7e 2023-08-02 419: str["效果"]:SetType(EFFECT_TYPE_IGNITION)
c291f89d7e 2023-08-02 420:
c291f89d7e 2023-08-02 421: str["效果"]:SetProperty(EFFECT_FLAG_BOTH_SIDE
c291f89d7e 2023-08-02 422: + EFFECT_FLAG_UNCOPYABLE
c291f89d7e 2023-08-02 423: + EFFECT_FLAG_CANNOT_NEGATE
c291f89d7e 2023-08-02 424: + EFFECT_FLAG_CANNOT_DISABLE)
c291f89d7e 2023-08-02 425:
89674b235f 2023-08-02 426: str["效果"]:SetTarget(fun["一_该效果不能被连锁"])
c291f89d7e 2023-08-02 427:
c291f89d7e 2023-08-02 428: str["效果"]:SetRange(LOCATION_EXTRA)
c291f89d7e 2023-08-02 429:
c291f89d7e 2023-08-02 430: function print_hand(effect_event
c291f89d7e 2023-08-02 431: , player_who_activate_the_effect) --{
c291f89d7e 2023-08-02 432:
c291f89d7e 2023-08-02 433: announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
c291f89d7e 2023-08-02 434:
c291f89d7e 2023-08-02 435: card = Duel.CreateToken(player_who_activate_the_effect
c291f89d7e 2023-08-02 436: , announce_card)
c291f89d7e 2023-08-02 437:
c291f89d7e 2023-08-02 438: if str["当前印卡数"] <= str_2 then --{
c291f89d7e 2023-08-02 439:
c291f89d7e 2023-08-02 440: str["当前印卡数"] = str["当前印卡数"] + 1
c291f89d7e 2023-08-02 441:
c291f89d7e 2023-08-02 442: Duel.SendtoHand(card,nil,REASON_RULE)
c291f89d7e 2023-08-02 443:
c291f89d7e 2023-08-02 444: --}
c291f89d7e 2023-08-02 445:
c291f89d7e 2023-08-02 446: else --{
c291f89d7e 2023-08-02 447:
c291f89d7e 2023-08-02 448: if str["当前印卡数"] <= str_3 then --{
c291f89d7e 2023-08-02 449:
c291f89d7e 2023-08-02 450: str["当前印卡数"] = str["当前印卡数"] + 1
c291f89d7e 2023-08-02 451:
c291f89d7e 2023-08-02 452: Duel.Remove(card,POS_FACEUP,REASON_RULE)
c291f89d7e 2023-08-02 453:
c291f89d7e 2023-08-02 454: Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
c291f89d7e 2023-08-02 455:
c291f89d7e 2023-08-02 456: --}
c291f89d7e 2023-08-02 457:
c291f89d7e 2023-08-02 458: else --{
c291f89d7e 2023-08-02 459:
c291f89d7e 2023-08-02 460: Debug.ShowHint("印卡过多!")
c291f89d7e 2023-08-02 461:
c291f89d7e 2023-08-02 462: effect_event:Reset()
c291f89d7e 2023-08-02 463:
c291f89d7e 2023-08-02 464: end --}
c291f89d7e 2023-08-02 465:
c291f89d7e 2023-08-02 466: end --}
c291f89d7e 2023-08-02 467:
c291f89d7e 2023-08-02 468: end --}
c291f89d7e 2023-08-02 469:
c291f89d7e 2023-08-02 470: str["效果"]:SetOperation(print_hand)
c291f89d7e 2023-08-02 471:
c291f89d7e 2023-08-02 472: str_1:RegisterEffect(str["效果"])
c291f89d7e 2023-08-02 473:
c291f89d7e 2023-08-02 474: end --}
89674b235f 2023-08-02 475:
89674b235f 2023-08-02 476: fun["二_开局说明"] = function() --{
89674b235f 2023-08-02 477:
89674b235f 2023-08-02 478: str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"]
89674b235f 2023-08-02 479: , 0
89674b235f 2023-08-02 480: , str["所有区域"]
89674b235f 2023-08-02 481: , str["所有区域"]
89674b235f 2023-08-02 482: , nil)
89674b235f 2023-08-02 483:
89674b235f 2023-08-02 484: str["超量素材组"] = Duel.GetOverlayGroup(0
89674b235f 2023-08-02 485: , LOCATION_MZONE
89674b235f 2023-08-02 486: , LOCATION_MZONE)
89674b235f 2023-08-02 487:
89674b235f 2023-08-02 488: for k in aux.Next(str["超量素材组"]) do --{
89674b235f 2023-08-02 489:
89674b235f 2023-08-02 490: if fun["一_是否效果卡"](k) then --{
89674b235f 2023-08-02 491:
89674b235f 2023-08-02 492: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
89674b235f 2023-08-02 493:
89674b235f 2023-08-02 494: end --}
89674b235f 2023-08-02 495:
89674b235f 2023-08-02 496: end --}
89674b235f 2023-08-02 497:
89674b235f 2023-08-02 498: str["开局说明"] = str["这个残局的效果卡数量"]
89674b235f 2023-08-02 499: .. "卡 "
89674b235f 2023-08-02 500: .. str["规则"]
89674b235f 2023-08-02 501:
89674b235f 2023-08-02 502: if str["不洗牌"] == 0 then --{
89674b235f 2023-08-02 503:
89674b235f 2023-08-02 504: --}
89674b235f 2023-08-02 505:
89674b235f 2023-08-02 506: else --{
89674b235f 2023-08-02 507:
89674b235f 2023-08-02 508: str["开局说明"] = str["开局说明"] .. "伪洗牌 "
89674b235f 2023-08-02 509:
89674b235f 2023-08-02 510: end --}
89674b235f 2023-08-02 511:
89674b235f 2023-08-02 512: if str["无BP"] == 0 then --{
89674b235f 2023-08-02 513:
89674b235f 2023-08-02 514: str["开局说明"] = str["开局说明"] .. "无BP "
9078d0bbe3 2023-10-14 515:
9078d0bbe3 2023-10-14 516: end --}
9078d0bbe3 2023-10-14 517:
9078d0bbe3 2023-10-14 518: if str["无AI"] == 0 then --{
9078d0bbe3 2023-10-14 519:
9078d0bbe3 2023-10-14 520: str["开局说明"] = str["开局说明"] .. "无AI "
526e8343ee 2023-08-02 521:
526e8343ee 2023-08-02 522: end --}
526e8343ee 2023-08-02 523:
89674b235f 2023-08-02 524: if str["开局添加手卡"] then --{
89674b235f 2023-08-02 525:
89674b235f 2023-08-02 526: str["开局说明"] = str["开局说明"]
89674b235f 2023-08-02 527: .. "选"
89674b235f 2023-08-02 528: .. str["开局添加手卡的数量"]
89674b235f 2023-08-02 529: .. "卡 "
89674b235f 2023-08-02 530:
89674b235f 2023-08-02 531: end --}
89674b235f 2023-08-02 532:
89674b235f 2023-08-02 533: if str["禁格"] then --{
89674b235f 2023-08-02 534:
89674b235f 2023-08-02 535: str["开局说明"] = str["开局说明"]
89674b235f 2023-08-02 536: .. "禁"
89674b235f 2023-08-02 537: .. str["禁格的数量"]
89674b235f 2023-08-02 538: .. "格 "
89674b235f 2023-08-02 539:
89674b235f 2023-08-02 540: end --}
89674b235f 2023-08-02 541:
89674b235f 2023-08-02 542: if str["随机抽卡的数量"] then --{
89674b235f 2023-08-02 543:
89674b235f 2023-08-02 544: str["开局说明"] = str["开局说明"]
89674b235f 2023-08-02 545: .. "抽"
89674b235f 2023-08-02 546: .. str["随机抽卡的数量"]
89674b235f 2023-08-02 547: .. "卡 "
89674b235f 2023-08-02 548: end --}
89674b235f 2023-08-02 549:
89674b235f 2023-08-02 550: Debug.ShowHint(str["开局说明"])
89674b235f 2023-08-02 551:
89674b235f 2023-08-02 552: end --}
e883722fe2 2023-08-02 553:
89674b235f 2023-08-02 554: --第三层-------------------------------
89674b235f 2023-08-02 555:
89674b235f 2023-08-02 556: local cache_1
89674b235f 2023-08-02 557: local cache_2
89674b235f 2023-08-02 558: local cache_3
89674b235f 2023-08-02 559: local cache_4
89674b235f 2023-08-02 560: local cache_5
89674b235f 2023-08-02 561: local cache_6
89674b235f 2023-08-02 562: local cache_7
89674b235f 2023-08-02 563: local cache_8
89674b235f 2023-08-02 564: local cache_9
89674b235f 2023-08-02 565:
89674b235f 2023-08-02 566: local _
89674b235f 2023-08-02 567:
89674b235f 2023-08-02 568: fun["aux.BeginPuzzle"] = aux.BeginPuzzle
e883722fe2 2023-08-02 569:
89674b235f 2023-08-02 570: aux.BeginPuzzle = function(str_1, str_2) --{
89674b235f 2023-08-02 571:
89674b235f 2023-08-02 572: fun["aux.BeginPuzzle"]()
89674b235f 2023-08-02 573:
89674b235f 2023-08-02 574: if str_1 then --{
89674b235f 2023-08-02 575:
1d67d9f6e3 2023-08-02 576: fun["一_开局添加手卡"](str_1)
89674b235f 2023-08-02 577:
89674b235f 2023-08-02 578: end --}
89674b235f 2023-08-02 579:
89674b235f 2023-08-02 580: if str_2 then --{
89674b235f 2023-08-02 581:
1d67d9f6e3 2023-08-02 582: fun["一_禁格"](str_2)
1d67d9f6e3 2023-08-02 583:
1d67d9f6e3 2023-08-02 584: end --}
1d67d9f6e3 2023-08-02 585:
1d67d9f6e3 2023-08-02 586: fun["二_开局说明"]()
1d67d9f6e3 2023-08-02 587:
1d67d9f6e3 2023-08-02 588: fun["一_通关邀请"]()
1d67d9f6e3 2023-08-02 589:
1d67d9f6e3 2023-08-02 590: fun["一_失败得分"]()
1d67d9f6e3 2023-08-02 591:
1d67d9f6e3 2023-08-02 592: end --}
1d67d9f6e3 2023-08-02 593:
1d67d9f6e3 2023-08-02 594: --兼容层-------------------------------
1d67d9f6e3 2023-08-02 595:
1d67d9f6e3 2023-08-02 596:
1d67d9f6e3 2023-08-02 597: fun["印卡"] = fun["二_印卡"]
30619e5bbd 2023-08-02 598: fun["开局添加手卡"] = fun["一_开局添加手卡"]
30619e5bbd 2023-08-02 599: fun["是否效果卡"] = fun["一_是否效果卡"]
e61778909e 2023-08-02 600: fun["禁格"] = fun["一_禁格"]
30619e5bbd 2023-08-02 601: fun["随机抽卡"] = fun["一_随机抽卡"]