游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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 --}
fffb53847d 2023-08-02  146: 
fffb53847d 2023-08-02  147: --第二层-------------------------------
fffb53847d 2023-08-02  148: 
fffb53847d 2023-08-02  149: local cache_1
fffb53847d 2023-08-02  150: local cache_2
fffb53847d 2023-08-02  151: local cache_3
fffb53847d 2023-08-02  152: local cache_4
fffb53847d 2023-08-02  153: local cache_5
fffb53847d 2023-08-02  154: local cache_6
fffb53847d 2023-08-02  155: local cache_7
fffb53847d 2023-08-02  156: local cache_8
fffb53847d 2023-08-02  157: local cache_9
fffb53847d 2023-08-02  158: 
fffb53847d 2023-08-02  159: local _
ad4e2a7693 2023-08-02  160: 
97b92271b2 2023-08-02  161: fun["二_开局说明"] = function() --{
fbca5305b2 2023-08-02  162:   
fbca5305b2 2023-08-02  163:   str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"]
fbca5305b2 2023-08-02  164:   , 0
fbca5305b2 2023-08-02  165:   , str["所有区域"]
fbca5305b2 2023-08-02  166:   , str["所有区域"]
fbca5305b2 2023-08-02  167:   , nil)
fbca5305b2 2023-08-02  168:   
fbca5305b2 2023-08-02  169:   str["超量素材组"] = Duel.GetOverlayGroup(0
fbca5305b2 2023-08-02  170:   , LOCATION_MZONE
fbca5305b2 2023-08-02  171:   , LOCATION_MZONE)
fbca5305b2 2023-08-02  172:   
fbca5305b2 2023-08-02  173:   for k in aux.Next(str["超量素材组"]) do --{
fbca5305b2 2023-08-02  174:     
fbca5305b2 2023-08-02  175:     if fun["一_是否效果卡"](k) then --{
fbca5305b2 2023-08-02  176:       
fbca5305b2 2023-08-02  177:       str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
fbca5305b2 2023-08-02  178:       
fbca5305b2 2023-08-02  179:       end --}
fbca5305b2 2023-08-02  180:       
fbca5305b2 2023-08-02  181:     end --}
fbca5305b2 2023-08-02  182:     
fbca5305b2 2023-08-02  183:   str["开局说明"] = str["这个残局的效果卡数量"]
fbca5305b2 2023-08-02  184:   .. "卡 "
fbca5305b2 2023-08-02  185:   .. str["规则"]
fbca5305b2 2023-08-02  186:   
fbca5305b2 2023-08-02  187:   if str["不洗牌"] == 0 then --{
fbca5305b2 2023-08-02  188:     
fbca5305b2 2023-08-02  189:     --}
fbca5305b2 2023-08-02  190:     
fbca5305b2 2023-08-02  191:   else --{
fbca5305b2 2023-08-02  192:     
fbca5305b2 2023-08-02  193:     str["开局说明"] = str["开局说明"] .. "伪洗牌 "
fbca5305b2 2023-08-02  194:     
fbca5305b2 2023-08-02  195:     end --}
fbca5305b2 2023-08-02  196:     
fbca5305b2 2023-08-02  197:   if str["无BP"] == 0 then --{
fbca5305b2 2023-08-02  198:     
fbca5305b2 2023-08-02  199:     str["开局说明"] = str["开局说明"] .. "无BP "
fbca5305b2 2023-08-02  200:     
fbca5305b2 2023-08-02  201:     end --}
fbca5305b2 2023-08-02  202:     
fbca5305b2 2023-08-02  203:   if str["开局添加手卡"] then --{
fbca5305b2 2023-08-02  204:     
fbca5305b2 2023-08-02  205:     str["开局说明"] = str["开局说明"]
fbca5305b2 2023-08-02  206:     .. "选"
fbca5305b2 2023-08-02  207:     .. str["开局添加手卡的数量"]
fbca5305b2 2023-08-02  208:     .. "卡 "
fbca5305b2 2023-08-02  209:     
fbca5305b2 2023-08-02  210:     end --}
fbca5305b2 2023-08-02  211:     
fbca5305b2 2023-08-02  212:   if str["禁格"] then --{
fbca5305b2 2023-08-02  213:     
fbca5305b2 2023-08-02  214:     str["开局说明"] = str["开局说明"]
fbca5305b2 2023-08-02  215:     .. "禁"
fbca5305b2 2023-08-02  216:     .. str["禁格的数量"]
fbca5305b2 2023-08-02  217:     .. "格 "
fbca5305b2 2023-08-02  218:     
fbca5305b2 2023-08-02  219:     end --}
fbca5305b2 2023-08-02  220:     
fbca5305b2 2023-08-02  221:   if str["随机抽卡的数量"] then --{
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:     end --}
fbca5305b2 2023-08-02  228:     
fbca5305b2 2023-08-02  229:   Debug.ShowHint(str["开局说明"])
fbca5305b2 2023-08-02  230:   
fbca5305b2 2023-08-02  231:   end --}
97b92271b2 2023-08-02  232:   
97b92271b2 2023-08-02  233: --第二层-------------------------------
97b92271b2 2023-08-02  234: 
97b92271b2 2023-08-02  235: local cache_1
97b92271b2 2023-08-02  236: local cache_2
97b92271b2 2023-08-02  237: local cache_3
97b92271b2 2023-08-02  238: local cache_4
97b92271b2 2023-08-02  239: local cache_5
97b92271b2 2023-08-02  240: local cache_6
97b92271b2 2023-08-02  241: local cache_7
97b92271b2 2023-08-02  242: local cache_8
97b92271b2 2023-08-02  243: local cache_9
97b92271b2 2023-08-02  244: 
97b92271b2 2023-08-02  245: local _
fbca5305b2 2023-08-02  246: 
c458c143fc 2023-08-02  247: --兼容层-------------------------------
c458c143fc 2023-08-02  248: 
9f9e2c9f7f 2023-07-28  249: fun["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
9f9e2c9f7f 2023-07-28  250: 
9f9e2c9f7f 2023-07-28  251: Debug.ReloadFieldBegin = function(str_1, str_2) --{
9f9e2c9f7f 2023-07-28  252:   
9f9e2c9f7f 2023-07-28  253:   str["不洗牌"] = str_1 & DUEL_PSEUDO_SHUFFLE
9f9e2c9f7f 2023-07-28  254:   
9f9e2c9f7f 2023-07-28  255:   str["无BP"] = str_1 & DUEL_ATTACK_FIRST_TURN
9f9e2c9f7f 2023-07-28  256:   
9f9e2c9f7f 2023-07-28  257:   str["规则表"] = {
9f9e2c9f7f 2023-07-28  258:     
1c6488a768 2023-07-28  259:     [3] = "大师3 "
1c6488a768 2023-07-28  260:     , [4] = "新大师 "
1c6488a768 2023-07-28  261:     , [5] = "大师2020 "
9f9e2c9f7f 2023-07-28  262:     }
9f9e2c9f7f 2023-07-28  263:     
9f9e2c9f7f 2023-07-28  264:   if str_2 then --{
9f9e2c9f7f 2023-07-28  265:     
9f9e2c9f7f 2023-07-28  266:     str["规则"] = str["规则表"][str_2]
9f9e2c9f7f 2023-07-28  267:     
9f9e2c9f7f 2023-07-28  268:     --}
9f9e2c9f7f 2023-07-28  269:     
9f9e2c9f7f 2023-07-28  270:   else --{
9f9e2c9f7f 2023-07-28  271:     
9f9e2c9f7f 2023-07-28  272:     str["规则"] = str["规则表"][5]
9f9e2c9f7f 2023-07-28  273:     
9f9e2c9f7f 2023-07-28  274:     end --}
9f9e2c9f7f 2023-07-28  275:     
9f9e2c9f7f 2023-07-28  276:   fun["Debug.ReloadFieldBegin"](str_1, str_2)
9f9e2c9f7f 2023-07-28  277:   
9f9e2c9f7f 2023-07-28  278:   end --}
9f9e2c9f7f 2023-07-28  279:   
9f9e2c9f7f 2023-07-28  280: fun["Debug.ReloadFieldEnd"] = Debug.ReloadFieldEnd
9f9e2c9f7f 2023-07-28  281: 
9f9e2c9f7f 2023-07-28  282: Debug.ReloadFieldEnd = function(str_1) --{
9f9e2c9f7f 2023-07-28  283:   
9f9e2c9f7f 2023-07-28  284:   fun["Debug.ReloadFieldEnd"]()
9f9e2c9f7f 2023-07-28  285:   
9f9e2c9f7f 2023-07-28  286:   if str_1 then --{
9f9e2c9f7f 2023-07-28  287:     
9f9e2c9f7f 2023-07-28  288:     fun["随机抽卡"](str_1)
9f9e2c9f7f 2023-07-28  289:     
9f9e2c9f7f 2023-07-28  290:     end --}
9f9e2c9f7f 2023-07-28  291:     
9f9e2c9f7f 2023-07-28  292:   end --}
9f9e2c9f7f 2023-07-28  293:   
9f9e2c9f7f 2023-07-28  294: fun["aux.BeginPuzzle"] = aux.BeginPuzzle
9f9e2c9f7f 2023-07-28  295: 
9f9e2c9f7f 2023-07-28  296: aux.BeginPuzzle = function(str_1, str_2) --{
9f9e2c9f7f 2023-07-28  297:   
9f9e2c9f7f 2023-07-28  298:   fun["aux.BeginPuzzle"]()
9f9e2c9f7f 2023-07-28  299:   
9f9e2c9f7f 2023-07-28  300:   if str_1 then --{
9f9e2c9f7f 2023-07-28  301:     
9f9e2c9f7f 2023-07-28  302:     fun["开局添加手卡"](str_1)
9f9e2c9f7f 2023-07-28  303:     
9f9e2c9f7f 2023-07-28  304:     end --}
9f9e2c9f7f 2023-07-28  305:     
9f9e2c9f7f 2023-07-28  306:   if str_2 then --{
9f9e2c9f7f 2023-07-28  307:     
9f9e2c9f7f 2023-07-28  308:     fun["禁格"](str_2)
9f9e2c9f7f 2023-07-28  309:     
9f9e2c9f7f 2023-07-28  310:     end --}
9f9e2c9f7f 2023-07-28  311:     
9f9e2c9f7f 2023-07-28  312:   fun["开局说明"]()
9f9e2c9f7f 2023-07-28  313:   
9f9e2c9f7f 2023-07-28  314:   fun["通关邀请"]()
9f9e2c9f7f 2023-07-28  315:   
9f9e2c9f7f 2023-07-28  316:   fun["失败得分"]()
9f9e2c9f7f 2023-07-28  317:   
9f9e2c9f7f 2023-07-28  318:   end --}
9f9e2c9f7f 2023-07-28  319:   
ad4e2a7693 2023-08-02  320: 
ad4e2a7693 2023-08-02  321:   
fffb53847d 2023-08-02  322: 
8a01ebbad2 2023-07-23  323:   
993a6dbc45 2023-07-13  324: fun["开局添加手卡"] = function(str_1) --{
993a6dbc45 2023-07-13  325:   
0d5ba0fc61 2023-07-23  326:   str["开局添加手卡的数量"] = str_1
e8a4eb1d6e 2023-07-16  327:   
6254eda63a 2023-07-23  328:   str["效果"] = Effect.GlobalEffect()
e8a4eb1d6e 2023-07-16  329:   
6254eda63a 2023-07-23  330:   str["效果"]:SetType(EFFECT_TYPE_FIELD
e8a4eb1d6e 2023-07-16  331:   + EFFECT_TYPE_CONTINUOUS)
e8a4eb1d6e 2023-07-16  332:   
6254eda63a 2023-07-23  333:   str["效果"]:SetCode(EVENT_ADJUST)
0f0474f258 2023-07-16  334:   
6254eda63a 2023-07-23  335:   str["效果"]:SetCondition(aux.TRUE)
8e87626fe9 2023-07-16  336:   
8e87626fe9 2023-07-16  337:   function cache_1(effect_event
8e87626fe9 2023-07-16  338:   , player_who_activate_the_effect) --{
8e87626fe9 2023-07-16  339:     
8e87626fe9 2023-07-16  340:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
4e8f89ad97 2023-07-11  341:     , Card.IsAbleToHand
8e87626fe9 2023-07-16  342:     , player_who_activate_the_effect
4e8f89ad97 2023-07-11  343:     , LOCATION_DECK
4e8f89ad97 2023-07-11  344:     , 0
4e8f89ad97 2023-07-11  345:     , str_1
4e8f89ad97 2023-07-11  346:     , str_1
4e8f89ad97 2023-07-11  347:     , nil)
4e8f89ad97 2023-07-11  348:     
4e8f89ad97 2023-07-11  349:     Duel.SendtoHand(str["玩家选定的卡"]
4e8f89ad97 2023-07-11  350:     , nil
4e8f89ad97 2023-07-11  351:     , REASON_RULE)
8e87626fe9 2023-07-16  352:     
e28a9fe965 2023-07-16  353:     effect_event:Reset()
1539e099d7 2023-07-16  354:     
8e87626fe9 2023-07-16  355:     end --}
8e87626fe9 2023-07-16  356:     
6254eda63a 2023-07-23  357:   str["效果"]:SetOperation(cache_1)
8e87626fe9 2023-07-16  358:   
6254eda63a 2023-07-23  359:   Duel.RegisterEffect(str["效果"]
8e87626fe9 2023-07-16  360:   , 0)
17d6844110 2023-07-16  361:   
d5d0e03305 2023-07-11  362:   end --}
993a6dbc45 2023-07-13  363:   
d5d0e03305 2023-07-11  364: fun["禁格"] = function(str_1) --{
993a6dbc45 2023-07-13  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:   
0d5ba0fc61 2023-07-23  376:   end --}
0d5ba0fc61 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
8a01ebbad2 2023-07-23  383:   end --}
8a01ebbad2 2023-07-23  384:   
d5d0e03305 2023-07-11  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: