游戏王残局简化版

Annotation For single_doc/卡组测试教程.html
Login

Annotation For single_doc/卡组测试教程.html

Lines of single_doc/卡组测试教程.html from check-in e9ba599490 that are changed by the sequence of edits moving toward check-in fa024a51f1:

                         1: <!DOCTYPE html>
                         2: <html xmlns="http://www.w3.org/1999/xhtml" lang xml:lang>
                         3: <head>
                         4:   <meta charset="utf-8" />
                         5:   <meta name="generator" content="pandoc" />
                         6:   <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
                         7:   <title>卡组测试教程</title>
                         8:   <style>
                         9: code{white-space: pre-wrap;}
                        10: span.smallcaps{font-variant: small-caps;}
                        11: div.columns{display: flex; gap: min(4vw, 1.5em);}
                        12: div.column{flex: auto; overflow-x: auto;}
                        13: div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
                        14: 
                        15: ul.task-list[class]{list-style: none;}
                        16: ul.task-list li input[type="checkbox"] {
                        17: font-size: inherit;
                        18: width: 0.8em;
                        19: margin: 0 0.8em 0.2em -1.6em;
                        20: vertical-align: middle;
                        21: }
                        22: .display.math{display: block; text-align: center; margin: 0.5rem auto;}
                        23: </style>
e9ba599490 2023-07-06   24:   <style type="text/css">
e9ba599490 2023-07-06   25: @media screen and (min-aspect-ratio:1/1) {
e9ba599490 2023-07-06   26: html {
e9ba599490 2023-07-06   27: background-color: f8f8f8;
e9ba599490 2023-07-06   28: background-image:
e9ba599490 2023-07-06   29: linear-gradient(
e9ba599490 2023-07-06   30: 45deg,
e9ba599490 2023-07-06   31: #eee 25%,
e9ba599490 2023-07-06   32: transparent 25%,
e9ba599490 2023-07-06   33: transparent 75%,
e9ba599490 2023-07-06   34: #eee 75%),
e9ba599490 2023-07-06   35: linear-gradient(
e9ba599490 2023-07-06   36: 45deg,
e9ba599490 2023-07-06   37: #eee 25%,
e9ba599490 2023-07-06   38: transparent 25%,
e9ba599490 2023-07-06   39: transparent 75%,
e9ba599490 2023-07-06   40: #eee 75%);
e9ba599490 2023-07-06   41: background-size: 8px 8px;
e9ba599490 2023-07-06   42: background-position: 0 0, 16px 8px;
e9ba599490 2023-07-06   43: }
e9ba599490 2023-07-06   44: body {
e9ba599490 2023-07-06   45: border: solid #a0a0a0 1px ;
e9ba599490 2023-07-06   46: border-radius: 20px ;
e9ba599490 2023-07-06   47: padding: 26px ;
e9ba599490 2023-07-06   48: margin: 16px ;
e9ba599490 2023-07-06   49: color: #101010 ;
e9ba599490 2023-07-06   50: background-color: #efefef;
e9ba599490 2023-07-06   51: padding: 2em 18%;
e9ba599490 2023-07-06   52: }
e9ba599490 2023-07-06   53: }
e9ba599490 2023-07-06   54: h1,h2,h3,h4,h5,h6 {
e9ba599490 2023-07-06   55: font-size: 1.5em;
e9ba599490 2023-07-06   56: color: #3F5770;
e9ba599490 2023-07-06   57: border-bottom: 0.1em solid #666666;
e9ba599490 2023-07-06   58: margin: 1.2em 0em;
e9ba599490 2023-07-06   59: }
e9ba599490 2023-07-06   60: a {
e9ba599490 2023-07-06   61: list-style: none;
e9ba599490 2023-07-06   62: border-right: 0.3em solid #5183C466;
e9ba599490 2023-07-06   63: border-left: 0.3em solid #5183C466;
e9ba599490 2023-07-06   64: padding: 0.2em 0.4em;
e9ba599490 2023-07-06   65: margin-bottom: 0.2em;
e9ba599490 2023-07-06   66: margin-top: 0.3em;
e9ba599490 2023-07-06   67: background-color: white;
e9ba599490 2023-07-06   68: text-decoration-color: blue;
e9ba599490 2023-07-06   69: }
e9ba599490 2023-07-06   70: a:visited {
e9ba599490 2023-07-06   71: color: blue;
e9ba599490 2023-07-06   72: text-decoration-color: white;
e9ba599490 2023-07-06   73: }
e9ba599490 2023-07-06   74: nav ul li {
e9ba599490 2023-07-06   75: margin: 1.2em 0em;
e9ba599490 2023-07-06   76: }
e9ba599490 2023-07-06   77: p::before {
e9ba599490 2023-07-06   78: content: "  ";
e9ba599490 2023-07-06   79: }
e9ba599490 2023-07-06   80: p {
e9ba599490 2023-07-06   81: margin: 1.2em 0;
e9ba599490 2023-07-06   82: }
e9ba599490 2023-07-06   83: .title {
e9ba599490 2023-07-06   84: background-color: white;
e9ba599490 2023-07-06   85: font-size: 2em;
e9ba599490 2023-07-06   86: text-align: center;
e9ba599490 2023-07-06   87: }
e9ba599490 2023-07-06   88: b {
e9ba599490 2023-07-06   89: background-color: white;
e9ba599490 2023-07-06   90: list-style: none;
e9ba599490 2023-07-06   91: border-right: 0.3em solid #5183C466;
e9ba599490 2023-07-06   92: border-left: 0.3em solid #5183C466;
e9ba599490 2023-07-06   93: padding: 0.2em 0.4em;
e9ba599490 2023-07-06   94: margin-bottom: 0.2em;
e9ba599490 2023-07-06   95: margin-top: 0.3em;
e9ba599490 2023-07-06   96: }
e9ba599490 2023-07-06   97: details > summary {
e9ba599490 2023-07-06   98: list-style: none;
e9ba599490 2023-07-06   99: border-right: 0.3em solid #5183C466;
e9ba599490 2023-07-06  100: border-left: 0.3em solid #5183C466;
e9ba599490 2023-07-06  101: padding: 0.2em 0.4em;
e9ba599490 2023-07-06  102: margin-bottom: 0.2em;
e9ba599490 2023-07-06  103: margin-top: 0.3em;
e9ba599490 2023-07-06  104: }
e9ba599490 2023-07-06  105: details > summary:active {
e9ba599490 2023-07-06  106: transform:
e9ba599490 2023-07-06  107: rotateX(38deg)
e9ba599490 2023-07-06  108: translateY(7px);
e9ba599490 2023-07-06  109: }
e9ba599490 2023-07-06  110: pre {
e9ba599490 2023-07-06  111: background: #f6f6f6;
e9ba599490 2023-07-06  112: border-left: 0.5em solid #ccc;
e9ba599490 2023-07-06  113: padding: 0.4em;
e9ba599490 2023-07-06  114: border-radius: 0.2em;
e9ba599490 2023-07-06  115: }
e9ba599490 2023-07-06  116: pre:active {
e9ba599490 2023-07-06  117: transform:
e9ba599490 2023-07-06  118: rotateX(38deg)
e9ba599490 2023-07-06  119: translateY(7px);
e9ba599490 2023-07-06  120: }
e9ba599490 2023-07-06  121: code {
e9ba599490 2023-07-06  122: font-family: "Verdana";
e9ba599490 2023-07-06  123: }
e9ba599490 2023-07-06  124: button {
e9ba599490 2023-07-06  125: background: #ffffff;
e9ba599490 2023-07-06  126: color: #20894d;
e9ba599490 2023-07-06  127: }
e9ba599490 2023-07-06  128: button:active {
e9ba599490 2023-07-06  129: transform:
e9ba599490 2023-07-06  130: rotateX(38deg)
e9ba599490 2023-07-06  131: translateY(7px);
e9ba599490 2023-07-06  132: }
e9ba599490 2023-07-06  133: </style>
                       134:   <!--[if lt IE 9]>
                       135:     <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
                       136:   <![endif]-->
                       137: </head>
                       138: <body>
                       139: <header id="title-block-header">
                       140: <h1 class="title">卡组测试教程</h1>
                       141: </header>
e9ba599490 2023-07-06  142: <details>
e9ba599490 2023-07-06  143: <summary>
e9ba599490 2023-07-06  144: 前言
e9ba599490 2023-07-06  145: </summary>
                       146: <p>有人想用残局,进行卡组<b>测试</b>。</p>
                       147: <p>鄙人在此提供些微帮助。</p>
e9ba599490 2023-07-06  148: </details>
e9ba599490 2023-07-06  149: <details>
e9ba599490 2023-07-06  150: <summary>
e9ba599490 2023-07-06  151: 开局添加手卡
e9ba599490 2023-07-06  152: </summary>
                       153: <pre><code>--~ 必须位于残局文件顶部
                       154: --~ 加载残局函数库
                       155: Debug.AddCard(0
e9ba599490 2023-07-06  156:   , 0
e9ba599490 2023-07-06  157:   , 0
e9ba599490 2023-07-06  158:   , LOCATION_MZONE
e9ba599490 2023-07-06  159:   , -1
e9ba599490 2023-07-06  160:   , POS_FACEUP)</code></pre>
                       161: <p>这段加载代码应放于残局文件顶部,才可使用所有功能。</p>
                       162: <pre><code>--~ 必须位于残局文件底部
e9ba599490 2023-07-06  163: fun[&quot;开局添加手卡&quot;](6)</code></pre>
                       164: <p>数字可改。</p>
                       165: <p><b>注意:这项功能依赖于残局函数库。</b></p>
                       166: <p><b>具体来说,就是要安装「游戏王残局简化版」。</b></p>
e9ba599490 2023-07-06  167: </details>
                       168: <p><b>☞ 以下内容不够重要,可以忽略</b></p>
e9ba599490 2023-07-06  169: <details>
e9ba599490 2023-07-06  170: <summary>
e9ba599490 2023-07-06  171: 开启多回合
e9ba599490 2023-07-06  172: </summary>
e9ba599490 2023-07-06  173: <pre><code>aux.BeginPuzzle()</code></pre>
                       174: <p>它注册了三个效果:</p>
                       175: <ol type="1">
                       176: <li>跳过抽卡阶段</li>
                       177: <li>跳过准备阶段</li>
                       178: <li>结束阶段时,玩家血量<b>归零</b></li>
                       179: </ol>
e9ba599490 2023-07-06  180: 去掉这一代码,便可开启多回合。
e9ba599490 2023-07-06  181: </details>
e9ba599490 2023-07-06  182: <details>
e9ba599490 2023-07-06  183: <summary>
e9ba599490 2023-07-06  184: 完全操控 AI
e9ba599490 2023-07-06  185: </summary>
                       186: <pre><code>Debug.ReloadFieldBegin(
e9ba599490 2023-07-06  187:   DUEL_ATTACK_FIRST_TURN
e9ba599490 2023-07-06  188:   + DUEL_SIMPLE_AI
e9ba599490 2023-07-06  189:   , 5)</code></pre>
                       190: <p><b>去除</b>特定参数即可。</p>
                       191: <pre><code>Debug.ReloadFieldBegin(
e9ba599490 2023-07-06  192:   DUEL_ATTACK_FIRST_TURN
e9ba599490 2023-07-06  193:   , 5)</code></pre>
e9ba599490 2023-07-06  194: </details>
                       195: <p><b>☞ 以下内容不够重要,可以忽略</b></p>
e9ba599490 2023-07-06  196: <details>
e9ba599490 2023-07-06  197: <summary>
e9ba599490 2023-07-06  198: 控制抽卡数量
e9ba599490 2023-07-06  199: </summary>
e9ba599490 2023-07-06  200: <pre><code>Debug.SetPlayerInfo(0,0,0,0)</code></pre>
e9ba599490 2023-07-06  201: 最后一个参数控制<b>每</b>回合抽卡数量。
e9ba599490 2023-07-06  202: </details>
e9ba599490 2023-07-06  203: <details>
e9ba599490 2023-07-06  204: <summary>
e9ba599490 2023-07-06  205: 伪洗牌
e9ba599490 2023-07-06  206: </summary>
                       207: <pre><code>Debug.ReloadFieldBegin(
e9ba599490 2023-07-06  208:   DUEL_ATTACK_FIRST_TURN
e9ba599490 2023-07-06  209:   + DUEL_SIMPLE_AI
e9ba599490 2023-07-06  210:   , 5)</code></pre>
                       211: <p><b>添加</b>特定参数即可。</p>
                       212: <pre><code>Debug.ReloadFieldBegin(
e9ba599490 2023-07-06  213:   DUEL_ATTACK_FIRST_TURN
e9ba599490 2023-07-06  214:   + DUEL_SIMPLE_AI
e9ba599490 2023-07-06  215:   + DUEL_PSEUDO_SHUFFLE
e9ba599490 2023-07-06  216:   , 5)</code></pre>
e9ba599490 2023-07-06  217: </details>
                       218: <script>
                       219: 
                       220: document.onclick = function(event) {
                       221: 
                       222:   var target = event.target
                       223: 
                       224:   if (target.tagName == "PRE"
                       225:   || target.tagName == "CODE") {
                       226:     if (window.getSelection().toString() !== "") {
                       227:       return
                       228:       }
                       229:     var range = document.createRange();
                       230:     range.selectNodeContents(target);
                       231:     window.getSelection().removeAllRanges();
                       232:     window.getSelection().addRange(range);
                       233:     var successful = document.execCommand("copy");
                       234:     target.removeAttribute("contenteditable");
                       235:     window.getSelection().removeAllRanges();
                       236:     }
                       237: 
                       238:   }
                       239: 
                       240: 
                       241: 目录列表 = document.getElementsByTagName("details")
                       242: 
                       243: function 展开或收起() {
                       244:   if (目录列表[0].open == true) {
                       245:     for (i = 0;
                       246:       i < 目录列表.length;
                       247:       i++) {
                       248:       目录列表[i].open = false;
                       249:       }
                       250:     }
                       251:   else  {
                       252:     for (i = 0;
                       253:       i < 目录列表.length;
                       254:       i++) {
                       255:       目录列表[i].open = true;
                       256:       }
                       257:     }
                       258:   }
                       259: 
                       260: </script>
                       261: </body>
                       262: </html>