游戏王残局简化版

Diff
Login

Diff

Differences From Artifact [1da5708093]:

To Artifact [5bd56352b0]:


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144





145


146
147
148
149
150
151
152
153
154
155
156
157
158
159
160

161
162
163

164
165
166
167
168
169
170
171
172
173

174
175
176
177
178
179
180
181
182
183
184
185
186
187
188

189
190
191
192

193
194
195
196
197
198
199
200

201
202
203
204
205
206
207
208
209

210
211
212
213
214
215

216
217
218
219
220
221
222
223
224
font-size: inherit;
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
  <style type="text/css">
@media screen and (min-aspect-ratio:1/1) {
html {
background-color: f8f8f8;
background-image:
linear-gradient(
45deg,
#eee 25%,
transparent 25%,
transparent 75%,
#eee 75%),
linear-gradient(
45deg,
#eee 25%,
transparent 25%,
transparent 75%,
#eee 75%);
background-size: 8px 8px;
background-position: 0 0, 16px 8px;
}
body {
border: solid #a0a0a0 1px ;
border-radius: 20px ;
padding: 26px ;
margin: 16px ;
color: #101010 ;
background-color: #efefef;
padding: 2em 18%;
}
}
h1,h2,h3,h4,h5,h6 {
font-size: 1.5em;
color: #3F5770;
border-bottom: 0.1em solid #666666;
margin: 1.2em 0em;
}
a {
list-style: none;
border-right: 0.3em solid #5183C466;
border-left: 0.3em solid #5183C466;
padding: 0.2em 0.4em;
margin-bottom: 0.2em;
margin-top: 0.3em;
background-color: white;
text-decoration-color: blue;
}
a:visited {
color: blue;
text-decoration-color: white;
}
nav ul li {
margin: 1.2em 0em;
}
p::before {
content: "  ";
}
p {
margin: 1.2em 0;
}
.title {
background-color: white;
font-size: 2em;
text-align: center;
}
b {
background-color: white;
list-style: none;
border-right: 0.3em solid #5183C466;
border-left: 0.3em solid #5183C466;
padding: 0.2em 0.4em;
margin-bottom: 0.2em;
margin-top: 0.3em;
}
details > summary {
list-style: none;
border-right: 0.3em solid #5183C466;
border-left: 0.3em solid #5183C466;
padding: 0.2em 0.4em;
margin-bottom: 0.2em;
margin-top: 0.3em;
}
details > summary:active {
transform:
rotateX(38deg)
translateY(7px);
}
pre {
background: #f6f6f6;
border-left: 0.5em solid #ccc;
padding: 0.4em;
border-radius: 0.2em;
}
pre:active {
transform:
rotateX(38deg)
translateY(7px);
}
code {
font-family: "Verdana";
}
button {
background: #ffffff;
color: #20894d;
}
button:active {
transform:
rotateX(38deg)
translateY(7px);
}
</style>
  <!--[if lt IE 9]>
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
  <![endif]-->
</head>
<body>
<header id="title-block-header">
<h1 class="title">卡组测试教程</h1>
</header>
<details>
<summary>
前言





</summary>


<p>有人想用残局,进行卡组<b>测试</b>。</p>
<p>鄙人在此提供些微帮助。</p>
</details>
<details>
<summary>
开局添加手卡
</summary>
<pre><code>--~ 必须位于残局文件顶部
--~ 加载残局函数库
Debug.AddCard(0
  , 0
  , 0
  , LOCATION_MZONE
  , -1
  , POS_FACEUP)</code></pre>

<p>这段加载代码应放于残局文件顶部,才可使用所有功能。</p>
<pre><code>--~ 必须位于残局文件底部
fun[&quot;开局添加手卡&quot;](6)</code></pre>

<p>数字可改。</p>
<p><b>注意:这项功能依赖于残局函数库。</b></p>
<p><b>具体来说,就是要安装「游戏王残局简化版」。</b></p>
</details>
<p><b>☞ 以下内容不够重要,可以忽略</b></p>
<details>
<summary>
开启多回合
</summary>
<pre><code>aux.BeginPuzzle()</code></pre>

<p>它注册了三个效果:</p>
<ol type="1">
<li>跳过抽卡阶段</li>
<li>跳过准备阶段</li>
<li>结束阶段时,玩家血量<b>归零</b></li>
</ol>
去掉这一代码,便可开启多回合。
</details>
<details>
<summary>
完全操控 AI
</summary>
<pre><code>Debug.ReloadFieldBegin(
  DUEL_ATTACK_FIRST_TURN
  + DUEL_SIMPLE_AI

  , 5)</code></pre>
<p><b>去除</b>特定参数即可。</p>
<pre><code>Debug.ReloadFieldBegin(
  DUEL_ATTACK_FIRST_TURN

  , 5)</code></pre>
</details>
<p><b>☞ 以下内容不够重要,可以忽略</b></p>
<details>
<summary>
控制抽卡数量
</summary>
<pre><code>Debug.SetPlayerInfo(0,0,0,0)</code></pre>

最后一个参数控制<b>每</b>回合抽卡数量。
</details>
<details>
<summary>
伪洗牌
</summary>
<pre><code>Debug.ReloadFieldBegin(
  DUEL_ATTACK_FIRST_TURN
  + DUEL_SIMPLE_AI

  , 5)</code></pre>
<p><b>添加</b>特定参数即可。</p>
<pre><code>Debug.ReloadFieldBegin(
  DUEL_ATTACK_FIRST_TURN
  + DUEL_SIMPLE_AI
  + DUEL_PSEUDO_SHUFFLE

  , 5)</code></pre>
</details>
<script>

document.onclick = function(event) {

  var target = event.target

  if (target.tagName == "PRE"







<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<








|
|
|
>
>
>
>
>
|
>
>


<
<
<
|
<



|
|
|
|
|
>


|
>



<

<
<
|
<
|
>






|
<
<
<
|
<

|
|
>
|


|
>
|
<

<
<
|
<
|
>
|
<
<
<
|
<

|
|
>
|


|
|
|
>
|
<







17
18
19
20
21
22
23

24












































































































25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45



46

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

63


64

65
66
67
68
69
70
71
72
73



74

75
76
77
78
79
80
81
82
83
84

85


86

87
88
89



90

91
92
93
94
95
96
97
98
99
100
101
102

103
104
105
106
107
108
109
font-size: inherit;
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>

  <style type="text/css">@media screen and (min-aspect-ratio:1/1) {html {background-color: f8f8f8;background-image:linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%), linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%);background-size: 8px 8px;background-position: 0 0, 16px 8px;}body {border: solid #a0a0a0 1px ;border-radius: 20px ;padding: 26px ;margin: 16px ;color: #101010 ;background-color: #efefef;padding: 2em 18%;}}h1,h2,h3,h4,h5,h6 {font-size: 1.5em;color: #3F5770;border-bottom: 0.1em solid #666666;margin: 1.2em 0em;}a {list-style: none;border-right: 0.3em solid #5183C466;border-left: 0.3em solid #5183C466;padding: 0.2em 0.4em;margin-bottom: 0.2em;margin-top: 0.3em;background-color: white;text-decoration-color: blue;}a:visited {color: blue;text-decoration-color: white;}a:active {color: red;}nav ul li {margin: 1.2em 0em;}p::before {content: "  ";}p {margin: 1.2em 0;}.title {background-color: white;font-size: 2em;text-align: center;}b {background-color: white;list-style: none;border-right: 0.3em solid #5183C466;border-left: 0.3em solid #5183C466;padding: 0.2em 0.4em;margin-bottom: 0.2em;margin-top: 0.3em;}details > summary {list-style: none;border-right: 0.3em solid #5183C466;border-left: 0.3em solid #5183C466;padding: 0.2em 0.4em;margin-bottom: 0.2em;margin-top: 0.3em;}details > summary:active {color: red;}pre {background: #f6f6f6;border-left: 0.5em solid #ccc;padding: 0.4em;border-radius: 0.2em;overflow-wrap:break-word;}pre:active {color: red;}code {font-family: "Verdana";}button {background: #ffffff;color: #20894d;}button:active {color: red;}</style>












































































































  <!--[if lt IE 9]>
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
  <![endif]-->
</head>
<body>
<header id="title-block-header">
<h1 class="title">卡组测试教程</h1>
</header>
<nav id="TOC" role="doc-toc">
<ul>
<li><a href="#前言" id="toc-前言"><span class="toc-section-number">1</span> 前言</a></li>
<li><a href="#开局添加手卡" id="toc-开局添加手卡"><span class="toc-section-number">2</span> 开局添加手卡</a></li>
<li><a href="#开启多回合" id="toc-开启多回合"><span class="toc-section-number">3</span> 开启多回合</a></li>
<li><a href="#完全操控-ai" id="toc-完全操控-ai"><span class="toc-section-number">4</span> 完全操控 AI</a></li>
<li><a href="#控制抽卡数量" id="toc-控制抽卡数量"><span class="toc-section-number">5</span> 控制抽卡数量</a></li>
<li><a href="#伪洗牌" id="toc-伪洗牌"><span class="toc-section-number">6</span> 伪洗牌</a></li>
</ul>
</nav>
<h1 data-number="1" id="前言"><span class="header-section-number">1</span> 前言</h1>
<p>有人想用残局,进行卡组<b>测试</b>。</p>
<p>鄙人在此提供些微帮助。</p>



<h1 data-number="2" id="开局添加手卡"><span class="header-section-number">2</span> 开局添加手卡</h1>

<pre><code>--~ 必须位于残局文件顶部
--~ 加载残局函数库
Debug.AddCard(0
, 0
, 0
, LOCATION_MZONE
, -1
, POS_FACEUP)
</code></pre>
<p>这段加载代码应放于残局文件顶部,才可使用所有功能。</p>
<pre><code>--~ 必须位于残局文件底部
fun[&quot;开局添加手卡&quot;](6)
</code></pre>
<p>数字可改。</p>
<p><b>注意:这项功能依赖于残局函数库。</b></p>
<p><b>具体来说,就是要安装「游戏王残局简化版」。</b></p>

<p><b>☞ 以下内容不够重要,可以忽略</b></p>


<h1 data-number="3" id="开启多回合"><span class="header-section-number">3</span> 开启多回合</h1>

<pre><code>aux.BeginPuzzle()
</code></pre>
<p>它注册了三个效果:</p>
<ol type="1">
<li>跳过抽卡阶段</li>
<li>跳过准备阶段</li>
<li>结束阶段时,玩家血量<b>归零</b></li>
</ol>
<p>去掉这一代码,便可开启多回合。</p>



<h1 data-number="4" id="完全操控-ai"><span class="header-section-number">4</span> 完全操控 AI</h1>

<pre><code>Debug.ReloadFieldBegin(
DUEL_ATTACK_FIRST_TURN
+ DUEL_SIMPLE_AI
, 5)
</code></pre>
<p><b>去除</b>特定参数即可。</p>
<pre><code>Debug.ReloadFieldBegin(
DUEL_ATTACK_FIRST_TURN
, 5)
</code></pre>

<p><b>☞ 以下内容不够重要,可以忽略</b></p>


<h1 data-number="5" id="控制抽卡数量"><span class="header-section-number">5</span> 控制抽卡数量</h1>

<pre><code>Debug.SetPlayerInfo(0,0,0,0)
</code></pre>
<p>最后一个参数控制<b>每</b>回合抽卡数量。</p>



<h1 data-number="6" id="伪洗牌"><span class="header-section-number">6</span> 伪洗牌</h1>

<pre><code>Debug.ReloadFieldBegin(
DUEL_ATTACK_FIRST_TURN
+ DUEL_SIMPLE_AI
, 5)
</code></pre>
<p><b>添加</b>特定参数即可。</p>
<pre><code>Debug.ReloadFieldBegin(
DUEL_ATTACK_FIRST_TURN
+ DUEL_SIMPLE_AI
+ DUEL_PSEUDO_SHUFFLE
, 5)
</code></pre>

<script>

document.onclick = function(event) {

  var target = event.target

  if (target.tagName == "PRE"