游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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