游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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