summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-11-08 02:22:51 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:18 +0100
commit51a0d654120adbed513ca4eb0743313eaa97551e (patch)
tree28873dc0c4a4d9dc522808480bb473bf3c7c044a
parent766e0f34680bc1ad2dfce8c5bdf16657e6343620 (diff)
downloadhammer-of-the-scots-51a0d654120adbed513ca4eb0743313eaa97551e.tar.gz
Describe "delay hits" option better.
-rw-r--r--create.html39
1 files changed, 29 insertions, 10 deletions
diff --git a/create.html b/create.html
index 719fa2e..963a647 100644
--- a/create.html
+++ b/create.html
@@ -7,25 +7,44 @@
<dd>Start as per Braveheart but is played until one player achieves victory.
</dl>
-<p>
-<label><input type="checkbox" id="schiltroms" name="schiltroms" value="true">
-Schiltroms:
+<dl>
+<dt>
+<label>
+<input type="checkbox" id="schiltroms" name="schiltroms" value="true">
+Schiltroms
+<dd>
Scottish infantry fire at +1 when the English have no archers.
</label>
+</dl>
-<p>
-<label><input type="checkbox" id="delay_hits" name="delay_hits" value="true">
-Delay hit assignment until all blocks with the same initiative have fired.
+<dl>
+<dt>
+<label>
+<input type="checkbox" id="delay_hits" name="delay_hits" value="true">
+Delay hit assignment
</label>
+<dd>Let all blocks with the same initiative fire before assigning hits.
+<dd>This option is recommended for games that are not played live.
-<br>
-<label><input type="checkbox" id="autohit" name="autohit" value="true">
+<dt>
+<label>
+<input type="checkbox" id="autohit" name="autohit" value="true">
Automatically assign hits when possible.
</label>
+<dd>
+<i class="warning" id="warning"></i>
+</dl>
<script>
let cb1 = document.getElementById("autohit")
let cb2 = document.getElementById("delay_hits")
-cb1.onchange = function () { if (cb1.checked) cb2.checked = false }
-cb2.onchange = function () { if (cb2.checked) cb1.checked = false }
+let msg = document.getElementById("warning")
+function warn_opts() {
+ if (cb1.checked)
+ msg.textContent = "Tip: Delay hit assignment is a better option for async play."
+ else
+ msg.textContent = ""
+}
+cb1.onchange = function () { if (cb1.checked) cb2.checked = false; warn_opts() }
+cb2.onchange = function () { if (cb2.checked) cb1.checked = false; warn_opts() }
</script>