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