游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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