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