游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

75bd4dfc8f 2023-07-11    1: 
e59d27b43b 2023-07-17    2: local str = {}
675931c589 2023-07-15    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:     
8736d64183 2023-07-11   59:     if str_2 == 3 then --{
993a6dbc45 2023-07-13   60:       
b99a3223f8 2023-07-19   61:       str["规则"] = str["大师3"]
45478ef823 2023-07-13   62:       
8736d64183 2023-07-11   63:       --}
993a6dbc45 2023-07-13   64:       
8736d64183 2023-07-11   65:     elseif str_2 == 4 then --{
993a6dbc45 2023-07-13   66:       
b99a3223f8 2023-07-19   67:       str["规则"] = str["新大师"]
45478ef823 2023-07-13   68:       
8736d64183 2023-07-11   69:       --}
993a6dbc45 2023-07-13   70:       
8736d64183 2023-07-11   71:     elseif str_2 == 5 then --{
993a6dbc45 2023-07-13   72:       
b99a3223f8 2023-07-19   73:       str["规则"] = str["大师2020"]
45478ef823 2023-07-13   74:       
8736d64183 2023-07-11   75:       --}
993a6dbc45 2023-07-13   76:       
8736d64183 2023-07-11   77:     end --}
993a6dbc45 2023-07-13   78:     
8736d64183 2023-07-11   79:   else --{
993a6dbc45 2023-07-13   80:     
b99a3223f8 2023-07-19   81:     str["规则"] = str["大师2020"]
45478ef823 2023-07-13   82:     
8736d64183 2023-07-11   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:   
8736d64183 2023-07-11  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) --{
cea99f0284 2023-07-19  148: 
cea99f0284 2023-07-19  149:   for i = 1, #str[" 效果卡的种类表 "]
993a6dbc45 2023-07-13  150:   
588454a9f9 2023-07-11  151:   cache_1 = Card.IsType(card, TYPE_SPELL)
588454a9f9 2023-07-11  152:   
588454a9f9 2023-07-11  153:   cache_2 = Card.IsType(card, TYPE_TRAP)
588454a9f9 2023-07-11  154:   
588454a9f9 2023-07-11  155:   cache_3 = Card.IsType(card, TYPE_EFFECT)
ebd8dd9982 2023-07-11  156:   
588454a9f9 2023-07-11  157:   if cache_1
588454a9f9 2023-07-11  158:   or cache_2
588454a9f9 2023-07-11  159:   or cache_3 then --{
993a6dbc45 2023-07-13  160:     
588454a9f9 2023-07-11  161:     return true
45478ef823 2023-07-13  162:     
588454a9f9 2023-07-11  163:     end --}
993a6dbc45 2023-07-13  164:     
588454a9f9 2023-07-11  165:   cache_1 = Card.IsType(card, TYPE_PENDULUM)
ebd8dd9982 2023-07-11  166:   
588454a9f9 2023-07-11  167:   if cache_1 then --{
993a6dbc45 2023-07-13  168:     
588454a9f9 2023-07-11  169:     cache_1 = Card.IsCode(card, 28363749)
588454a9f9 2023-07-11  170:     
588454a9f9 2023-07-11  171:     cache_2 = Card.IsCode(card, 19474136)
588454a9f9 2023-07-11  172:     
588454a9f9 2023-07-11  173:     cache_3 = Card.IsCode(card, 17390179)
588454a9f9 2023-07-11  174:     
588454a9f9 2023-07-11  175:     cache_4 = Card.IsCode(card, 83980492)
ebd8dd9982 2023-07-11  176:     
588454a9f9 2023-07-11  177:     if cache_1
588454a9f9 2023-07-11  178:     or cache_2
588454a9f9 2023-07-11  179:     or cache_3
588454a9f9 2023-07-11  180:     or cache_4 then --{
993a6dbc45 2023-07-13  181:       
7c21defa68 2023-07-13  182:       --}
993a6dbc45 2023-07-13  183:       
7c21defa68 2023-07-13  184:     else --{
993a6dbc45 2023-07-13  185:       
7c21defa68 2023-07-13  186:       return true
45478ef823 2023-07-13  187:       
7c21defa68 2023-07-13  188:       end --}
993a6dbc45 2023-07-13  189:       
7c21defa68 2023-07-13  190:     end --}
993a6dbc45 2023-07-13  191:     
7c21defa68 2023-07-13  192:   return false
45478ef823 2023-07-13  193:   
45478ef823 2023-07-13  194:   end --}
45478ef823 2023-07-13  195:   
45478ef823 2023-07-13  196: fun["开局说明"] = function() --{
993a6dbc45 2023-07-13  197:   
262ab836d0 2023-07-19  198:   str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,str["所有区域"],str["所有区域"],nil)
1fb42895ff 2023-07-11  199:   
1fb42895ff 2023-07-11  200:   cache_1 = Duel.GetOverlayGroup(0, LOCATION_MZONE, LOCATION_MZONE)
1fb42895ff 2023-07-11  201:   
1fb42895ff 2023-07-11  202:   for k in aux.Next(cache_1) do --{
993a6dbc45 2023-07-13  203:     
1fb42895ff 2023-07-11  204:     cache_1 = fun["是否效果卡"](k)
ebd8dd9982 2023-07-11  205:     
1fb42895ff 2023-07-11  206:     if cache_1 then --{
993a6dbc45 2023-07-13  207:       
1fb42895ff 2023-07-11  208:       str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
45478ef823 2023-07-13  209:       
1fb42895ff 2023-07-11  210:       end --}
993a6dbc45 2023-07-13  211:       
1fb42895ff 2023-07-11  212:     end --}
993a6dbc45 2023-07-13  213:     
262ab836d0 2023-07-19  214:   str["开局说明"] = ""
1fb42895ff 2023-07-11  215:   str["开局说明"] = str["开局说明"] .. str["这个残局的效果卡数量"]
1fb42895ff 2023-07-11  216:   str["开局说明"] = str["开局说明"] .. "卡 "
1fb42895ff 2023-07-11  217:   str["开局说明"] = str["开局说明"] .. str["规则"]
ebd8dd9982 2023-07-11  218:   
1fb42895ff 2023-07-11  219:   if str["不洗牌"] == 0 then --{
993a6dbc45 2023-07-13  220:     
1fb42895ff 2023-07-11  221:     --}
993a6dbc45 2023-07-13  222:     
1fb42895ff 2023-07-11  223:   else --{
993a6dbc45 2023-07-13  224:     
1fb42895ff 2023-07-11  225:     str["开局说明"] = str["开局说明"] .. "伪洗牌 "
45478ef823 2023-07-13  226:     
1fb42895ff 2023-07-11  227:     end --}
993a6dbc45 2023-07-13  228:     
1fb42895ff 2023-07-11  229:   if str["无BP"] == 0 then --{
993a6dbc45 2023-07-13  230:     
1fb42895ff 2023-07-11  231:     str["开局说明"] = str["开局说明"] .. "无BP "
45478ef823 2023-07-13  232:     
1fb42895ff 2023-07-11  233:     end --}
993a6dbc45 2023-07-13  234:     
1fb42895ff 2023-07-11  235:   if str["开局添加手卡"] then --{
993a6dbc45 2023-07-13  236:     
1fb42895ff 2023-07-11  237:     str["开局说明"] = str["开局说明"] .. "选"
1fb42895ff 2023-07-11  238:     str["开局说明"] = str["开局说明"] .. str["开局添加手卡"]
1fb42895ff 2023-07-11  239:     str["开局说明"] = str["开局说明"] .. "卡 "
45478ef823 2023-07-13  240:     
1fb42895ff 2023-07-11  241:     end --}
993a6dbc45 2023-07-13  242:     
1fb42895ff 2023-07-11  243:   if str["禁格"] then --{
993a6dbc45 2023-07-13  244:     
1fb42895ff 2023-07-11  245:     str["开局说明"] = str["开局说明"] .. "禁"
1fb42895ff 2023-07-11  246:     str["开局说明"] = str["开局说明"] .. str["禁格"]
1fb42895ff 2023-07-11  247:     str["开局说明"] = str["开局说明"] .. "格 "
45478ef823 2023-07-13  248:     
1fb42895ff 2023-07-11  249:     end --}
993a6dbc45 2023-07-13  250:     
1fb42895ff 2023-07-11  251:   if str["印卡"] then --{
993a6dbc45 2023-07-13  252:     
1fb42895ff 2023-07-11  253:     str["开局说明"] = str["开局说明"] .. "印卡 "
45478ef823 2023-07-13  254:     
1fb42895ff 2023-07-11  255:     end --}
993a6dbc45 2023-07-13  256:     
1fb42895ff 2023-07-11  257:   Debug.ShowHint(str["开局说明"])
ebd8dd9982 2023-07-11  258:   
4e8f89ad97 2023-07-11  259:   end --}
993a6dbc45 2023-07-13  260:   
4e8f89ad97 2023-07-11  261: fun["开局添加手卡"] = function(str_1) --{
993a6dbc45 2023-07-13  262:   
4e8f89ad97 2023-07-11  263:   str["开局添加手卡"] = str_1
4e8f89ad97 2023-07-11  264:   
8e87626fe9 2023-07-16  265:   effect_1 = Effect.GlobalEffect()
8e87626fe9 2023-07-16  266:   
e8a4eb1d6e 2023-07-16  267:   effect_1:SetType(EFFECT_TYPE_FIELD
e8a4eb1d6e 2023-07-16  268:   + EFFECT_TYPE_CONTINUOUS)
b08e3d3ba8 2023-07-16  269:   
1539e099d7 2023-07-16  270:   effect_1:SetCode(EVENT_ADJUST)
1539e099d7 2023-07-16  271:   
88b2475c84 2023-07-16  272:   effect_1:SetCondition(aux.TRUE)
8e87626fe9 2023-07-16  273:   
8e87626fe9 2023-07-16  274:   function cache_1(effect_event
8e87626fe9 2023-07-16  275:   , player_who_activate_the_effect) --{
8e87626fe9 2023-07-16  276:     
8e87626fe9 2023-07-16  277:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
4e8f89ad97 2023-07-11  278:     , Card.IsAbleToHand
8e87626fe9 2023-07-16  279:     , player_who_activate_the_effect
4e8f89ad97 2023-07-11  280:     , LOCATION_DECK
4e8f89ad97 2023-07-11  281:     , 0
4e8f89ad97 2023-07-11  282:     , str_1
4e8f89ad97 2023-07-11  283:     , str_1
4e8f89ad97 2023-07-11  284:     , nil)
4e8f89ad97 2023-07-11  285:     
4e8f89ad97 2023-07-11  286:     Duel.SendtoHand(str["玩家选定的卡"]
4e8f89ad97 2023-07-11  287:     , nil
4e8f89ad97 2023-07-11  288:     , REASON_RULE)
8e87626fe9 2023-07-16  289:     
e28a9fe965 2023-07-16  290:     effect_event:Reset()
1539e099d7 2023-07-16  291:     
8e87626fe9 2023-07-16  292:     end --}
8e87626fe9 2023-07-16  293:     
8e87626fe9 2023-07-16  294:   effect_1:SetOperation(cache_1)
8e87626fe9 2023-07-16  295:   
8e87626fe9 2023-07-16  296:   Duel.RegisterEffect(effect_1
8e87626fe9 2023-07-16  297:   , 0)
17d6844110 2023-07-16  298:   
4e8f89ad97 2023-07-11  299:   end --}
993a6dbc45 2023-07-13  300:   
4e8f89ad97 2023-07-11  301: fun["禁格"] = function(str_1) --{
993a6dbc45 2023-07-13  302:   
4e8f89ad97 2023-07-11  303:   str["禁格"] = str_1
4e8f89ad97 2023-07-11  304:   
4e8f89ad97 2023-07-11  305:   effect_1 = Effect.GlobalEffect()
4e8f89ad97 2023-07-11  306:   
4e8f89ad97 2023-07-11  307:   effect_1:SetCode(EFFECT_USE_EXTRA_MZONE)
4e8f89ad97 2023-07-11  308:   
4e8f89ad97 2023-07-11  309:   effect_1:SetValue(str_1)
4e8f89ad97 2023-07-11  310:   
4e8f89ad97 2023-07-11  311:   Duel.RegisterEffect(effect_1,0)
45478ef823 2023-07-13  312:   
d5d0e03305 2023-07-11  313:   end --}
993a6dbc45 2023-07-13  314:   
d5d0e03305 2023-07-11  315: fun["印卡"] = function(str_1, str_2, str_3) --{
993a6dbc45 2023-07-13  316:   
d5d0e03305 2023-07-11  317:   str["印卡"] = 1
d5d0e03305 2023-07-11  318:   
d5d0e03305 2023-07-11  319:   if str_3 then --{
993a6dbc45 2023-07-13  320:     
d5d0e03305 2023-07-11  321:     --}
993a6dbc45 2023-07-13  322:     
d5d0e03305 2023-07-11  323:   else --{
993a6dbc45 2023-07-13  324:     
d5d0e03305 2023-07-11  325:     str_3 = str_2
45478ef823 2023-07-13  326:     
d5d0e03305 2023-07-11  327:     end --}
993a6dbc45 2023-07-13  328:     
d5d0e03305 2023-07-11  329:   str["当前印卡数"] = 1
d5d0e03305 2023-07-11  330:   
d5d0e03305 2023-07-11  331:   effect_1 = Effect.CreateEffect(str_1)
d5d0e03305 2023-07-11  332:   
d5d0e03305 2023-07-11  333:   effect_1:SetType(EFFECT_TYPE_IGNITION)
d5d0e03305 2023-07-11  334:   
d5d0e03305 2023-07-11  335:   effect_1:SetProperty(EFFECT_FLAG_BOTH_SIDE
d5d0e03305 2023-07-11  336:   + EFFECT_FLAG_UNCOPYABLE
d5d0e03305 2023-07-11  337:   + EFFECT_FLAG_CANNOT_NEGATE
d5d0e03305 2023-07-11  338:   + EFFECT_FLAG_CANNOT_DISABLE)
d5d0e03305 2023-07-11  339:   
d5d0e03305 2023-07-11  340:   cache_1 = function() --{
993a6dbc45 2023-07-13  341:     
d5d0e03305 2023-07-11  342:     Duel.SetChainLimit(aux.FALSE)
d5d0e03305 2023-07-11  343:     
d5d0e03305 2023-07-11  344:     return true
45478ef823 2023-07-13  345:     
d5d0e03305 2023-07-11  346:     end --}
993a6dbc45 2023-07-13  347:     
d5d0e03305 2023-07-11  348:   effect_1:SetTarget(cache_1)
d5d0e03305 2023-07-11  349:   
d5d0e03305 2023-07-11  350:   effect_1:SetRange(LOCATION_EXTRA)
d5d0e03305 2023-07-11  351:   
d5d0e03305 2023-07-11  352:   function print_hand(effect_event
d5d0e03305 2023-07-11  353:   , player_who_activate_the_effect) --{
993a6dbc45 2023-07-13  354:     
d5d0e03305 2023-07-11  355:     announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
d5d0e03305 2023-07-11  356:     
d5d0e03305 2023-07-11  357:     card = Duel.CreateToken(player_who_activate_the_effect
d5d0e03305 2023-07-11  358:     , announce_card)
d5d0e03305 2023-07-11  359:     
d5d0e03305 2023-07-11  360:     if str["当前印卡数"] <= str_2 then --{
993a6dbc45 2023-07-13  361:       
d5d0e03305 2023-07-11  362:       str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  363:       
d5d0e03305 2023-07-11  364:       Duel.SendtoHand(card,nil,REASON_RULE)
45478ef823 2023-07-13  365:       
d5d0e03305 2023-07-11  366:       --}
993a6dbc45 2023-07-13  367:       
d5d0e03305 2023-07-11  368:     else --{
993a6dbc45 2023-07-13  369:       
d5d0e03305 2023-07-11  370:       if str["当前印卡数"] <= str_3 then --{
993a6dbc45 2023-07-13  371:         
d5d0e03305 2023-07-11  372:         str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  373:         
d5d0e03305 2023-07-11  374:         Duel.Remove(card,POS_FACEUP,REASON_RULE)
d5d0e03305 2023-07-11  375:         
d5d0e03305 2023-07-11  376:         Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
45478ef823 2023-07-13  377:         
d5d0e03305 2023-07-11  378:         --}
993a6dbc45 2023-07-13  379:         
d5d0e03305 2023-07-11  380:       else --{
993a6dbc45 2023-07-13  381:         
d5d0e03305 2023-07-11  382:         Debug.ShowHint("印卡过多!")
45478ef823 2023-07-13  383:         
a30b9aba5d 2023-07-16  384:         effect_event:Reset()
a30b9aba5d 2023-07-16  385:         
d5d0e03305 2023-07-11  386:         end --}
993a6dbc45 2023-07-13  387:         
d5d0e03305 2023-07-11  388:       end --}
993a6dbc45 2023-07-13  389:       
d5d0e03305 2023-07-11  390:     end --}
993a6dbc45 2023-07-13  391:     
d5d0e03305 2023-07-11  392:   effect_1:SetOperation(print_hand)
d5d0e03305 2023-07-11  393:   
d5d0e03305 2023-07-11  394:   str_1:RegisterEffect(effect_1)
45478ef823 2023-07-13  395:   
d5d0e03305 2023-07-11  396:   end --}
993a6dbc45 2023-07-13  397:   
d5d0e03305 2023-07-11  398: fun["全部回到卡组"] = function() --{
993a6dbc45 2023-07-13  399:   
d5d0e03305 2023-07-11  400:   Debug.ShowHint("胜利条件:让对方的卡回到卡组。")
d5d0e03305 2023-07-11  401:   
d5d0e03305 2023-07-11  402:   effect_1 = Effect.GlobalEffect()
d5d0e03305 2023-07-11  403:   
d5d0e03305 2023-07-11  404:   effect_1:SetType(EFFECT_TYPE_FIELD
d5d0e03305 2023-07-11  405:   + EFFECT_TYPE_CONTINUOUS)
d5d0e03305 2023-07-11  406:   
d5d0e03305 2023-07-11  407:   effect_1:SetCode(EVENT_ADJUST)
d5d0e03305 2023-07-11  408:   
d5d0e03305 2023-07-11  409:   cache_1 = function() --{
993a6dbc45 2023-07-13  410:     
b6f1e1afe0 2023-07-19  411:     cache_1 = Duel.GetFieldGroupCount(1,str["除卡组与额外卡组以外的区域"],0)
45478ef823 2023-07-13  412:     
45478ef823 2023-07-13  413:     if cache_1 == 0 then --{
993a6dbc45 2023-07-13  414:       
45478ef823 2023-07-13  415:       return true
45478ef823 2023-07-13  416:       
45478ef823 2023-07-13  417:       --}
993a6dbc45 2023-07-13  418:       
45478ef823 2023-07-13  419:     else --{
993a6dbc45 2023-07-13  420:       
45478ef823 2023-07-13  421:       return false
45478ef823 2023-07-13  422:       
45478ef823 2023-07-13  423:       end --}
993a6dbc45 2023-07-13  424:       
45478ef823 2023-07-13  425:     end --}
993a6dbc45 2023-07-13  426:     
45478ef823 2023-07-13  427:   effect_1:SetCondition(cache_1)
45478ef823 2023-07-13  428:   
45478ef823 2023-07-13  429:   cache_1 = function() --{
993a6dbc45 2023-07-13  430:     
45478ef823 2023-07-13  431:     Debug.ShowHint("目标已达成!")
45478ef823 2023-07-13  432:     
45478ef823 2023-07-13  433:     Duel.SetLP(1,0)
45478ef823 2023-07-13  434:     
45478ef823 2023-07-13  435:     end --}
993a6dbc45 2023-07-13  436:     
45478ef823 2023-07-13  437:   effect_1:SetOperation(cache_1)
45478ef823 2023-07-13  438:   
45478ef823 2023-07-13  439:   Duel.RegisterEffect(effect_1,0)
45478ef823 2023-07-13  440:   
45478ef823 2023-07-13  441:   end --}
993a6dbc45 2023-07-13  442: