Benutzer-Werkzeuge

Webseiten-Werkzeuge


charsheet:jolly

Shadowrun 6 Charakterbogen

Shadowrun 6 Charakterbasis
NameJolly
Reaktion2
Intuition3
Konstitution4
Willenskraft5

🎯 Eingabeformular

—- struct form —- schema: char_basis


🔢 Automatische Berechnung

<p><strong>Initiative:</strong> <span id=„initiative“>–</span></p> <p><strong>Körperlicher Monitor:</strong> <span id=„körperlich_monitor“>–</span></p> <p><strong>Betäubungsmonitor:</strong> <span id=„betäubungs_monitor“>–</span></p>

<script> document.addEventListener(„DOMContentLoaded“, function () {

  function parseNumber(selector) {
      const el = document.querySelector(selector);
      if (!el) return 0;
      const val = parseFloat(el.value || el.textContent || 0);
      return isNaN(val) ? 0 : val;
  }
  const reaktion = parseNumber('[name="reaktion"]');
  const intuition = parseNumber('[name="intuition"]');
  const konstitution = parseNumber('[name="konstitution"]');
  const willenskraft = parseNumber('[name="willenskraft"]');
  document.getElementById("initiative").textContent = reaktion + intuition;
  document.getElementById("körperlich_monitor").textContent = 8 + Math.ceil(konstitution / 2);
  document.getElementById("betäubungs_monitor").textContent = 8 + Math.ceil(willenskraft / 2);

}); </script>

charsheet/jolly.txt · Zuletzt geändert: 2025/05/12 12:53 von doc-admin