游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

eeeff3c24b 2023-07-15    1: 
e59d27b43b 2023-07-17    2: local str = {}
e59d27b43b 2023-07-17    3: 
6f9888787e 2023-08-02    4: local math = math
6f9888787e 2023-08-02    5: local string = string
6f9888787e 2023-08-02    6: local table = table
6f9888787e 2023-08-02    7: 
6f9888787e 2023-08-02    8: _G.fun = {}
6f9888787e 2023-08-02    9: 
6f9888787e 2023-08-02   10: ---------------------------------
6f9888787e 2023-08-02   11: 
3e5c876e42 2023-07-28   12: local cache_1
3e5c876e42 2023-07-28   13: local cache_2
3e5c876e42 2023-07-28   14: local cache_3
3e5c876e42 2023-07-28   15: local cache_4
3e5c876e42 2023-07-28   16: local cache_5
3e5c876e42 2023-07-28   17: local cache_6
3e5c876e42 2023-07-28   18: local cache_7
3e5c876e42 2023-07-28   19: local cache_8
3e5c876e42 2023-07-28   20: local cache_9
3e5c876e42 2023-07-28   21: 
0f75e3f03e 2023-08-02   22: local _
9f9e2c9f7f 2023-07-28   23: 
9f9e2c9f7f 2023-07-28   24: str["效果卡的种类表"] = {
9f9e2c9f7f 2023-07-28   25:   
9f9e2c9f7f 2023-07-28   26:   TYPE_SPELL
9f9e2c9f7f 2023-07-28   27:   , TYPE_TRAP
9f9e2c9f7f 2023-07-28   28:   , TYPE_EFFECT
9f9e2c9f7f 2023-07-28   29:   }
9f9e2c9f7f 2023-07-28   30:   
9f9e2c9f7f 2023-07-28   31: str["无效果灵摆怪兽表"] = {
9f9e2c9f7f 2023-07-28   32:   
9f9e2c9f7f 2023-07-28   33:   28363749
9f9e2c9f7f 2023-07-28   34:   , 19474136
9f9e2c9f7f 2023-07-28   35:   , 17390179
9f9e2c9f7f 2023-07-28   36:   , 83980492
9f9e2c9f7f 2023-07-28   37:   }
9f9e2c9f7f 2023-07-28   38:   
3e5c876e42 2023-07-28   39: cache_1 = 0
3e5c876e42 2023-07-28   40: 
3e5c876e42 2023-07-28   41: cache_1 = cache_1 + LOCATION_HAND
3e5c876e42 2023-07-28   42: + LOCATION_MZONE
3e5c876e42 2023-07-28   43: + LOCATION_SZONE
3e5c876e42 2023-07-28   44: + LOCATION_GRAVE
3e5c876e42 2023-07-28   45: + LOCATION_REMOVED
3e5c876e42 2023-07-28   46: 
3e5c876e42 2023-07-28   47: str["除卡组与额外卡组以外的区域"] = cache_1
3e5c876e42 2023-07-28   48: 
3e5c876e42 2023-07-28   49: cache_1 = cache_1 + LOCATION_DECK
3e5c876e42 2023-07-28   50: + LOCATION_EXTRA
3e5c876e42 2023-07-28   51: 
3e5c876e42 2023-07-28   52: str["所有区域"] = cache_1
3e5c876e42 2023-07-28   53: 
dd1a253607 2023-08-02   54: --第一层-------------------------------
dd1a253607 2023-08-02   55: 
dd1a253607 2023-08-02   56: local cache_1
dd1a253607 2023-08-02   57: local cache_2
dd1a253607 2023-08-02   58: local cache_3
dd1a253607 2023-08-02   59: local cache_4
dd1a253607 2023-08-02   60: local cache_5
dd1a253607 2023-08-02   61: local cache_6
dd1a253607 2023-08-02   62: local cache_7
dd1a253607 2023-08-02   63: local cache_8
dd1a253607 2023-08-02   64: local cache_9
dd1a253607 2023-08-02   65: 
dd1a253607 2023-08-02   66: local _
dd1a253607 2023-08-02   67: 
ad4e2a7693 2023-08-02   68: fun["一_通关邀请"] = function() --{
ad4e2a7693 2023-08-02   69:   
ad4e2a7693 2023-08-02   70:   str["效果"] = Effect.GlobalEffect()
ad4e2a7693 2023-08-02   71:   
ad4e2a7693 2023-08-02   72:   str["效果"]:SetType(EFFECT_TYPE_FIELD
ad4e2a7693 2023-08-02   73:   + EFFECT_TYPE_CONTINUOUS)
ad4e2a7693 2023-08-02   74:   
ad4e2a7693 2023-08-02   75:   str["效果"]:SetCode(EVENT_DAMAGE)
ad4e2a7693 2023-08-02   76:   
ad4e2a7693 2023-08-02   77:   function cache_1() --{
ad4e2a7693 2023-08-02   78:     
ad4e2a7693 2023-08-02   79:     cache_1 = Duel.GetLP(1)
ad4e2a7693 2023-08-02   80:     
ad4e2a7693 2023-08-02   81:     if cache_1 <= 0 then --{
ad4e2a7693 2023-08-02   82:       
ad4e2a7693 2023-08-02   83:       if cache_1 == 0 then --{
ad4e2a7693 2023-08-02   84:         
ad4e2a7693 2023-08-02   85:         --}
ad4e2a7693 2023-08-02   86:         
ad4e2a7693 2023-08-02   87:       else  --{
ad4e2a7693 2023-08-02   88:         
ad4e2a7693 2023-08-02   89:         Debug.ShowHint("QB:「你居然二解了,请加群告诉我怎么二解。」")
ad4e2a7693 2023-08-02   90:         
ad4e2a7693 2023-08-02   91:         end --}
ad4e2a7693 2023-08-02   92:         
ad4e2a7693 2023-08-02   93:       Debug.ShowHint("残局群181175613")
ad4e2a7693 2023-08-02   94:       
ad4e2a7693 2023-08-02   95:       --}
ad4e2a7693 2023-08-02   96:       
ad4e2a7693 2023-08-02   97:     else --{
ad4e2a7693 2023-08-02   98:       
ad4e2a7693 2023-08-02   99:       return false
ad4e2a7693 2023-08-02  100:       
ad4e2a7693 2023-08-02  101:       end --}
ad4e2a7693 2023-08-02  102:       
ad4e2a7693 2023-08-02  103:     end --}
ad4e2a7693 2023-08-02  104:     
ad4e2a7693 2023-08-02  105:   str["效果"]:SetCondition(cache_1)
ad4e2a7693 2023-08-02  106:   
ad4e2a7693 2023-08-02  107:   str["效果"]:SetOperation(aux.NULL)
ad4e2a7693 2023-08-02  108:   
ad4e2a7693 2023-08-02  109:   Duel.RegisterEffect(str["效果"]
ad4e2a7693 2023-08-02  110:   , 0)
ad4e2a7693 2023-08-02  111:   
ad4e2a7693 2023-08-02  112:   end --}
fffb53847d 2023-08-02  113:   
fffb53847d 2023-08-02  114: fun["一_是否效果卡"] = function(card) --{
fffb53847d 2023-08-02  115:   
fffb53847d 2023-08-02  116:   for i = 1, #str["效果卡的种类表"] do --{
fffb53847d 2023-08-02  117:     
fffb53847d 2023-08-02  118:     if Card.IsType(card, str["效果卡的种类表"][i]) then --{
fffb53847d 2023-08-02  119:       
fffb53847d 2023-08-02  120:       return true
fffb53847d 2023-08-02  121:       end --}
fffb53847d 2023-08-02  122:       
fffb53847d 2023-08-02  123:     end --}
fffb53847d 2023-08-02  124:     
fffb53847d 2023-08-02  125:   if Card.IsType(card, TYPE_PENDULUM) then --{
fffb53847d 2023-08-02  126:     
fffb53847d 2023-08-02  127:     for i = 1, #str["无效果灵摆怪兽表"] do --{
fffb53847d 2023-08-02  128:       
fffb53847d 2023-08-02  129:       if Card.IsCode(card, str["无效果灵摆怪兽表"][i]) then --{
fffb53847d 2023-08-02  130:         
fffb53847d 2023-08-02  131:         --}
fffb53847d 2023-08-02  132:         
fffb53847d 2023-08-02  133:       else  --{
fffb53847d 2023-08-02  134:         
fffb53847d 2023-08-02  135:         return true
fffb53847d 2023-08-02  136:         
fffb53847d 2023-08-02  137:         end --}
fffb53847d 2023-08-02  138:         
fffb53847d 2023-08-02  139:       end --}
fffb53847d 2023-08-02  140:       
fffb53847d 2023-08-02  141:     end --}
fffb53847d 2023-08-02  142:     
fffb53847d 2023-08-02  143:   return false
fffb53847d 2023-08-02  144:   
fffb53847d 2023-08-02  145:   end --}
ba4bd27237 2023-08-02  146:   
ba4bd27237 2023-08-02  147: fun["一_开局添加手卡"] = function(str_1) --{
ba4bd27237 2023-08-02  148:   
ba4bd27237 2023-08-02  149:   str["开局添加手卡的数量"] = str_1
ba4bd27237 2023-08-02  150:   
ba4bd27237 2023-08-02  151:   str["效果"] = Effect.GlobalEffect()
ba4bd27237 2023-08-02  152:   
ba4bd27237 2023-08-02  153:   str["效果"]:SetType(EFFECT_TYPE_FIELD
ba4bd27237 2023-08-02  154:   + EFFECT_TYPE_CONTINUOUS)
ba4bd27237 2023-08-02  155:   
ba4bd27237 2023-08-02  156:   str["效果"]:SetCode(EVENT_ADJUST)
ba4bd27237 2023-08-02  157:   
ba4bd27237 2023-08-02  158:   str["效果"]:SetCondition(aux.TRUE)
ba4bd27237 2023-08-02  159:   
ba4bd27237 2023-08-02  160:   function cache_1(effect_event
ba4bd27237 2023-08-02  161:   , player_who_activate_the_effect) --{
ba4bd27237 2023-08-02  162:     
ba4bd27237 2023-08-02  163:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
ba4bd27237 2023-08-02  164:     , Card.IsAbleToHand
ba4bd27237 2023-08-02  165:     , player_who_activate_the_effect
ba4bd27237 2023-08-02  166:     , LOCATION_DECK
ba4bd27237 2023-08-02  167:     , 0
ba4bd27237 2023-08-02  168:     , str_1
ba4bd27237 2023-08-02  169:     , str_1
ba4bd27237 2023-08-02  170:     , nil)
ba4bd27237 2023-08-02  171:     
ba4bd27237 2023-08-02  172:     Duel.SendtoHand(str["玩家选定的卡"]
ba4bd27237 2023-08-02  173:     , nil
ba4bd27237 2023-08-02  174:     , REASON_RULE)
ba4bd27237 2023-08-02  175:     
ba4bd27237 2023-08-02  176:     effect_event:Reset()
ba4bd27237 2023-08-02  177:     
ba4bd27237 2023-08-02  178:     end --}
ba4bd27237 2023-08-02  179:     
ba4bd27237 2023-08-02  180:   str["效果"]:SetOperation(cache_1)
ba4bd27237 2023-08-02  181:   
ba4bd27237 2023-08-02  182:   Duel.RegisterEffect(str["效果"]
ba4bd27237 2023-08-02  183:   , 0)
ba4bd27237 2023-08-02  184:   
ba4bd27237 2023-08-02  185:   end --}
ad4e2a7693 2023-08-02  186: 
c458c143fc 2023-08-02  187: --第二层-------------------------------
fbca5305b2 2023-08-02  188: 
fbca5305b2 2023-08-02  189: local cache_1
fbca5305b2 2023-08-02  190: local cache_2
fbca5305b2 2023-08-02  191: local cache_3
fbca5305b2 2023-08-02  192: local cache_4
fbca5305b2 2023-08-02  193: local cache_5
fbca5305b2 2023-08-02  194: local cache_6
fbca5305b2 2023-08-02  195: local cache_7
fbca5305b2 2023-08-02  196: local cache_8
fbca5305b2 2023-08-02  197: local cache_9
fbca5305b2 2023-08-02  198: 
fbca5305b2 2023-08-02  199: local _
fbca5305b2 2023-08-02  200: 
97b92271b2 2023-08-02  201: fun["二_开局说明"] = function() --{
fbca5305b2 2023-08-02  202:   
fbca5305b2 2023-08-02  203:   str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"]
fbca5305b2 2023-08-02  204:   , 0
fbca5305b2 2023-08-02  205:   , str["所有区域"]
fbca5305b2 2023-08-02  206:   , str["所有区域"]
fbca5305b2 2023-08-02  207:   , nil)
fbca5305b2 2023-08-02  208:   
fbca5305b2 2023-08-02  209:   str["超量素材组"] = Duel.GetOverlayGroup(0
fbca5305b2 2023-08-02  210:   , LOCATION_MZONE
fbca5305b2 2023-08-02  211:   , LOCATION_MZONE)
fbca5305b2 2023-08-02  212:   
fbca5305b2 2023-08-02  213:   for k in aux.Next(str["超量素材组"]) do --{
fbca5305b2 2023-08-02  214:     
fbca5305b2 2023-08-02  215:     if fun["一_是否效果卡"](k) then --{
fbca5305b2 2023-08-02  216:       
fbca5305b2 2023-08-02  217:       str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
fbca5305b2 2023-08-02  218:       
fbca5305b2 2023-08-02  219:       end --}
fbca5305b2 2023-08-02  220:       
fbca5305b2 2023-08-02  221:     end --}
fbca5305b2 2023-08-02  222:     
fbca5305b2 2023-08-02  223:   str["开局说明"] = str["这个残局的效果卡数量"]
fbca5305b2 2023-08-02  224:   .. "卡 "
fbca5305b2 2023-08-02  225:   .. str["规则"]
fbca5305b2 2023-08-02  226:   
fbca5305b2 2023-08-02  227:   if str["不洗牌"] == 0 then --{
fbca5305b2 2023-08-02  228:     
fbca5305b2 2023-08-02  229:     --}
fbca5305b2 2023-08-02  230:     
fbca5305b2 2023-08-02  231:   else --{
fbca5305b2 2023-08-02  232:     
fbca5305b2 2023-08-02  233:     str["开局说明"] = str["开局说明"] .. "伪洗牌 "
fbca5305b2 2023-08-02  234:     
fbca5305b2 2023-08-02  235:     end --}
fbca5305b2 2023-08-02  236:     
fbca5305b2 2023-08-02  237:   if str["无BP"] == 0 then --{
fbca5305b2 2023-08-02  238:     
fbca5305b2 2023-08-02  239:     str["开局说明"] = str["开局说明"] .. "无BP "
fbca5305b2 2023-08-02  240:     
fbca5305b2 2023-08-02  241:     end --}
fbca5305b2 2023-08-02  242:     
fbca5305b2 2023-08-02  243:   if str["开局添加手卡"] then --{
fbca5305b2 2023-08-02  244:     
fbca5305b2 2023-08-02  245:     str["开局说明"] = str["开局说明"]
fbca5305b2 2023-08-02  246:     .. "选"
fbca5305b2 2023-08-02  247:     .. str["开局添加手卡的数量"]
fbca5305b2 2023-08-02  248:     .. "卡 "
fbca5305b2 2023-08-02  249:     
fbca5305b2 2023-08-02  250:     end --}
fbca5305b2 2023-08-02  251:     
fbca5305b2 2023-08-02  252:   if str["禁格"] then --{
fbca5305b2 2023-08-02  253:     
fbca5305b2 2023-08-02  254:     str["开局说明"] = str["开局说明"]
fbca5305b2 2023-08-02  255:     .. "禁"
fbca5305b2 2023-08-02  256:     .. str["禁格的数量"]
fbca5305b2 2023-08-02  257:     .. "格 "
fbca5305b2 2023-08-02  258:     
fbca5305b2 2023-08-02  259:     end --}
fbca5305b2 2023-08-02  260:     
fbca5305b2 2023-08-02  261:   if str["随机抽卡的数量"] then --{
fbca5305b2 2023-08-02  262:     
fbca5305b2 2023-08-02  263:     str["开局说明"] = str["开局说明"]
fbca5305b2 2023-08-02  264:     .. "抽"
fbca5305b2 2023-08-02  265:     .. str["随机抽卡的数量"]
fbca5305b2 2023-08-02  266:     .. "卡 "
fbca5305b2 2023-08-02  267:     end --}
fbca5305b2 2023-08-02  268:     
fbca5305b2 2023-08-02  269:   Debug.ShowHint(str["开局说明"])
fbca5305b2 2023-08-02  270:   
fbca5305b2 2023-08-02  271:   end --}
97b92271b2 2023-08-02  272:   
295249c2b0 2023-08-02  273: --第三层-------------------------------
97b92271b2 2023-08-02  274: 
97b92271b2 2023-08-02  275: local cache_1
97b92271b2 2023-08-02  276: local cache_2
97b92271b2 2023-08-02  277: local cache_3
97b92271b2 2023-08-02  278: local cache_4
97b92271b2 2023-08-02  279: local cache_5
97b92271b2 2023-08-02  280: local cache_6
97b92271b2 2023-08-02  281: local cache_7
97b92271b2 2023-08-02  282: local cache_8
97b92271b2 2023-08-02  283: local cache_9
97b92271b2 2023-08-02  284: 
97b92271b2 2023-08-02  285: local _
c458c143fc 2023-08-02  286: 
c458c143fc 2023-08-02  287: --兼容层-------------------------------
c458c143fc 2023-08-02  288: 
9f9e2c9f7f 2023-07-28  289: fun["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
9f9e2c9f7f 2023-07-28  290: 
9f9e2c9f7f 2023-07-28  291: Debug.ReloadFieldBegin = function(str_1, str_2) --{
9f9e2c9f7f 2023-07-28  292:   
9f9e2c9f7f 2023-07-28  293:   str["不洗牌"] = str_1 & DUEL_PSEUDO_SHUFFLE
9f9e2c9f7f 2023-07-28  294:   
9f9e2c9f7f 2023-07-28  295:   str["无BP"] = str_1 & DUEL_ATTACK_FIRST_TURN
9f9e2c9f7f 2023-07-28  296:   
9f9e2c9f7f 2023-07-28  297:   str["规则表"] = {
9f9e2c9f7f 2023-07-28  298:     
1c6488a768 2023-07-28  299:     [3] = "大师3 "
1c6488a768 2023-07-28  300:     , [4] = "新大师 "
1c6488a768 2023-07-28  301:     , [5] = "大师2020 "
9f9e2c9f7f 2023-07-28  302:     }
9f9e2c9f7f 2023-07-28  303:     
9f9e2c9f7f 2023-07-28  304:   if str_2 then --{
9f9e2c9f7f 2023-07-28  305:     
9f9e2c9f7f 2023-07-28  306:     str["规则"] = str["规则表"][str_2]
9f9e2c9f7f 2023-07-28  307:     
9f9e2c9f7f 2023-07-28  308:     --}
9f9e2c9f7f 2023-07-28  309:     
9f9e2c9f7f 2023-07-28  310:   else --{
9f9e2c9f7f 2023-07-28  311:     
9f9e2c9f7f 2023-07-28  312:     str["规则"] = str["规则表"][5]
9f9e2c9f7f 2023-07-28  313:     
9f9e2c9f7f 2023-07-28  314:     end --}
9f9e2c9f7f 2023-07-28  315:     
9f9e2c9f7f 2023-07-28  316:   fun["Debug.ReloadFieldBegin"](str_1, str_2)
9f9e2c9f7f 2023-07-28  317:   
9f9e2c9f7f 2023-07-28  318:   end --}
9f9e2c9f7f 2023-07-28  319:   
9f9e2c9f7f 2023-07-28  320: fun["Debug.ReloadFieldEnd"] = Debug.ReloadFieldEnd
9f9e2c9f7f 2023-07-28  321: 
9f9e2c9f7f 2023-07-28  322: Debug.ReloadFieldEnd = function(str_1) --{
9f9e2c9f7f 2023-07-28  323:   
9f9e2c9f7f 2023-07-28  324:   fun["Debug.ReloadFieldEnd"]()
9f9e2c9f7f 2023-07-28  325:   
9f9e2c9f7f 2023-07-28  326:   if str_1 then --{
9f9e2c9f7f 2023-07-28  327:     
9f9e2c9f7f 2023-07-28  328:     fun["随机抽卡"](str_1)
9f9e2c9f7f 2023-07-28  329:     
9f9e2c9f7f 2023-07-28  330:     end --}
9f9e2c9f7f 2023-07-28  331:     
9f9e2c9f7f 2023-07-28  332:   end --}
9f9e2c9f7f 2023-07-28  333:   
9f9e2c9f7f 2023-07-28  334: fun["aux.BeginPuzzle"] = aux.BeginPuzzle
9f9e2c9f7f 2023-07-28  335: 
9f9e2c9f7f 2023-07-28  336: aux.BeginPuzzle = function(str_1, str_2) --{
9f9e2c9f7f 2023-07-28  337:   
9f9e2c9f7f 2023-07-28  338:   fun["aux.BeginPuzzle"]()
9f9e2c9f7f 2023-07-28  339:   
9f9e2c9f7f 2023-07-28  340:   if str_1 then --{
9f9e2c9f7f 2023-07-28  341:     
9f9e2c9f7f 2023-07-28  342:     fun["开局添加手卡"](str_1)
9f9e2c9f7f 2023-07-28  343:     
9f9e2c9f7f 2023-07-28  344:     end --}
9f9e2c9f7f 2023-07-28  345:     
9f9e2c9f7f 2023-07-28  346:   if str_2 then --{
9f9e2c9f7f 2023-07-28  347:     
9f9e2c9f7f 2023-07-28  348:     fun["禁格"](str_2)
9f9e2c9f7f 2023-07-28  349:     
9f9e2c9f7f 2023-07-28  350:     end --}
9f9e2c9f7f 2023-07-28  351:     
9f9e2c9f7f 2023-07-28  352:   fun["开局说明"]()
9f9e2c9f7f 2023-07-28  353:   
9f9e2c9f7f 2023-07-28  354:   fun["通关邀请"]()
9f9e2c9f7f 2023-07-28  355:   
9f9e2c9f7f 2023-07-28  356:   fun["失败得分"]()
9f9e2c9f7f 2023-07-28  357:   
9f9e2c9f7f 2023-07-28  358:   end --}
9f9e2c9f7f 2023-07-28  359:   
ad4e2a7693 2023-08-02  360: 
ad4e2a7693 2023-08-02  361:   
fffb53847d 2023-08-02  362: 
0d5ba0fc61 2023-07-23  363:   
0d5ba0fc61 2023-07-23  364: fun["禁格"] = function(str_1) --{
0d5ba0fc61 2023-07-23  365:   
0d5ba0fc61 2023-07-23  366:   str["禁格的数量"] = str_1
6254eda63a 2023-07-23  367:   
6254eda63a 2023-07-23  368:   str["效果"] = Effect.GlobalEffect()
6254eda63a 2023-07-23  369:   
6254eda63a 2023-07-23  370:   str["效果"]:SetCode(EFFECT_USE_EXTRA_MZONE)
6254eda63a 2023-07-23  371:   
6254eda63a 2023-07-23  372:   str["效果"]:SetValue(str_1)
6254eda63a 2023-07-23  373:   
6254eda63a 2023-07-23  374:   Duel.RegisterEffect(str["效果"],0)
6254eda63a 2023-07-23  375:   
8a01ebbad2 2023-07-23  376:   end --}
8a01ebbad2 2023-07-23  377:   
8a01ebbad2 2023-07-23  378: fun["该效果不能被连锁"] = function() --{
8a01ebbad2 2023-07-23  379:   
8a01ebbad2 2023-07-23  380:   Duel.SetChainLimit(aux.FALSE)
8a01ebbad2 2023-07-23  381:   
8a01ebbad2 2023-07-23  382:   return true
154313a5bc 2023-07-23  383:   end --}
154313a5bc 2023-07-23  384:   
e28a9fe965 2023-07-16  385: fun["印卡"] = function(str_1, str_2, str_3) --{
d5d0e03305 2023-07-11  386:   
d5d0e03305 2023-07-11  387:   if str_3 then --{
993a6dbc45 2023-07-13  388:     
d5d0e03305 2023-07-11  389:     --}
993a6dbc45 2023-07-13  390:     
d5d0e03305 2023-07-11  391:   else --{
993a6dbc45 2023-07-13  392:     
d5d0e03305 2023-07-11  393:     str_3 = str_2
45478ef823 2023-07-13  394:     
d5d0e03305 2023-07-11  395:     end --}
993a6dbc45 2023-07-13  396:     
0d5ba0fc61 2023-07-23  397:   Debug.ShowHint("点击对方额外卡组可以进行印卡。\n手卡只能印 "
0d5ba0fc61 2023-07-23  398:   .. str_2
0d5ba0fc61 2023-07-23  399:   .. " 张。\n最多可以印 "
0d5ba0fc61 2023-07-23  400:   .. str_3
0d5ba0fc61 2023-07-23  401:   .. " 张")
6254eda63a 2023-07-23  402:   
6254eda63a 2023-07-23  403:   str["效果"] = Effect.CreateEffect(str_1)
9a1184f29f 2023-07-22  404:   
9a1184f29f 2023-07-22  405:   str["当前印卡数"] = 1
9a1184f29f 2023-07-22  406:   
6254eda63a 2023-07-23  407:   str["效果"]:SetType(EFFECT_TYPE_IGNITION)
9a1184f29f 2023-07-22  408:   
6254eda63a 2023-07-23  409:   str["效果"]:SetProperty(EFFECT_FLAG_BOTH_SIDE
d5d0e03305 2023-07-11  410:   + EFFECT_FLAG_UNCOPYABLE
d5d0e03305 2023-07-11  411:   + EFFECT_FLAG_CANNOT_NEGATE
d5d0e03305 2023-07-11  412:   + EFFECT_FLAG_CANNOT_DISABLE)
d5d0e03305 2023-07-11  413:   
8a01ebbad2 2023-07-23  414:   str["效果"]:SetTarget(fun["该效果不能被连锁"])
6254eda63a 2023-07-23  415:   
6254eda63a 2023-07-23  416:   str["效果"]:SetRange(LOCATION_EXTRA)
d5d0e03305 2023-07-11  417:   
d5d0e03305 2023-07-11  418:   function print_hand(effect_event
d5d0e03305 2023-07-11  419:   , player_who_activate_the_effect) --{
993a6dbc45 2023-07-13  420:     
d5d0e03305 2023-07-11  421:     announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
d5d0e03305 2023-07-11  422:     
d5d0e03305 2023-07-11  423:     card = Duel.CreateToken(player_who_activate_the_effect
d5d0e03305 2023-07-11  424:     , announce_card)
d5d0e03305 2023-07-11  425:     
d5d0e03305 2023-07-11  426:     if str["当前印卡数"] <= str_2 then --{
993a6dbc45 2023-07-13  427:       
d5d0e03305 2023-07-11  428:       str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  429:       
d5d0e03305 2023-07-11  430:       Duel.SendtoHand(card,nil,REASON_RULE)
45478ef823 2023-07-13  431:       
d5d0e03305 2023-07-11  432:       --}
993a6dbc45 2023-07-13  433:       
d5d0e03305 2023-07-11  434:     else --{
993a6dbc45 2023-07-13  435:       
d5d0e03305 2023-07-11  436:       if str["当前印卡数"] <= str_3 then --{
993a6dbc45 2023-07-13  437:         
d5d0e03305 2023-07-11  438:         str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  439:         
d5d0e03305 2023-07-11  440:         Duel.Remove(card,POS_FACEUP,REASON_RULE)
d5d0e03305 2023-07-11  441:         
d5d0e03305 2023-07-11  442:         Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
45478ef823 2023-07-13  443:         
d5d0e03305 2023-07-11  444:         --}
993a6dbc45 2023-07-13  445:         
d5d0e03305 2023-07-11  446:       else --{
993a6dbc45 2023-07-13  447:         
27c36deea8 2023-07-23  448:         Debug.ShowHint("印卡过多!")
45478ef823 2023-07-13  449:         
a30b9aba5d 2023-07-16  450:         effect_event:Reset()
a30b9aba5d 2023-07-16  451:         
993a6dbc45 2023-07-13  452:         end --}
993a6dbc45 2023-07-13  453:         
993a6dbc45 2023-07-13  454:       end --}
993a6dbc45 2023-07-13  455:       
993a6dbc45 2023-07-13  456:     end --}
993a6dbc45 2023-07-13  457:     
6254eda63a 2023-07-23  458:   str["效果"]:SetOperation(print_hand)
0852ed07b8 2023-07-22  459:   
6254eda63a 2023-07-23  460:   str_1:RegisterEffect(str["效果"])
0852ed07b8 2023-07-22  461:   
0852ed07b8 2023-07-22  462:   end --}
0852ed07b8 2023-07-22  463:   
0852ed07b8 2023-07-22  464: fun["随机抽卡"] = function(str_1) --{
a469e38404 2023-07-22  465:   
0852ed07b8 2023-07-22  466:   str["随机抽卡的数量"] = str_1
63daf9144a 2023-07-22  467:   
6254eda63a 2023-07-23  468:   str["效果"] = Effect.GlobalEffect()
63daf9144a 2023-07-22  469:   
6254eda63a 2023-07-23  470:   str["效果"]:SetType(EFFECT_TYPE_FIELD
63daf9144a 2023-07-22  471:   + EFFECT_TYPE_CONTINUOUS)
63daf9144a 2023-07-22  472:   
6254eda63a 2023-07-23  473:   str["效果"]:SetCode(EVENT_ADJUST)
63daf9144a 2023-07-22  474:   
6254eda63a 2023-07-23  475:   str["效果"]:SetCondition(aux.TRUE)
63daf9144a 2023-07-22  476:   
63daf9144a 2023-07-22  477:   function cache_1(effect_event
63daf9144a 2023-07-22  478:   , player_who_activate_the_effect) --{
a469e38404 2023-07-22  479:     
63daf9144a 2023-07-22  480:     Duel.ShuffleDeck(0)
a469e38404 2023-07-22  481:     
63daf9144a 2023-07-22  482:     Duel.Draw(0,str_1,REASON_RULE)
63daf9144a 2023-07-22  483:     
9c53880fae 2023-07-23  484:     effect_event:Reset()
9c53880fae 2023-07-23  485:     
9c53880fae 2023-07-23  486:     end --}
9c53880fae 2023-07-23  487:     
9c53880fae 2023-07-23  488:   str["效果"]:SetOperation(cache_1)
9c53880fae 2023-07-23  489:   
9c53880fae 2023-07-23  490:   Duel.RegisterEffect(str["效果"]
9c53880fae 2023-07-23  491:   , 0)
9c53880fae 2023-07-23  492:   
9c53880fae 2023-07-23  493:   end --}
9c53880fae 2023-07-23  494:   
9c53880fae 2023-07-23  495: fun["失败得分"] = function() --{
32fe80afac 2023-07-23  496:   
9f9e2c9f7f 2023-07-28  497:   str["失败得分表"] = {
9f9e2c9f7f 2023-07-28  498:     
1c6488a768 2023-07-28  499:     [0] = "神龙之圣刻印"
1c6488a768 2023-07-28  500:     , [100] = "调和支援士"
1c6488a768 2023-07-28  501:     , [200] = "深渊的暗杀者"
1c6488a768 2023-07-28  502:     , [300] = "救援猫"
1c6488a768 2023-07-28  503:     , [400] = "注射天使 莉莉"
1c6488a768 2023-07-28  504:     , [500] = "不知火的隐者"
1c6488a768 2023-07-28  505:     , [600] = "影依猎鹰"
1c6488a768 2023-07-28  506:     , [700] = "铁兽战线 姬特"
1c6488a768 2023-07-28  507:     , [800] = "召唤僧"
1c6488a768 2023-07-28  508:     , [900] = "恩底弥翁的仆从"
1c6488a768 2023-07-28  509:     , [1000] = "机壳工具 丑恶"
1c6488a768 2023-07-28  510:     , [1100] = "欧尼斯特"
1c6488a768 2023-07-28  511:     , [1200] = "次元吸引者"
1c6488a768 2023-07-28  512:     , [1300] = "黑羽-疾风之盖尔"
1c6488a768 2023-07-28  513:     , [1400] = "加农炮兵"
1c6488a768 2023-07-28  514:     , [1500] = "教导的大神祗官"
1c6488a768 2023-07-28  515:     , [1600] = "地中族导师"
1c6488a768 2023-07-28  516:     , [1700] = "相剑师-莫邪"
1c6488a768 2023-07-28  517:     , [1800] = "宝玉兽-青玉飞马"
1c6488a768 2023-07-28  518:     , [1900] = "命运英雄 血魔-D"
1c6488a768 2023-07-28  519:     , [2000] = "流离的狮鹫骑手"
1c6488a768 2023-07-28  520:     , [2100] = "电子龙"
1c6488a768 2023-07-28  521:     , [2200] = "古遗物-死镰"
1c6488a768 2023-07-28  522:     , [2300] = "能朋克 调狐"
1c6488a768 2023-07-28  523:     , [2400] = "俱舍怒威族·芬里尔狼"
1c6488a768 2023-07-28  524:     , [2500] = "黑魔术师"
1c6488a768 2023-07-28  525:     , [2600] = "雅典娜"
1c6488a768 2023-07-28  526:     , [2700] = "暗黑界的龙神 格拉法"
1c6488a768 2023-07-28  527:     , [2800] = "魔导兽 刻耳柏洛斯尊主"
1c6488a768 2023-07-28  528:     , [2900] = "元素英雄 永生侠"
1c6488a768 2023-07-28  529:     , [3000] = "青眼白龙"
9f9e2c9f7f 2023-07-28  530:     }
9f9e2c9f7f 2023-07-28  531:     
15c47f6d38 2023-07-23  532:   str["对方玩家的初始生命值"] = Duel.GetLP(1)
15c47f6d38 2023-07-23  533:   
ec99b8dccc 2023-07-23  534:   str["效果"] = Effect.GlobalEffect()
ec99b8dccc 2023-07-23  535:   
ec99b8dccc 2023-07-23  536:   str["效果"]:SetType(EFFECT_TYPE_FIELD
ec99b8dccc 2023-07-23  537:   + EFFECT_TYPE_CONTINUOUS)
ec99b8dccc 2023-07-23  538:   
ec99b8dccc 2023-07-23  539:   str["效果"]:SetCode(EVENT_PHASE_START+PHASE_END)
ec99b8dccc 2023-07-23  540:   
ec99b8dccc 2023-07-23  541:   function cache_1(effect_event
ec99b8dccc 2023-07-23  542:   , player_who_activate_the_effect) --{
15c47f6d38 2023-07-23  543:     
15c47f6d38 2023-07-23  544:     cache_1 = Duel.GetLP(1) - str["对方玩家的初始生命值"]
428f4242f8 2023-07-23  545:     
15c47f6d38 2023-07-23  546:     if cache_1 > 0 then --{
32fe80afac 2023-07-23  547:       
6efb524b73 2023-07-23  548:       return
944281b3ef 2023-07-23  549:       
5f3b78a3f7 2023-07-23  550:       --}
5f3b78a3f7 2023-07-23  551:       
5f3b78a3f7 2023-07-23  552:     else --{
5f3b78a3f7 2023-07-23  553:       
5f3b78a3f7 2023-07-23  554:       cache_1 = math.abs(cache_1) / (str["对方玩家的初始生命值"] - 100)
4fc42fb3fe 2023-07-23  555:       
2533562cae 2023-07-23  556:       cache_1 = math.tointeger(cache_1 * 3000 // 100 * 100)
2533562cae 2023-07-23  557:       
2533562cae 2023-07-23  558:       end --}
2533562cae 2023-07-23  559:       
32fe80afac 2023-07-23  560:     if cache_1 > 3000 then --{
32fe80afac 2023-07-23  561:       
32fe80afac 2023-07-23  562:       --}
32fe80afac 2023-07-23  563:       
32fe80afac 2023-07-23  564:     else --{
32fe80afac 2023-07-23  565:       
b9d3419b8d 2023-07-23  566:       Debug.ShowHint("这局,您的得分是 "
32fe80afac 2023-07-23  567:       .. cache_1
7dab13f692 2023-07-25  568:       .. " 分!\n处于「"
32fe80afac 2023-07-23  569:       .. str["失败得分表"][cache_1]
36e55e73fe 2023-07-23  570:       .. "」级别!")
32fe80afac 2023-07-23  571:       
32fe80afac 2023-07-23  572:       end --}
32fe80afac 2023-07-23  573:       
ec99b8dccc 2023-07-23  574:     effect_event:Reset()
ec99b8dccc 2023-07-23  575:     
ec99b8dccc 2023-07-23  576:     end --}
ec99b8dccc 2023-07-23  577:     
ec99b8dccc 2023-07-23  578:   str["效果"]:SetOperation(cache_1)
ec99b8dccc 2023-07-23  579:   
ec99b8dccc 2023-07-23  580:   Duel.RegisterEffect(str["效果"]
ec99b8dccc 2023-07-23  581:   , 0)
15c47f6d38 2023-07-23  582:   
66a03a682a 2023-07-20  583:   end --}
15c47f6d38 2023-07-23  584: