游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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