游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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