游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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