游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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