游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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