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