Lines of
single_doc/卡组测试教程.html
from check-in 4a8edbf38c
that are changed by the sequence of edits moving toward
check-in e9ba599490:
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>
24: <style type="text/css">
25: @media screen and (min-aspect-ratio:1/1) {
26: html {
27: background-color: f8f8f8;
28: background-image:
29: linear-gradient(
30: 45deg,
31: #eee 25%,
32: transparent 25%,
33: transparent 75%,
34: #eee 75%),
35: linear-gradient(
36: 45deg,
37: #eee 25%,
38: transparent 25%,
39: transparent 75%,
40: #eee 75%);
41: background-size: 8px 8px;
42: background-position: 0 0, 16px 8px;
43: }
44: body {
45: border: solid #a0a0a0 1px ;
46: border-radius: 20px ;
47: padding: 26px ;
48: margin: 16px ;
49: color: #101010 ;
50: background-color: #efefef;
51: padding: 2em 18%;
52: }
53: }
54: h1,h2,h3,h4,h5,h6 {
55: font-size: 1.5em;
56: color: #3F5770;
57: border-bottom: 0.1em solid #666666;
58: margin: 1.2em 0em;
59: }
60: a {
61: list-style: none;
62: border-right: 0.3em solid #5183C466;
63: border-left: 0.3em solid #5183C466;
64: padding: 0.2em 0.4em;
65: margin-bottom: 0.2em;
66: margin-top: 0.3em;
67: background-color: white;
68: text-decoration-color: blue;
69: }
70: a:visited {
71: color: blue;
72: text-decoration-color: white;
73: }
74: nav ul li {
75: margin: 1.2em 0em;
76: }
77: p::before {
78: content: " ";
79: }
80: p {
81: margin: 1.2em 0;
82: }
83: .title {
84: background-color: white;
85: font-size: 2em;
86: text-align: center;
87: }
88: b {
89: background-color: white;
90: list-style: none;
91: border-right: 0.3em solid #5183C466;
92: border-left: 0.3em solid #5183C466;
93: padding: 0.2em 0.4em;
94: margin-bottom: 0.2em;
95: margin-top: 0.3em;
96: }
97: details > summary {
98: list-style: none;
99: border-right: 0.3em solid #5183C466;
100: border-left: 0.3em solid #5183C466;
101: padding: 0.2em 0.4em;
102: margin-bottom: 0.2em;
103: margin-top: 0.3em;
104: }
105: details > summary:active {
106: transform:
107: rotateX(38deg)
108: translateY(7px);
109: }
110: pre {
111: background: #f6f6f6;
112: border-left: 0.5em solid #ccc;
113: padding: 0.4em;
114: border-radius: 0.2em;
115: }
116: pre:active {
117: transform:
118: rotateX(38deg)
119: translateY(7px);
120: }
121: code {
122: font-family: "Verdana";
123: }
124: button {
125: background: #ffffff;
126: color: #20894d;
127: }
128: button:active {
129: transform:
130: rotateX(38deg)
131: translateY(7px);
132: }
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>
4a8edbf38c 2023-07-06 139: <div class="title">
4a8edbf38c 2023-07-06 140: 卡组测试教程
4a8edbf38c 2023-07-06 141: </div>
142: <details>
143: <summary>
144: 前言
145: </summary>
146: <p>有人想用残局,进行卡组<b>测试</b>。</p>
147: <p>鄙人在此提供些微帮助。</p>
148: </details>
149: <details>
150: <summary>
151: 开局添加手卡
152: </summary>
153: <pre><code>--~ 必须位于残局文件顶部
154: --~ 加载残局函数库
155: Debug.AddCard(0
156: , 0
157: , 0
158: , LOCATION_MZONE
159: , -1
160: , POS_FACEUP)</code></pre>
161: <p>这段加载代码应放于残局文件顶部,才可使用所有功能。</p>
162: <pre><code>--~ 必须位于残局文件底部
163: fun["开局添加手卡"](6)</code></pre>
164: <p>数字可改。</p>
165: <p><b>注意:这项功能依赖于残局函数库。</b></p>
166: <p><b>具体来说,就是要安装「游戏王残局简化版」。</b></p>
167: </details>
168: <p><b>☞ 以下内容不够重要,可以忽略</b></p>
169: <details>
170: <summary>
171: 开启多回合
172: </summary>
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>
180: 去掉这一代码,便可开启多回合。
181: </details>
182: <details>
183: <summary>
184: 完全操控 AI
185: </summary>
186: <pre><code>Debug.ReloadFieldBegin(
187: DUEL_ATTACK_FIRST_TURN
188: + DUEL_SIMPLE_AI
189: , 5)</code></pre>
190: <p><b>去除</b>特定参数即可。</p>
191: <pre><code>Debug.ReloadFieldBegin(
192: DUEL_ATTACK_FIRST_TURN
193: , 5)</code></pre>
194: </details>
195: <p><b>☞ 以下内容不够重要,可以忽略</b></p>
196: <details>
197: <summary>
198: 控制抽卡数量
199: </summary>
200: <pre><code>Debug.SetPlayerInfo(0,0,0,0)</code></pre>
201: 最后一个参数控制<b>每</b>回合抽卡数量。
202: </details>
203: <details>
204: <summary>
205: 伪洗牌
206: </summary>
207: <pre><code>Debug.ReloadFieldBegin(
208: DUEL_ATTACK_FIRST_TURN
209: + DUEL_SIMPLE_AI
210: , 5)</code></pre>
211: <p><b>添加</b>特定参数即可。</p>
212: <pre><code>Debug.ReloadFieldBegin(
213: DUEL_ATTACK_FIRST_TURN
214: + DUEL_SIMPLE_AI
215: + DUEL_PSEUDO_SHUFFLE
216: , 5)</code></pre>
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>