游戏王残局简化版

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

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

Origin for each line in single_doc/卡组测试教程.html from check-in bc10a7b5c0:

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