游戏王残局简化版

卡组测试教程.html at [4a27d51db9]
Login

卡组测试教程.html at [4a27d51db9]

File single_doc/卡组测试教程.html artifact 1da5708093 part of check-in 4a27d51db9


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang xml:lang>
<head>
  <meta charset="utf-8" />
  <meta name="generator" content="pandoc" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
  <title>卡组测试教程</title>
  <style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}

ul.task-list[class]{list-style: none;}
ul.task-list li input[type="checkbox"] {
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"
  || target.tagName == "CODE") {
    if (window.getSelection().toString() !== "") {
      return
      }
    var range = document.createRange();
    range.selectNodeContents(target);
    window.getSelection().removeAllRanges();
    window.getSelection().addRange(range);
    var successful = document.execCommand("copy");
    target.removeAttribute("contenteditable");
    window.getSelection().removeAllRanges();
    }

  }


目录列表 = document.getElementsByTagName("details")

function 展开或收起() {
  if (目录列表[0].open == true) {
    for (i = 0;
      i < 目录列表.length;
      i++) {
      目录列表[i].open = false;
      }
    }
  else  {
    for (i = 0;
      i < 目录列表.length;
      i++) {
      目录列表[i].open = true;
      }
    }
  }

</script>
</body>
</html>