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