游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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