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