游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

Origin for each line in script/c0.lua from check-in c458c143fc:

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