游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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