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