游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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: 
cea99f0284 2023-07-19   14: local i
cea99f0284 2023-07-19   15: 
41aff3cc3d 2023-07-17   16: _G.fun = {}
cea99f0284 2023-07-19   17: 
1270346ecf 2023-07-19   18: ---------------------------------
1270346ecf 2023-07-19   19: 
8dbe277f54 2023-07-19   20: str["二解弹窗"] = "QB:「你居然二解了,请加群告诉我怎么二解。」"
8dbe277f54 2023-07-19   21: str["原解弹窗"] = "残局群181175613"
ba86300fd5 2023-07-19   22: 
cd474d87a3 2023-07-19   23: str["规则"] = ""
4c397fafe9 2023-07-19   24: 
626009b1d8 2023-07-19   25: str["规则表"] = {}
626009b1d8 2023-07-19   26: str["规则表"][3] = "大师3 "
626009b1d8 2023-07-19   27: str["规则表"][4] = "新大师 "
626009b1d8 2023-07-19   28: str["规则表"][5] = "大师2020 "
4c397fafe9 2023-07-19   29: 
4c397fafe9 2023-07-19   30: str["印卡过多的弹窗"] = "印卡过多!"
4c397fafe9 2023-07-19   31: 
d45a60a6fc 2023-07-20   32: str["印卡弹窗1"] = "点击对方额外卡组可以进行印卡。\n手卡只能印 "
d45a60a6fc 2023-07-20   33: str["印卡弹窗2"] = " 张。\n最多可以印 "
d45a60a6fc 2023-07-20   34: str["印卡弹窗3"] = " 张"
1270346ecf 2023-07-19   35: 
d284579690 2023-07-19   36: str["不洗牌的说明"] = "伪洗牌 "
d284579690 2023-07-19   37: str["无BP的说明"] = "无BP "
d284579690 2023-07-19   38: 
1270346ecf 2023-07-19   39: str["效果卡数量的后缀"] = "卡 "
1270346ecf 2023-07-19   40: 
d284579690 2023-07-19   41: str["选卡的前缀"] = "选"
d284579690 2023-07-19   42: str["选卡的后缀"] = "卡 "
cd474d87a3 2023-07-19   43: 
951422472a 2023-07-19   44: str["禁格的前缀"] = "禁"
951422472a 2023-07-19   45: str["禁格的后缀"] = "格 "
cea99f0284 2023-07-19   46: 
cea99f0284 2023-07-19   47: str["效果卡的种类表"] = {}
cea99f0284 2023-07-19   48: 
cea99f0284 2023-07-19   49: str["效果卡的种类表"][1] = TYPE_SPELL
cea99f0284 2023-07-19   50: str["效果卡的种类表"][2] = TYPE_TRAP
cea99f0284 2023-07-19   51: str["效果卡的种类表"][3] = TYPE_EFFECT
15a06aae93 2023-07-19   52: 
15a06aae93 2023-07-19   53: str["无效果灵摆怪兽表"] = {}
15a06aae93 2023-07-19   54: 
15a06aae93 2023-07-19   55: str["无效果灵摆怪兽表"][1] = 28363749
15a06aae93 2023-07-19   56: str["无效果灵摆怪兽表"][2] = 19474136
15a06aae93 2023-07-19   57: str["无效果灵摆怪兽表"][3] = 17390179
15a06aae93 2023-07-19   58: str["无效果灵摆怪兽表"][4] = 83980492
262ab836d0 2023-07-19   59: 
262ab836d0 2023-07-19   60: cache_1 = 0
262ab836d0 2023-07-19   61: 
262ab836d0 2023-07-19   62: cache_1 = cache_1 + LOCATION_HAND
262ab836d0 2023-07-19   63: cache_1 = cache_1 + LOCATION_MZONE
262ab836d0 2023-07-19   64: cache_1 = cache_1 + LOCATION_SZONE
262ab836d0 2023-07-19   65: cache_1 = cache_1 + LOCATION_GRAVE
262ab836d0 2023-07-19   66: cache_1 = cache_1 + LOCATION_REMOVED
262ab836d0 2023-07-19   67: 
262ab836d0 2023-07-19   68: str["除卡组与额外卡组以外的区域"] = cache_1
262ab836d0 2023-07-19   69: 
262ab836d0 2023-07-19   70: cache_1 = cache_1 + LOCATION_DECK
262ab836d0 2023-07-19   71: cache_1 = cache_1 + LOCATION_EXTRA
262ab836d0 2023-07-19   72: 
262ab836d0 2023-07-19   73: str["所有区域"] = cache_1
262ab836d0 2023-07-19   74: 
1270346ecf 2023-07-19   75: ---------------------------------
1270346ecf 2023-07-19   76: 
ad797768a6 2023-07-14   77: fun["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
45478ef823 2023-07-13   78: 
45478ef823 2023-07-13   79: Debug.ReloadFieldBegin = function(str_1, str_2) --{
993a6dbc45 2023-07-13   80:   
45478ef823 2023-07-13   81:   str["不洗牌"] = str_1 & DUEL_PSEUDO_SHUFFLE
45478ef823 2023-07-13   82:   
45478ef823 2023-07-13   83:   str["无BP"] = str_1 & DUEL_ATTACK_FIRST_TURN
45478ef823 2023-07-13   84:   
45478ef823 2023-07-13   85:   if str_2 then --{
993a6dbc45 2023-07-13   86:     
626009b1d8 2023-07-19   87:     str["规则"] = str["规则表"][str_2]
626009b1d8 2023-07-19   88:     
626009b1d8 2023-07-19   89:     --}
993a6dbc45 2023-07-13   90:     
45478ef823 2023-07-13   91:   else --{
993a6dbc45 2023-07-13   92:     
626009b1d8 2023-07-19   93:     str["规则"] = str["规则表"][5]
ad797768a6 2023-07-14   94:     
ad797768a6 2023-07-14   95:     end --}
ad797768a6 2023-07-14   96:     
ad797768a6 2023-07-14   97:   fun["Debug.ReloadFieldBegin"](str_1, str_2)
ad797768a6 2023-07-14   98:   
ad797768a6 2023-07-14   99:   end --}
ad797768a6 2023-07-14  100:   
7b13e3e7c3 2023-07-16  101: fun["aux.BeginPuzzle"] = aux.BeginPuzzle
7b13e3e7c3 2023-07-16  102: 
66a03a682a 2023-07-20  103: aux.BeginPuzzle = function(str_1, str_2) --{
c1424b8fad 2023-07-16  104:   
02cee86a5d 2023-07-16  105:   fun["aux.BeginPuzzle"]()
c1424b8fad 2023-07-16  106:   
66a03a682a 2023-07-20  107:   if str_1 then --{
66a03a682a 2023-07-20  108:     
66a03a682a 2023-07-20  109:     fun["开局添加手卡"](str_1)
66a03a682a 2023-07-20  110:     
66a03a682a 2023-07-20  111:     end --}
66a03a682a 2023-07-20  112:     
66a03a682a 2023-07-20  113:   if str_2 then --{
66a03a682a 2023-07-20  114:     
66a03a682a 2023-07-20  115:     fun["禁格"](str_2)
66a03a682a 2023-07-20  116:     
66a03a682a 2023-07-20  117:     end --}
66a03a682a 2023-07-20  118:     
02cee86a5d 2023-07-16  119:   fun["开局说明"]()
c1424b8fad 2023-07-16  120:   
cd5279993d 2023-07-16  121:   fun["通关邀请"]()
c1424b8fad 2023-07-16  122:   
02cee86a5d 2023-07-16  123:   end --}
c1424b8fad 2023-07-16  124:   
993a6dbc45 2023-07-13  125: fun["通关邀请"] = function() --{
993a6dbc45 2023-07-13  126:   
6254eda63a 2023-07-23  127:   str["效果"] = Effect.GlobalEffect()
993a6dbc45 2023-07-13  128:   
6254eda63a 2023-07-23  129:   str["效果"]:SetType(EFFECT_TYPE_FIELD
45478ef823 2023-07-13  130:   + EFFECT_TYPE_CONTINUOUS)
45478ef823 2023-07-13  131:   
6254eda63a 2023-07-23  132:   str["效果"]:SetCode(EVENT_DAMAGE)
45478ef823 2023-07-13  133:   
45478ef823 2023-07-13  134:   function cache_1() --{
993a6dbc45 2023-07-13  135:     
45478ef823 2023-07-13  136:     cache_1 = Duel.GetLP(1)
45478ef823 2023-07-13  137:     
45478ef823 2023-07-13  138:     if cache_1 <= 0 then --{
993a6dbc45 2023-07-13  139:       
5593fe6ed7 2023-07-17  140:       if cache_1 == 0 then --{
5593fe6ed7 2023-07-17  141:         
ea070909e1 2023-07-18  142:         --}
ea070909e1 2023-07-18  143:         
ea070909e1 2023-07-18  144:       else  --{
ea070909e1 2023-07-18  145:         
0d8bedefaa 2023-07-23  146:         Debug.ShowHint("QB:「你居然二解了,请加群告诉我怎么二解。」")
334f2bc614 2023-07-18  147:         
334f2bc614 2023-07-18  148:         end --}
334f2bc614 2023-07-18  149:         
0d8bedefaa 2023-07-23  150:       Debug.ShowHint("残局群181175613")
993a6dbc45 2023-07-13  151:       
993a6dbc45 2023-07-13  152:       --}
993a6dbc45 2023-07-13  153:       
993a6dbc45 2023-07-13  154:     else --{
993a6dbc45 2023-07-13  155:       
24b898f4c2 2023-07-16  156:       return false
993a6dbc45 2023-07-13  157:       
993a6dbc45 2023-07-13  158:       end --}
993a6dbc45 2023-07-13  159:       
975214d28e 2023-07-16  160:     end --}
975214d28e 2023-07-16  161:     
6254eda63a 2023-07-23  162:   str["效果"]:SetCondition(cache_1)
115aa990c4 2023-07-16  163:   
6254eda63a 2023-07-23  164:   str["效果"]:SetOperation(aux.NULL)
115aa990c4 2023-07-16  165:   
6254eda63a 2023-07-23  166:   Duel.RegisterEffect(str["效果"]
45478ef823 2023-07-13  167:   , 0)
45478ef823 2023-07-13  168:   
45478ef823 2023-07-13  169:   end --}
993a6dbc45 2023-07-13  170:   
45478ef823 2023-07-13  171: fun["是否效果卡"] = function(card) --{
add769c64d 2023-07-19  172:   
add769c64d 2023-07-19  173:   cache_1 = #str["效果卡的种类表"]
add769c64d 2023-07-19  174:   
add769c64d 2023-07-19  175:   for i = 1, cache_1 do --{
add769c64d 2023-07-19  176:     
add769c64d 2023-07-19  177:     cache_1 = Card.IsType(card, str["效果卡的种类表"][i])
add769c64d 2023-07-19  178:     
add769c64d 2023-07-19  179:     if cache_1 then --{
add769c64d 2023-07-19  180:       
add769c64d 2023-07-19  181:       return true
add769c64d 2023-07-19  182:       end --}
add769c64d 2023-07-19  183:       
45478ef823 2023-07-13  184:     end --}
993a6dbc45 2023-07-13  185:     
45478ef823 2023-07-13  186:   cache_1 = Card.IsType(card, TYPE_PENDULUM)
45478ef823 2023-07-13  187:   
45478ef823 2023-07-13  188:   if cache_1 then --{
993a6dbc45 2023-07-13  189:     
15a06aae93 2023-07-19  190:     cache_1 = #str["无效果灵摆怪兽表"]
15a06aae93 2023-07-19  191:     
15a06aae93 2023-07-19  192:     for i = 1, cache_1 do --{
15a06aae93 2023-07-19  193:       
15a06aae93 2023-07-19  194:       cache_1 = Card.IsCode(card, str["无效果灵摆怪兽表"][i])
15a06aae93 2023-07-19  195:       
15a06aae93 2023-07-19  196:       if cache_1 then --{
15a06aae93 2023-07-19  197:         
15a06aae93 2023-07-19  198:         --}
15a06aae93 2023-07-19  199:         
15a06aae93 2023-07-19  200:       else  --{
15a06aae93 2023-07-19  201:         
15a06aae93 2023-07-19  202:         return true
15a06aae93 2023-07-19  203:         
15a06aae93 2023-07-19  204:         end --}
15a06aae93 2023-07-19  205:         
993a6dbc45 2023-07-13  206:       end --}
993a6dbc45 2023-07-13  207:       
993a6dbc45 2023-07-13  208:     end --}
993a6dbc45 2023-07-13  209:     
45478ef823 2023-07-13  210:   return false
45478ef823 2023-07-13  211:   
45478ef823 2023-07-13  212:   end --}
45478ef823 2023-07-13  213:   
45478ef823 2023-07-13  214: fun["开局说明"] = function() --{
993a6dbc45 2023-07-13  215:   
03f04117d2 2023-07-23  216:   str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"]
03f04117d2 2023-07-23  217:   , 0
03f04117d2 2023-07-23  218:   , str["所有区域"]
03f04117d2 2023-07-23  219:   , str["所有区域"]
03f04117d2 2023-07-23  220:   , nil)
262ab836d0 2023-07-19  221:   
03f04117d2 2023-07-23  222:   cache_1 = Duel.GetOverlayGroup(0
03f04117d2 2023-07-23  223:   , LOCATION_MZONE
03f04117d2 2023-07-23  224:   , LOCATION_MZONE)
45478ef823 2023-07-13  225:   
45478ef823 2023-07-13  226:   for k in aux.Next(cache_1) do --{
993a6dbc45 2023-07-13  227:     
45478ef823 2023-07-13  228:     cache_1 = fun["是否效果卡"](k)
45478ef823 2023-07-13  229:     
45478ef823 2023-07-13  230:     if cache_1 then --{
993a6dbc45 2023-07-13  231:       
45478ef823 2023-07-13  232:       str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
45478ef823 2023-07-13  233:       
45478ef823 2023-07-13  234:       end --}
993a6dbc45 2023-07-13  235:       
45478ef823 2023-07-13  236:     end --}
993a6dbc45 2023-07-13  237:     
03f04117d2 2023-07-23  238:   str["开局说明"] = str["这个残局的效果卡数量"]
03f04117d2 2023-07-23  239:   .. "卡 "
03f04117d2 2023-07-23  240:   .. str["规则"]
45478ef823 2023-07-13  241:   
45478ef823 2023-07-13  242:   if str["不洗牌"] == 0 then --{
993a6dbc45 2023-07-13  243:     
45478ef823 2023-07-13  244:     --}
993a6dbc45 2023-07-13  245:     
45478ef823 2023-07-13  246:   else --{
993a6dbc45 2023-07-13  247:     
03f04117d2 2023-07-23  248:     str["开局说明"] = str["开局说明"] .. "伪洗牌 "
45478ef823 2023-07-13  249:     
45478ef823 2023-07-13  250:     end --}
993a6dbc45 2023-07-13  251:     
45478ef823 2023-07-13  252:   if str["无BP"] == 0 then --{
993a6dbc45 2023-07-13  253:     
03f04117d2 2023-07-23  254:     str["开局说明"] = str["开局说明"] .. "无BP "
45478ef823 2023-07-13  255:     
45478ef823 2023-07-13  256:     end --}
993a6dbc45 2023-07-13  257:     
993a6dbc45 2023-07-13  258:   if str["开局添加手卡"] then --{
993a6dbc45 2023-07-13  259:     
03f04117d2 2023-07-23  260:     str["开局说明"] = str["开局说明"]
03f04117d2 2023-07-23  261:     .. "选"
ddbc332f5e 2023-07-23  262:     .. str["开局添加手卡的数量"]
ddbc332f5e 2023-07-23  263:     .. "卡 "
993a6dbc45 2023-07-13  264:     
993a6dbc45 2023-07-13  265:     end --}
993a6dbc45 2023-07-13  266:     
993a6dbc45 2023-07-13  267:   if str["禁格"] then --{
993a6dbc45 2023-07-13  268:     
27389a3b0a 2023-07-23  269:     str["开局说明"] = str["开局说明"]
27389a3b0a 2023-07-23  270:     .. "禁"
27389a3b0a 2023-07-23  271:     .. str["禁格的数量"]
27389a3b0a 2023-07-23  272:     .. "格 "
0852ed07b8 2023-07-22  273:     
0852ed07b8 2023-07-22  274:     end --}
0852ed07b8 2023-07-22  275:     
0852ed07b8 2023-07-22  276:   if str["随机抽卡的数量"] then --{
a469e38404 2023-07-22  277:     
27389a3b0a 2023-07-23  278:     str["开局说明"] = str["开局说明"]
27389a3b0a 2023-07-23  279:     .. "抽"
27389a3b0a 2023-07-23  280:     .. str["随机抽卡的数量"]
27389a3b0a 2023-07-23  281:     .. "卡 "
993a6dbc45 2023-07-13  282:     end --}
993a6dbc45 2023-07-13  283:     
993a6dbc45 2023-07-13  284:   Debug.ShowHint(str["开局说明"])
993a6dbc45 2023-07-13  285:   
993a6dbc45 2023-07-13  286:   end --}
993a6dbc45 2023-07-13  287:   
993a6dbc45 2023-07-13  288: fun["开局添加手卡"] = function(str_1) --{
993a6dbc45 2023-07-13  289:   
0d5ba0fc61 2023-07-23  290:   str["开局添加手卡的数量"] = str_1
e8a4eb1d6e 2023-07-16  291:   
6254eda63a 2023-07-23  292:   str["效果"] = Effect.GlobalEffect()
e8a4eb1d6e 2023-07-16  293:   
6254eda63a 2023-07-23  294:   str["效果"]:SetType(EFFECT_TYPE_FIELD
e8a4eb1d6e 2023-07-16  295:   + EFFECT_TYPE_CONTINUOUS)
e8a4eb1d6e 2023-07-16  296:   
6254eda63a 2023-07-23  297:   str["效果"]:SetCode(EVENT_ADJUST)
0f0474f258 2023-07-16  298:   
6254eda63a 2023-07-23  299:   str["效果"]:SetCondition(aux.TRUE)
8e87626fe9 2023-07-16  300:   
8e87626fe9 2023-07-16  301:   function cache_1(effect_event
8e87626fe9 2023-07-16  302:   , player_who_activate_the_effect) --{
8e87626fe9 2023-07-16  303:     
8e87626fe9 2023-07-16  304:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
4e8f89ad97 2023-07-11  305:     , Card.IsAbleToHand
8e87626fe9 2023-07-16  306:     , player_who_activate_the_effect
4e8f89ad97 2023-07-11  307:     , LOCATION_DECK
4e8f89ad97 2023-07-11  308:     , 0
4e8f89ad97 2023-07-11  309:     , str_1
4e8f89ad97 2023-07-11  310:     , str_1
4e8f89ad97 2023-07-11  311:     , nil)
4e8f89ad97 2023-07-11  312:     
4e8f89ad97 2023-07-11  313:     Duel.SendtoHand(str["玩家选定的卡"]
4e8f89ad97 2023-07-11  314:     , nil
4e8f89ad97 2023-07-11  315:     , REASON_RULE)
8e87626fe9 2023-07-16  316:     
e28a9fe965 2023-07-16  317:     effect_event:Reset()
1539e099d7 2023-07-16  318:     
8e87626fe9 2023-07-16  319:     end --}
8e87626fe9 2023-07-16  320:     
6254eda63a 2023-07-23  321:   str["效果"]:SetOperation(cache_1)
8e87626fe9 2023-07-16  322:   
6254eda63a 2023-07-23  323:   Duel.RegisterEffect(str["效果"]
8e87626fe9 2023-07-16  324:   , 0)
17d6844110 2023-07-16  325:   
993a6dbc45 2023-07-13  326:   end --}
993a6dbc45 2023-07-13  327:   
993a6dbc45 2023-07-13  328: fun["禁格"] = function(str_1) --{
993a6dbc45 2023-07-13  329:   
0d5ba0fc61 2023-07-23  330:   str["禁格的数量"] = str_1
6254eda63a 2023-07-23  331:   
6254eda63a 2023-07-23  332:   str["效果"] = Effect.GlobalEffect()
6254eda63a 2023-07-23  333:   
6254eda63a 2023-07-23  334:   str["效果"]:SetCode(EFFECT_USE_EXTRA_MZONE)
6254eda63a 2023-07-23  335:   
6254eda63a 2023-07-23  336:   str["效果"]:SetValue(str_1)
6254eda63a 2023-07-23  337:   
6254eda63a 2023-07-23  338:   Duel.RegisterEffect(str["效果"],0)
993a6dbc45 2023-07-13  339:   
993a6dbc45 2023-07-13  340:   end --}
993a6dbc45 2023-07-13  341:   
993a6dbc45 2023-07-13  342: fun["印卡"] = function(str_1, str_2, str_3) --{
993a6dbc45 2023-07-13  343:   
993a6dbc45 2023-07-13  344:   if str_3 then --{
993a6dbc45 2023-07-13  345:     
993a6dbc45 2023-07-13  346:     --}
993a6dbc45 2023-07-13  347:     
993a6dbc45 2023-07-13  348:   else --{
993a6dbc45 2023-07-13  349:     
d5d0e03305 2023-07-11  350:     str_3 = str_2
45478ef823 2023-07-13  351:     
d5d0e03305 2023-07-11  352:     end --}
993a6dbc45 2023-07-13  353:     
0d5ba0fc61 2023-07-23  354:   Debug.ShowHint("点击对方额外卡组可以进行印卡。\n手卡只能印 "
0d5ba0fc61 2023-07-23  355:   .. str_2
0d5ba0fc61 2023-07-23  356:   .. " 张。\n最多可以印 "
0d5ba0fc61 2023-07-23  357:   .. str_3
0d5ba0fc61 2023-07-23  358:   .. " 张")
6254eda63a 2023-07-23  359:   
6254eda63a 2023-07-23  360:   str["效果"] = Effect.CreateEffect(str_1)
9a1184f29f 2023-07-22  361:   
9a1184f29f 2023-07-22  362:   str["当前印卡数"] = 1
9a1184f29f 2023-07-22  363:   
6254eda63a 2023-07-23  364:   str["效果"]:SetType(EFFECT_TYPE_IGNITION)
9a1184f29f 2023-07-22  365:   
6254eda63a 2023-07-23  366:   str["效果"]:SetProperty(EFFECT_FLAG_BOTH_SIDE
d5d0e03305 2023-07-11  367:   + EFFECT_FLAG_UNCOPYABLE
d5d0e03305 2023-07-11  368:   + EFFECT_FLAG_CANNOT_NEGATE
d5d0e03305 2023-07-11  369:   + EFFECT_FLAG_CANNOT_DISABLE)
d5d0e03305 2023-07-11  370:   
d5d0e03305 2023-07-11  371:   cache_1 = function() --{
993a6dbc45 2023-07-13  372:     
d5d0e03305 2023-07-11  373:     Duel.SetChainLimit(aux.FALSE)
d5d0e03305 2023-07-11  374:     
d5d0e03305 2023-07-11  375:     return true
45478ef823 2023-07-13  376:     
d5d0e03305 2023-07-11  377:     end --}
993a6dbc45 2023-07-13  378:     
6254eda63a 2023-07-23  379:   str["效果"]:SetTarget(cache_1)
d5d0e03305 2023-07-11  380:   
6254eda63a 2023-07-23  381:   str["效果"]:SetRange(LOCATION_EXTRA)
d5d0e03305 2023-07-11  382:   
d5d0e03305 2023-07-11  383:   function print_hand(effect_event
d5d0e03305 2023-07-11  384:   , player_who_activate_the_effect) --{
993a6dbc45 2023-07-13  385:     
d5d0e03305 2023-07-11  386:     announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
d5d0e03305 2023-07-11  387:     
d5d0e03305 2023-07-11  388:     card = Duel.CreateToken(player_who_activate_the_effect
d5d0e03305 2023-07-11  389:     , announce_card)
d5d0e03305 2023-07-11  390:     
d5d0e03305 2023-07-11  391:     if str["当前印卡数"] <= str_2 then --{
993a6dbc45 2023-07-13  392:       
d5d0e03305 2023-07-11  393:       str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  394:       
d5d0e03305 2023-07-11  395:       Duel.SendtoHand(card,nil,REASON_RULE)
45478ef823 2023-07-13  396:       
d5d0e03305 2023-07-11  397:       --}
993a6dbc45 2023-07-13  398:       
d5d0e03305 2023-07-11  399:     else --{
993a6dbc45 2023-07-13  400:       
d5d0e03305 2023-07-11  401:       if str["当前印卡数"] <= str_3 then --{
993a6dbc45 2023-07-13  402:         
d5d0e03305 2023-07-11  403:         str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  404:         
d5d0e03305 2023-07-11  405:         Duel.Remove(card,POS_FACEUP,REASON_RULE)
d5d0e03305 2023-07-11  406:         
d5d0e03305 2023-07-11  407:         Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
45478ef823 2023-07-13  408:         
d5d0e03305 2023-07-11  409:         --}
993a6dbc45 2023-07-13  410:         
993a6dbc45 2023-07-13  411:       else --{
993a6dbc45 2023-07-13  412:         
4c397fafe9 2023-07-19  413:         Debug.ShowHint(str["印卡过多的弹窗"])
a30b9aba5d 2023-07-16  414:         
a30b9aba5d 2023-07-16  415:         effect_event:Reset()
993a6dbc45 2023-07-13  416:         
993a6dbc45 2023-07-13  417:         end --}
993a6dbc45 2023-07-13  418:         
993a6dbc45 2023-07-13  419:       end --}
993a6dbc45 2023-07-13  420:       
993a6dbc45 2023-07-13  421:     end --}
993a6dbc45 2023-07-13  422:     
6254eda63a 2023-07-23  423:   str["效果"]:SetOperation(print_hand)
0852ed07b8 2023-07-22  424:   
6254eda63a 2023-07-23  425:   str_1:RegisterEffect(str["效果"])
0852ed07b8 2023-07-22  426:   
0852ed07b8 2023-07-22  427:   end --}
0852ed07b8 2023-07-22  428:   
0852ed07b8 2023-07-22  429: fun["随机抽卡"] = function(str_1) --{
a469e38404 2023-07-22  430:   
0852ed07b8 2023-07-22  431:   str["随机抽卡的数量"] = str_1
63daf9144a 2023-07-22  432:   
6254eda63a 2023-07-23  433:   str["效果"] = Effect.GlobalEffect()
63daf9144a 2023-07-22  434:   
6254eda63a 2023-07-23  435:   str["效果"]:SetType(EFFECT_TYPE_FIELD
63daf9144a 2023-07-22  436:   + EFFECT_TYPE_CONTINUOUS)
63daf9144a 2023-07-22  437:   
6254eda63a 2023-07-23  438:   str["效果"]:SetCode(EVENT_ADJUST)
63daf9144a 2023-07-22  439:   
6254eda63a 2023-07-23  440:   str["效果"]:SetCondition(aux.TRUE)
63daf9144a 2023-07-22  441:   
63daf9144a 2023-07-22  442:   function cache_1(effect_event
63daf9144a 2023-07-22  443:   , player_who_activate_the_effect) --{
a469e38404 2023-07-22  444:     
63daf9144a 2023-07-22  445:     Duel.ShuffleDeck(0)
a469e38404 2023-07-22  446:     
63daf9144a 2023-07-22  447:     Duel.Draw(0,str_1,REASON_RULE)
63daf9144a 2023-07-22  448:     
63daf9144a 2023-07-22  449:     effect_event:Reset()
63daf9144a 2023-07-22  450:     
63daf9144a 2023-07-22  451:     end --}
63daf9144a 2023-07-22  452:     
6254eda63a 2023-07-23  453:   str["效果"]:SetOperation(cache_1)
63daf9144a 2023-07-22  454:   
6254eda63a 2023-07-23  455:   Duel.RegisterEffect(str["效果"]
63daf9144a 2023-07-22  456:   , 0)
a469e38404 2023-07-22  457:   
66a03a682a 2023-07-20  458:   end --}
3aa3657ce7 2023-07-15  459: