游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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