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 {
4a8edbf38c 2023-07-06 61: list-style: none;
4a8edbf38c 2023-07-06 62: border-right: 0.3em solid #5183C466;
4a8edbf38c 2023-07-06 63: border-left: 0.3em solid #5183C466;
4a8edbf38c 2023-07-06 64: padding: 0.2em 0.4em;
4a8edbf38c 2023-07-06 65: margin-bottom: 0.2em;
4a8edbf38c 2023-07-06 66: margin-top: 0.3em;
bc10a7b5c0 2023-07-06 67: background-color: white;
bc10a7b5c0 2023-07-06 68: text-decoration-color: blue;
bc10a7b5c0 2023-07-06 69: }
bc10a7b5c0 2023-07-06 70: a:visited {
bc10a7b5c0 2023-07-06 71: color: blue;
bc10a7b5c0 2023-07-06 72: text-decoration-color: white;
bc10a7b5c0 2023-07-06 73: }
bc10a7b5c0 2023-07-06 74: nav ul li {
bc10a7b5c0 2023-07-06 75: margin: 1.2em 0em;
bc10a7b5c0 2023-07-06 76: }
bc10a7b5c0 2023-07-06 77: p::before {
bc10a7b5c0 2023-07-06 78: content: " ";
bc10a7b5c0 2023-07-06 79: }
bc10a7b5c0 2023-07-06 80: p {
bc10a7b5c0 2023-07-06 81: margin: 1.2em 0;
bc10a7b5c0 2023-07-06 82: }
bc10a7b5c0 2023-07-06 83: .title {
bc10a7b5c0 2023-07-06 84: background-color: white;
bc10a7b5c0 2023-07-06 85: font-size: 2em;
bc10a7b5c0 2023-07-06 86: text-align: center;
bc10a7b5c0 2023-07-06 87: }
bc10a7b5c0 2023-07-06 88: b {
bc10a7b5c0 2023-07-06 89: background-color: white;
4a8edbf38c 2023-07-06 90: list-style: none;
4a8edbf38c 2023-07-06 91: border-right: 0.3em solid #5183C466;
4a8edbf38c 2023-07-06 92: border-left: 0.3em solid #5183C466;
4a8edbf38c 2023-07-06 93: padding: 0.2em 0.4em;
4a8edbf38c 2023-07-06 94: margin-bottom: 0.2em;
4a8edbf38c 2023-07-06 95: margin-top: 0.3em;
bc10a7b5c0 2023-07-06 96: }
bc10a7b5c0 2023-07-06 97: details > summary {
bc10a7b5c0 2023-07-06 98: list-style: none;
bc10a7b5c0 2023-07-06 99: border-right: 0.3em solid #5183C466;
bc10a7b5c0 2023-07-06 100: border-left: 0.3em solid #5183C466;
bc10a7b5c0 2023-07-06 101: padding: 0.2em 0.4em;
bc10a7b5c0 2023-07-06 102: margin-bottom: 0.2em;
bc10a7b5c0 2023-07-06 103: margin-top: 0.3em;
bc10a7b5c0 2023-07-06 104: }
bc10a7b5c0 2023-07-06 105: details > summary:active {
bc10a7b5c0 2023-07-06 106: transform:
bc10a7b5c0 2023-07-06 107: rotateX(38deg)
bc10a7b5c0 2023-07-06 108: translateY(7px);
bc10a7b5c0 2023-07-06 109: }
bc10a7b5c0 2023-07-06 110: pre {
bc10a7b5c0 2023-07-06 111: background: #f6f6f6;
bc10a7b5c0 2023-07-06 112: border-left: 0.5em solid #ccc;
bc10a7b5c0 2023-07-06 113: padding: 0.4em;
bc10a7b5c0 2023-07-06 114: border-radius: 0.2em;
bc10a7b5c0 2023-07-06 115: }
bc10a7b5c0 2023-07-06 116: pre:active {
bc10a7b5c0 2023-07-06 117: transform:
bc10a7b5c0 2023-07-06 118: rotateX(38deg)
bc10a7b5c0 2023-07-06 119: translateY(7px);
bc10a7b5c0 2023-07-06 120: }
bc10a7b5c0 2023-07-06 121: code {
bc10a7b5c0 2023-07-06 122: font-family: "Verdana";
bc10a7b5c0 2023-07-06 123: }
bc10a7b5c0 2023-07-06 124: button {
bc10a7b5c0 2023-07-06 125: background: #ffffff;
bc10a7b5c0 2023-07-06 126: color: #20894d;
bc10a7b5c0 2023-07-06 127: }
bc10a7b5c0 2023-07-06 128: button:active {
bc10a7b5c0 2023-07-06 129: transform:
bc10a7b5c0 2023-07-06 130: rotateX(38deg)
bc10a7b5c0 2023-07-06 131: translateY(7px);
bc10a7b5c0 2023-07-06 132: }
bc10a7b5c0 2023-07-06 133: </style>
bc10a7b5c0 2023-07-06 134: <!--[if lt IE 9]>
bc10a7b5c0 2023-07-06 135: <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
bc10a7b5c0 2023-07-06 136: <![endif]-->
bc10a7b5c0 2023-07-06 137: </head>
bc10a7b5c0 2023-07-06 138: <body>
bc10a7b5c0 2023-07-06 139: <div class="title">
bc10a7b5c0 2023-07-06 140: 卡组测试教程
bc10a7b5c0 2023-07-06 141: </div>
bc10a7b5c0 2023-07-06 142: <details>
bc10a7b5c0 2023-07-06 143: <summary>
bc10a7b5c0 2023-07-06 144: 前言
bc10a7b5c0 2023-07-06 145: </summary>
bc10a7b5c0 2023-07-06 146: <p>有人想用残局,进行卡组<b>测试</b>。</p>
bc10a7b5c0 2023-07-06 147: <p>鄙人在此提供些微帮助。</p>
bc10a7b5c0 2023-07-06 148: </details>
bc10a7b5c0 2023-07-06 149: <details>
bc10a7b5c0 2023-07-06 150: <summary>
bc10a7b5c0 2023-07-06 151: 开局添加手卡
bc10a7b5c0 2023-07-06 152: </summary>
bc10a7b5c0 2023-07-06 153: <pre><code>--~ 必须位于残局文件顶部
bc10a7b5c0 2023-07-06 154: --~ 加载残局函数库
bc10a7b5c0 2023-07-06 155: Debug.AddCard(0
bc10a7b5c0 2023-07-06 156: , 0
bc10a7b5c0 2023-07-06 157: , 0
bc10a7b5c0 2023-07-06 158: , LOCATION_MZONE
bc10a7b5c0 2023-07-06 159: , -1
bc10a7b5c0 2023-07-06 160: , POS_FACEUP)</code></pre>
bc10a7b5c0 2023-07-06 161: <p>这段加载代码应放于残局文件顶部,才可使用所有功能。</p>
bc10a7b5c0 2023-07-06 162: <pre><code>--~ 必须位于残局文件底部
bc10a7b5c0 2023-07-06 163: fun["开局添加手卡"](6)</code></pre>
bc10a7b5c0 2023-07-06 164: <p>数字可改。</p>
bc10a7b5c0 2023-07-06 165: <p><b>注意:这项功能依赖于残局函数库。</b></p>
bc10a7b5c0 2023-07-06 166: <p><b>具体来说,就是要安装「游戏王残局简化版」。</b></p>
bc10a7b5c0 2023-07-06 167: </details>
bc10a7b5c0 2023-07-06 168: <p><b>☞ 以下内容不够重要,可以忽略</b></p>
bc10a7b5c0 2023-07-06 169: <details>
bc10a7b5c0 2023-07-06 170: <summary>
bc10a7b5c0 2023-07-06 171: 开启多回合
bc10a7b5c0 2023-07-06 172: </summary>
bc10a7b5c0 2023-07-06 173: <pre><code>aux.BeginPuzzle()</code></pre>
bc10a7b5c0 2023-07-06 174: <p>它注册了三个效果:</p>
bc10a7b5c0 2023-07-06 175: <ol type="1">
bc10a7b5c0 2023-07-06 176: <li>跳过抽卡阶段</li>
bc10a7b5c0 2023-07-06 177: <li>跳过准备阶段</li>
bc10a7b5c0 2023-07-06 178: <li>结束阶段时,玩家血量<b>归零</b></li>
bc10a7b5c0 2023-07-06 179: </ol>
bc10a7b5c0 2023-07-06 180: 去掉这一代码,便可开启多回合。
bc10a7b5c0 2023-07-06 181: </details>
bc10a7b5c0 2023-07-06 182: <details>
bc10a7b5c0 2023-07-06 183: <summary>
bc10a7b5c0 2023-07-06 184: 完全操控 AI
bc10a7b5c0 2023-07-06 185: </summary>
bc10a7b5c0 2023-07-06 186: <pre><code>Debug.ReloadFieldBegin(
bc10a7b5c0 2023-07-06 187: DUEL_ATTACK_FIRST_TURN
bc10a7b5c0 2023-07-06 188: + DUEL_SIMPLE_AI
bc10a7b5c0 2023-07-06 189: , 5)</code></pre>
bc10a7b5c0 2023-07-06 190: <p><b>去除</b>特定参数即可。</p>
bc10a7b5c0 2023-07-06 191: <pre><code>Debug.ReloadFieldBegin(
bc10a7b5c0 2023-07-06 192: DUEL_ATTACK_FIRST_TURN
bc10a7b5c0 2023-07-06 193: , 5)</code></pre>
bc10a7b5c0 2023-07-06 194: </details>
bc10a7b5c0 2023-07-06 195: <p><b>☞ 以下内容不够重要,可以忽略</b></p>
bc10a7b5c0 2023-07-06 196: <details>
bc10a7b5c0 2023-07-06 197: <summary>
bc10a7b5c0 2023-07-06 198: 控制抽卡数量
bc10a7b5c0 2023-07-06 199: </summary>
bc10a7b5c0 2023-07-06 200: <pre><code>Debug.SetPlayerInfo(0,0,0,0)</code></pre>
bc10a7b5c0 2023-07-06 201: 最后一个参数控制<b>每</b>回合抽卡数量。
bc10a7b5c0 2023-07-06 202: </details>
bc10a7b5c0 2023-07-06 203: <details>
bc10a7b5c0 2023-07-06 204: <summary>
bc10a7b5c0 2023-07-06 205: 伪洗牌
bc10a7b5c0 2023-07-06 206: </summary>
bc10a7b5c0 2023-07-06 207: <pre><code>Debug.ReloadFieldBegin(
bc10a7b5c0 2023-07-06 208: DUEL_ATTACK_FIRST_TURN
bc10a7b5c0 2023-07-06 209: + DUEL_SIMPLE_AI
bc10a7b5c0 2023-07-06 210: , 5)</code></pre>
bc10a7b5c0 2023-07-06 211: <p><b>添加</b>特定参数即可。</p>
bc10a7b5c0 2023-07-06 212: <pre><code>Debug.ReloadFieldBegin(
bc10a7b5c0 2023-07-06 213: DUEL_ATTACK_FIRST_TURN
bc10a7b5c0 2023-07-06 214: + DUEL_SIMPLE_AI
bc10a7b5c0 2023-07-06 215: + DUEL_PSEUDO_SHUFFLE
bc10a7b5c0 2023-07-06 216: , 5)</code></pre>
bc10a7b5c0 2023-07-06 217: </details>
bc10a7b5c0 2023-07-06 218: <script>
bc10a7b5c0 2023-07-06 219:
bc10a7b5c0 2023-07-06 220: document.onclick = function(event) {
bc10a7b5c0 2023-07-06 221:
bc10a7b5c0 2023-07-06 222: var target = event.target
bc10a7b5c0 2023-07-06 223:
bc10a7b5c0 2023-07-06 224: if (target.tagName == "PRE"
bc10a7b5c0 2023-07-06 225: || target.tagName == "CODE") {
bc10a7b5c0 2023-07-06 226: if (window.getSelection().toString() !== "") {
bc10a7b5c0 2023-07-06 227: return
bc10a7b5c0 2023-07-06 228: }
bc10a7b5c0 2023-07-06 229: var range = document.createRange();
bc10a7b5c0 2023-07-06 230: range.selectNodeContents(target);
bc10a7b5c0 2023-07-06 231: window.getSelection().removeAllRanges();
bc10a7b5c0 2023-07-06 232: window.getSelection().addRange(range);
bc10a7b5c0 2023-07-06 233: var successful = document.execCommand("copy");
bc10a7b5c0 2023-07-06 234: target.removeAttribute("contenteditable");
bc10a7b5c0 2023-07-06 235: window.getSelection().removeAllRanges();
bc10a7b5c0 2023-07-06 236: }
bc10a7b5c0 2023-07-06 237:
bc10a7b5c0 2023-07-06 238: }
bc10a7b5c0 2023-07-06 239:
bc10a7b5c0 2023-07-06 240:
bc10a7b5c0 2023-07-06 241: 目录列表 = document.getElementsByTagName("details")
bc10a7b5c0 2023-07-06 242:
bc10a7b5c0 2023-07-06 243: function 展开或收起() {
bc10a7b5c0 2023-07-06 244: if (目录列表[0].open == true) {
bc10a7b5c0 2023-07-06 245: for (i = 0;
bc10a7b5c0 2023-07-06 246: i < 目录列表.length;
bc10a7b5c0 2023-07-06 247: i++) {
bc10a7b5c0 2023-07-06 248: 目录列表[i].open = false;
bc10a7b5c0 2023-07-06 249: }
bc10a7b5c0 2023-07-06 250: }
bc10a7b5c0 2023-07-06 251: else {
bc10a7b5c0 2023-07-06 252: for (i = 0;
bc10a7b5c0 2023-07-06 253: i < 目录列表.length;
bc10a7b5c0 2023-07-06 254: i++) {
bc10a7b5c0 2023-07-06 255: 目录列表[i].open = true;
bc10a7b5c0 2023-07-06 256: }
bc10a7b5c0 2023-07-06 257: }
bc10a7b5c0 2023-07-06 258: }
bc10a7b5c0 2023-07-06 259:
bc10a7b5c0 2023-07-06 260: </script>
bc10a7b5c0 2023-07-06 261: </body>
bc10a7b5c0 2023-07-06 262: </html>