游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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