游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

eeeff3c24b 2023-07-15    1: 
2705e67ff7 2023-07-11    2: str = {}
75bd4dfc8f 2023-07-11    3: 
2705e67ff7 2023-07-11    4: fun = {}
2705e67ff7 2023-07-11    5: 
ad797768a6 2023-07-14    6: fun["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
2705e67ff7 2023-07-11    7: 
6f45c2f05c 2023-07-11    8: Debug.ReloadFieldBegin = function(str_1, str_2) --{
993a6dbc45 2023-07-13    9:   
5744929923 2023-07-11   10:   str["不洗牌"] = str_1 & DUEL_PSEUDO_SHUFFLE
5744929923 2023-07-11   11:   
5744929923 2023-07-11   12:   str["无BP"] = str_1 & DUEL_ATTACK_FIRST_TURN
1fb42895ff 2023-07-11   13:   
5744929923 2023-07-11   14:   if str_2 then --{
993a6dbc45 2023-07-13   15:     
993a6dbc45 2023-07-13   16:     if str_2 == 3 then --{
993a6dbc45 2023-07-13   17:       
993a6dbc45 2023-07-13   18:       str["规则"] = "大师3 "
993a6dbc45 2023-07-13   19:       
993a6dbc45 2023-07-13   20:       --}
993a6dbc45 2023-07-13   21:       
993a6dbc45 2023-07-13   22:     elseif str_2 == 4 then --{
993a6dbc45 2023-07-13   23:       
993a6dbc45 2023-07-13   24:       str["规则"] = "新大师 "
993a6dbc45 2023-07-13   25:       
993a6dbc45 2023-07-13   26:       --}
993a6dbc45 2023-07-13   27:       
993a6dbc45 2023-07-13   28:     elseif str_2 == 5 then --{
993a6dbc45 2023-07-13   29:       
993a6dbc45 2023-07-13   30:       str["规则"] = "大师2020 "
993a6dbc45 2023-07-13   31:       
993a6dbc45 2023-07-13   32:       --}
993a6dbc45 2023-07-13   33:       
993a6dbc45 2023-07-13   34:     end --}
993a6dbc45 2023-07-13   35:     
993a6dbc45 2023-07-13   36:   else --{
993a6dbc45 2023-07-13   37:     
993a6dbc45 2023-07-13   38:     str["规则"] = "大师2020 "
993a6dbc45 2023-07-13   39:     
993a6dbc45 2023-07-13   40:     end --}
993a6dbc45 2023-07-13   41:     
ad797768a6 2023-07-14   42:   fun["Debug.ReloadFieldBegin"](str_1, str_2)
ad797768a6 2023-07-14   43:   
ad797768a6 2023-07-14   44:   end --}
993a6dbc45 2023-07-13   45:   
7b13e3e7c3 2023-07-16   46: fun["aux.BeginPuzzle"] = aux.BeginPuzzle
7b13e3e7c3 2023-07-16   47: 
02cee86a5d 2023-07-16   48: aux.BeginPuzzle = function() --{
02cee86a5d 2023-07-16   49:   fun["aux.BeginPuzzle"]()
02cee86a5d 2023-07-16   50:   fun["开局说明"]()
cd5279993d 2023-07-16   51:   fun["通关邀请"]()
02cee86a5d 2023-07-16   52:   end --}
02cee86a5d 2023-07-16   53: 
02cee86a5d 2023-07-16   54: 
993a6dbc45 2023-07-13   55: fun["通关邀请"] = function() --{
993a6dbc45 2023-07-13   56:   
8736d64183 2023-07-11   57:   effect_1 = Effect.GlobalEffect()
8736d64183 2023-07-11   58:   
8736d64183 2023-07-11   59:   effect_1:SetType(EFFECT_TYPE_FIELD
8736d64183 2023-07-11   60:   + EFFECT_TYPE_CONTINUOUS)
8736d64183 2023-07-11   61:   
8736d64183 2023-07-11   62:   effect_1:SetCode(EVENT_DAMAGE)
1fb42895ff 2023-07-11   63:   
588454a9f9 2023-07-11   64:   function cache_1() --{
993a6dbc45 2023-07-13   65:     
588454a9f9 2023-07-11   66:     cache_1 = Duel.GetLP(1)
1fb42895ff 2023-07-11   67:     
588454a9f9 2023-07-11   68:     if cache_1 <= 0 then --{
993a6dbc45 2023-07-13   69:       
588454a9f9 2023-07-11   70:       if cache_1 < 0 then --{
993a6dbc45 2023-07-13   71:         
588454a9f9 2023-07-11   72:         Debug.ShowHint("QB:「你居然二解了,请加群告诉我怎么二解。」")
45478ef823 2023-07-13   73:         
7c21defa68 2023-07-13   74:         end --}
993a6dbc45 2023-07-13   75:         
7c21defa68 2023-07-13   76:       cache_1 = true
45478ef823 2023-07-13   77:       
7c21defa68 2023-07-13   78:       --}
993a6dbc45 2023-07-13   79:       
7c21defa68 2023-07-13   80:     else --{
993a6dbc45 2023-07-13   81:       
7c21defa68 2023-07-13   82:       cache_1 = false
45478ef823 2023-07-13   83:       
7c21defa68 2023-07-13   84:       end --}
993a6dbc45 2023-07-13   85:       
7c21defa68 2023-07-13   86:     return cache_1
45478ef823 2023-07-13   87:     
7c21defa68 2023-07-13   88:     end --}
45478ef823 2023-07-13   89:     
1fb42895ff 2023-07-11   90:   effect_1:SetCondition(cache_1)
1fb42895ff 2023-07-11   91:   
1fb42895ff 2023-07-11   92:   function cache_1() --{
993a6dbc45 2023-07-13   93:     
1fb42895ff 2023-07-11   94:     Debug.ShowHint("残局群181175613")
45478ef823 2023-07-13   95:     
1fb42895ff 2023-07-11   96:     end --}
993a6dbc45 2023-07-13   97:     
588454a9f9 2023-07-11   98:   effect_1:SetOperation(cache_1)
588454a9f9 2023-07-11   99:   
588454a9f9 2023-07-11  100:   Duel.RegisterEffect(effect_1
588454a9f9 2023-07-11  101:   , 0)
45478ef823 2023-07-13  102:   
588454a9f9 2023-07-11  103:   end --}
993a6dbc45 2023-07-13  104:   
588454a9f9 2023-07-11  105: fun["是否效果卡"] = function(card) --{
993a6dbc45 2023-07-13  106:   
588454a9f9 2023-07-11  107:   cache_1 = Card.IsType(card, TYPE_SPELL)
588454a9f9 2023-07-11  108:   
588454a9f9 2023-07-11  109:   cache_2 = Card.IsType(card, TYPE_TRAP)
588454a9f9 2023-07-11  110:   
588454a9f9 2023-07-11  111:   cache_3 = Card.IsType(card, TYPE_EFFECT)
ebd8dd9982 2023-07-11  112:   
588454a9f9 2023-07-11  113:   if cache_1
588454a9f9 2023-07-11  114:   or cache_2
588454a9f9 2023-07-11  115:   or cache_3 then --{
993a6dbc45 2023-07-13  116:     
588454a9f9 2023-07-11  117:     return true
45478ef823 2023-07-13  118:     
588454a9f9 2023-07-11  119:     end --}
993a6dbc45 2023-07-13  120:     
588454a9f9 2023-07-11  121:   cache_1 = Card.IsType(card, TYPE_PENDULUM)
ebd8dd9982 2023-07-11  122:   
588454a9f9 2023-07-11  123:   if cache_1 then --{
993a6dbc45 2023-07-13  124:     
588454a9f9 2023-07-11  125:     cache_1 = Card.IsCode(card, 28363749)
588454a9f9 2023-07-11  126:     
588454a9f9 2023-07-11  127:     cache_2 = Card.IsCode(card, 19474136)
588454a9f9 2023-07-11  128:     
588454a9f9 2023-07-11  129:     cache_3 = Card.IsCode(card, 17390179)
588454a9f9 2023-07-11  130:     
588454a9f9 2023-07-11  131:     cache_4 = Card.IsCode(card, 83980492)
ebd8dd9982 2023-07-11  132:     
588454a9f9 2023-07-11  133:     if cache_1
588454a9f9 2023-07-11  134:     or cache_2
588454a9f9 2023-07-11  135:     or cache_3
588454a9f9 2023-07-11  136:     or cache_4 then --{
993a6dbc45 2023-07-13  137:       
7c21defa68 2023-07-13  138:       --}
993a6dbc45 2023-07-13  139:       
7c21defa68 2023-07-13  140:     else --{
993a6dbc45 2023-07-13  141:       
7c21defa68 2023-07-13  142:       return true
45478ef823 2023-07-13  143:       
7c21defa68 2023-07-13  144:       end --}
993a6dbc45 2023-07-13  145:       
7c21defa68 2023-07-13  146:     end --}
993a6dbc45 2023-07-13  147:     
7c21defa68 2023-07-13  148:   return false
45478ef823 2023-07-13  149:   
7c21defa68 2023-07-13  150:   end --}
45478ef823 2023-07-13  151:   
7c21defa68 2023-07-13  152: fun["开局说明"] = function() --{
993a6dbc45 2023-07-13  153:   
7c21defa68 2023-07-13  154:   if str["开局说明吗"] == 1 then --{
993a6dbc45 2023-07-13  155:     
7c21defa68 2023-07-13  156:     return
45478ef823 2023-07-13  157:     
7c21defa68 2023-07-13  158:     --}
993a6dbc45 2023-07-13  159:     
7c21defa68 2023-07-13  160:   else --{
993a6dbc45 2023-07-13  161:     
7c21defa68 2023-07-13  162:     str["开局说明吗"] = 1
45478ef823 2023-07-13  163:     
7c21defa68 2023-07-13  164:     end --}
993a6dbc45 2023-07-13  165:     
1fb42895ff 2023-07-11  166:   cache_1 = 0
1fb42895ff 2023-07-11  167:   cache_1 = cache_1 + LOCATION_DECK
1fb42895ff 2023-07-11  168:   cache_1 = cache_1 + LOCATION_HAND
1fb42895ff 2023-07-11  169:   cache_1 = cache_1 + LOCATION_MZONE
1fb42895ff 2023-07-11  170:   cache_1 = cache_1 + LOCATION_SZONE
1fb42895ff 2023-07-11  171:   cache_1 = cache_1 + LOCATION_GRAVE
1fb42895ff 2023-07-11  172:   cache_1 = cache_1 + LOCATION_REMOVED
1fb42895ff 2023-07-11  173:   cache_1 = cache_1 + LOCATION_EXTRA
1fb42895ff 2023-07-11  174:   
1fb42895ff 2023-07-11  175:   str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,cache_1,cache_1,nil)
1fb42895ff 2023-07-11  176:   
1fb42895ff 2023-07-11  177:   cache_1 = Duel.GetOverlayGroup(0, LOCATION_MZONE, LOCATION_MZONE)
1fb42895ff 2023-07-11  178:   
1fb42895ff 2023-07-11  179:   for k in aux.Next(cache_1) do --{
993a6dbc45 2023-07-13  180:     
1fb42895ff 2023-07-11  181:     cache_1 = fun["是否效果卡"](k)
ebd8dd9982 2023-07-11  182:     
1fb42895ff 2023-07-11  183:     if cache_1 then --{
993a6dbc45 2023-07-13  184:       
1fb42895ff 2023-07-11  185:       str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
45478ef823 2023-07-13  186:       
1fb42895ff 2023-07-11  187:       end --}
993a6dbc45 2023-07-13  188:       
1fb42895ff 2023-07-11  189:     end --}
993a6dbc45 2023-07-13  190:     
1fb42895ff 2023-07-11  191:   str["开局说明"] =""
1fb42895ff 2023-07-11  192:   str["开局说明"] = str["开局说明"] .. str["这个残局的效果卡数量"]
1fb42895ff 2023-07-11  193:   str["开局说明"] = str["开局说明"] .. "卡 "
1fb42895ff 2023-07-11  194:   str["开局说明"] = str["开局说明"] .. str["规则"]
ebd8dd9982 2023-07-11  195:   
1fb42895ff 2023-07-11  196:   if str["不洗牌"] == 0 then --{
993a6dbc45 2023-07-13  197:     
1fb42895ff 2023-07-11  198:     --}
993a6dbc45 2023-07-13  199:     
1fb42895ff 2023-07-11  200:   else --{
993a6dbc45 2023-07-13  201:     
1fb42895ff 2023-07-11  202:     str["开局说明"] = str["开局说明"] .. "伪洗牌 "
45478ef823 2023-07-13  203:     
1fb42895ff 2023-07-11  204:     end --}
993a6dbc45 2023-07-13  205:     
1fb42895ff 2023-07-11  206:   if str["无BP"] == 0 then --{
993a6dbc45 2023-07-13  207:     
1fb42895ff 2023-07-11  208:     str["开局说明"] = str["开局说明"] .. "无BP "
45478ef823 2023-07-13  209:     
1fb42895ff 2023-07-11  210:     end --}
993a6dbc45 2023-07-13  211:     
1fb42895ff 2023-07-11  212:   if str["开局添加手卡"] then --{
993a6dbc45 2023-07-13  213:     
1fb42895ff 2023-07-11  214:     str["开局说明"] = str["开局说明"] .. "选"
1fb42895ff 2023-07-11  215:     str["开局说明"] = str["开局说明"] .. str["开局添加手卡"]
1fb42895ff 2023-07-11  216:     str["开局说明"] = str["开局说明"] .. "卡 "
45478ef823 2023-07-13  217:     
1fb42895ff 2023-07-11  218:     end --}
993a6dbc45 2023-07-13  219:     
1fb42895ff 2023-07-11  220:   if str["禁格"] then --{
993a6dbc45 2023-07-13  221:     
1fb42895ff 2023-07-11  222:     str["开局说明"] = str["开局说明"] .. "禁"
1fb42895ff 2023-07-11  223:     str["开局说明"] = str["开局说明"] .. str["禁格"]
1fb42895ff 2023-07-11  224:     str["开局说明"] = str["开局说明"] .. "格 "
45478ef823 2023-07-13  225:     
1fb42895ff 2023-07-11  226:     end --}
993a6dbc45 2023-07-13  227:     
1fb42895ff 2023-07-11  228:   if str["印卡"] then --{
993a6dbc45 2023-07-13  229:     
1fb42895ff 2023-07-11  230:     str["开局说明"] = str["开局说明"] .. "印卡 "
45478ef823 2023-07-13  231:     
1fb42895ff 2023-07-11  232:     end --}
993a6dbc45 2023-07-13  233:     
1fb42895ff 2023-07-11  234:   Debug.ShowHint(str["开局说明"])
ebd8dd9982 2023-07-11  235:   
1fb42895ff 2023-07-11  236:   fun["通关邀请"]()
45478ef823 2023-07-13  237:   
4e8f89ad97 2023-07-11  238:   end --}
993a6dbc45 2023-07-13  239:   
4e8f89ad97 2023-07-11  240: fun["开局添加手卡"] = function(str_1) --{
993a6dbc45 2023-07-13  241:   
4e8f89ad97 2023-07-11  242:   str["开局添加手卡"] = str_1
4e8f89ad97 2023-07-11  243:   
4e8f89ad97 2023-07-11  244:   effect_1 = Effect.GlobalEffect()
4e8f89ad97 2023-07-11  245:   
4e8f89ad97 2023-07-11  246:   effect_1:SetType(EFFECT_TYPE_FIELD
4e8f89ad97 2023-07-11  247:   + EFFECT_TYPE_CONTINUOUS)
4e8f89ad97 2023-07-11  248:   
4e8f89ad97 2023-07-11  249:   effect_1:SetCode(EVENT_ADJUST)
4e8f89ad97 2023-07-11  250:   
4e8f89ad97 2023-07-11  251:   effect_1:SetCountLimit(1)
4e8f89ad97 2023-07-11  252:   
4e8f89ad97 2023-07-11  253:   function cache_1() --{
993a6dbc45 2023-07-13  254:     
4e8f89ad97 2023-07-11  255:     if str["已添加手卡"] == 1 then --{
993a6dbc45 2023-07-13  256:       
4e8f89ad97 2023-07-11  257:       return false
45478ef823 2023-07-13  258:       
4e8f89ad97 2023-07-11  259:       --}
993a6dbc45 2023-07-13  260:       
4e8f89ad97 2023-07-11  261:     else --{
993a6dbc45 2023-07-13  262:       
4e8f89ad97 2023-07-11  263:       str["已添加手卡"] = 1
4e8f89ad97 2023-07-11  264:       
4e8f89ad97 2023-07-11  265:       return true
45478ef823 2023-07-13  266:       
4e8f89ad97 2023-07-11  267:       end --}
993a6dbc45 2023-07-13  268:       
4e8f89ad97 2023-07-11  269:     end--}
993a6dbc45 2023-07-13  270:     
4e8f89ad97 2023-07-11  271:   effect_1:SetCondition(cache_1)
4e8f89ad97 2023-07-11  272:   
4e8f89ad97 2023-07-11  273:   function cache_1(effect_event
4e8f89ad97 2023-07-11  274:   , player_who_activate_the_effect) --{
993a6dbc45 2023-07-13  275:     
4e8f89ad97 2023-07-11  276:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
4e8f89ad97 2023-07-11  277:     , Card.IsAbleToHand
4e8f89ad97 2023-07-11  278:     , player_who_activate_the_effect
4e8f89ad97 2023-07-11  279:     , LOCATION_DECK
4e8f89ad97 2023-07-11  280:     , 0
4e8f89ad97 2023-07-11  281:     , str_1
4e8f89ad97 2023-07-11  282:     , str_1
4e8f89ad97 2023-07-11  283:     , nil)
4e8f89ad97 2023-07-11  284:     
4e8f89ad97 2023-07-11  285:     Duel.SendtoHand(str["玩家选定的卡"]
4e8f89ad97 2023-07-11  286:     , nil
4e8f89ad97 2023-07-11  287:     , REASON_RULE)
45478ef823 2023-07-13  288:     
4e8f89ad97 2023-07-11  289:     end --}
993a6dbc45 2023-07-13  290:     
4e8f89ad97 2023-07-11  291:   effect_1:SetOperation(cache_1)
4e8f89ad97 2023-07-11  292:   
4e8f89ad97 2023-07-11  293:   Duel.RegisterEffect(effect_1
4e8f89ad97 2023-07-11  294:   , 0)
4e8f89ad97 2023-07-11  295:   
45478ef823 2023-07-13  296:   
4e8f89ad97 2023-07-11  297:   end --}
993a6dbc45 2023-07-13  298:   
4e8f89ad97 2023-07-11  299: fun["禁格"] = function(str_1) --{
993a6dbc45 2023-07-13  300:   
4e8f89ad97 2023-07-11  301:   str["禁格"] = str_1
4e8f89ad97 2023-07-11  302:   
4e8f89ad97 2023-07-11  303:   effect_1 = Effect.GlobalEffect()
4e8f89ad97 2023-07-11  304:   
4e8f89ad97 2023-07-11  305:   effect_1:SetType(EFFECT_TYPE_FIELD)
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:         
d5d0e03305 2023-07-11  384:         end --}
993a6dbc45 2023-07-13  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:   effect_1:SetOperation(print_hand)
d5d0e03305 2023-07-11  391:   
d5d0e03305 2023-07-11  392:   str_1:RegisterEffect(effect_1)
45478ef823 2023-07-13  393:   
d5d0e03305 2023-07-11  394:   end --}
993a6dbc45 2023-07-13  395:   
d5d0e03305 2023-07-11  396: fun["全部回到卡组"] = function() --{
993a6dbc45 2023-07-13  397:   
d5d0e03305 2023-07-11  398:   Debug.ShowHint("胜利条件:让对方的卡回到卡组。")
d5d0e03305 2023-07-11  399:   
d5d0e03305 2023-07-11  400:   effect_1 = Effect.GlobalEffect()
d5d0e03305 2023-07-11  401:   
d5d0e03305 2023-07-11  402:   effect_1:SetType(EFFECT_TYPE_FIELD
d5d0e03305 2023-07-11  403:   + EFFECT_TYPE_CONTINUOUS)
d5d0e03305 2023-07-11  404:   
d5d0e03305 2023-07-11  405:   effect_1:SetCode(EVENT_ADJUST)
d5d0e03305 2023-07-11  406:   
d5d0e03305 2023-07-11  407:   cache_1 = function() --{
993a6dbc45 2023-07-13  408:     
d5d0e03305 2023-07-11  409:     cache_1 = 0
d5d0e03305 2023-07-11  410:     cache_1 = cache_1 + LOCATION_HAND
d5d0e03305 2023-07-11  411:     cache_1 = cache_1 + LOCATION_MZONE
d5d0e03305 2023-07-11  412:     cache_1 = cache_1 + LOCATION_SZONE
d5d0e03305 2023-07-11  413:     cache_1 = cache_1 + LOCATION_GRAVE
d5d0e03305 2023-07-11  414:     cache_1 = cache_1 + LOCATION_REMOVED
d5d0e03305 2023-07-11  415:     
d5d0e03305 2023-07-11  416:     cache_1 = Duel.GetFieldGroupCount(1,cache_1,0)
d5d0e03305 2023-07-11  417:     
d5d0e03305 2023-07-11  418:     if cache_1 == 0 then --{
993a6dbc45 2023-07-13  419:       
d5d0e03305 2023-07-11  420:       return true
45478ef823 2023-07-13  421:       
d5d0e03305 2023-07-11  422:       --}
993a6dbc45 2023-07-13  423:       
d5d0e03305 2023-07-11  424:     else --{
993a6dbc45 2023-07-13  425:       
d5d0e03305 2023-07-11  426:       return false
45478ef823 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:SetCondition(cache_1)
d5d0e03305 2023-07-11  433:   
d5d0e03305 2023-07-11  434:   cache_1 = function() --{
993a6dbc45 2023-07-13  435:     
d5d0e03305 2023-07-11  436:     Debug.ShowHint("目标已达成!")
45478ef823 2023-07-13  437:     
d5d0e03305 2023-07-11  438:     Duel.SetLP(1,0)
45478ef823 2023-07-13  439:     
d5d0e03305 2023-07-11  440:     end --}
993a6dbc45 2023-07-13  441:     
d5d0e03305 2023-07-11  442:   effect_1:SetOperation(cache_1)
d5d0e03305 2023-07-11  443:   
d5d0e03305 2023-07-11  444:   Duel.RegisterEffect(effect_1,0)
45478ef823 2023-07-13  445:   
1fb42895ff 2023-07-11  446:   end --}
993a6dbc45 2023-07-13  447: