游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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