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