游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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