Proof of concept for html5 hero system 6e campaign aid
https://svonberg.org/wp-content/uploads/2025/12/hero6eSupersV20.html
Hero Campaign Manager (v20) – User Manual
1. Getting Started
This application is a Single Page Application (SPA) contained entirely within one HTML file. It requires no internet connection, no server, and no installation.
How to Install
* Save the File: Save the code block from the previous message as Hero_Campaign_Manager.html.
* Open: Double-click the file on your computer, or open it on your smartphone/tablet.
* Mobile Tip: On iPhone/Android, you can use “Add to Home Screen” in your browser options to turn it into a dedicated app icon.
2. Navigation
The interface is divided into two main navigation bars:
* Top Roster Bar: This is your “Character Select.”
* Scott, Minimax (Will), Trism: The Player Characters (PCs).
* Agent, Alien, Cop, Titan, Thug: The Non-Player Characters (NPCs).
* 🛠 GM: The Game Master’s control center.
* Tip: The bar scrolls horizontally if you have many characters.
* Bottom Menu Bar: This changes based on who you have selected. It controls the specific “Tabs” for that character (e.g., Stats, Powers, Combat, Bio).
3. Character Sheet Features
Every character (PC and NPC) shares these interactive features:
A. Vital Statistics (Interactive)
At the top of every sheet are the STUN, BODY, and END trackers.
* Taking Damage: Tap the [-] button to lower the stat.
* Healing: Tap the [+] button to raise it.
* Note: These numbers reset if you refresh the page.
B. Status Toggles
Below the vitals are buttons for Stunned, Aborted, and Flashed.
* Tap to toggle them Red/Active.
* This is a visual reminder only; it does not mechanically stop you from rolling dice.
C. Click-to-Roll Skills
In the Stats or Rolls tab:
* Tap any button like [Stealth 14-] or [Perception 12-].
* The Result Banner: A banner will appear at the top of the screen showing:
* The total rolled on 3d6.
* Success or Failure.
* The “Margin of Success” (e.g., “Made it by 3”).
D. Click-to-Roll Powers
In the Powers or Combat tab:
* Attacks (like “Gravity Gun” or “Bear Punch”) are clickable buttons.
* Tapping them rolls the damage automatically (Normal or Killing).
* The result (Body/Stun) appears in the banner at the top.
E. The “Recover” Button (❤)
Located in the bottom right of the PC navigation bar.
* Tap Once: Instantly adds your REC score to your current STUN and END.
* Visual Feedback: The Stun/End boxes will flash green to confirm the recovery.
F. Notes (Auto-Save)
The Notes tab contains a text area.
* Anything you type here is saved to your browser’s Local Storage.
* If you close the browser and come back later, your notes will still be there.
4. GM Tools (The 🛠 Tab)
The GM tab is designed to help run the game flow.
A. The Speed Chart (Tracker)
* Segment Counter: Tap the large number at the top to advance the turn (1 to 12).
* Visual Grid: As you advance the segment, the corresponding column in the Speed Chart highlights Purple.
* Who Acts? Anyone with an “X” in the highlighted column has a Phase.
B. Dice Rollers (Calculators)
* Hit Location: Rolls 3d6 and tells you the location (e.g., “13: Vitals”) and the damage multipliers.
* Reaction Roll: Randomly determines NPC attitude (Hostile to Helpful).
* Damage Rollers: Enter the number of dice (e.g., 10) and tap “Roll”. It calculates Total Body and Total Stun automatically.
* Knockback (KB): Enter the Body damage taken. Tap “Calc KB” to subtract 2d6 and see how many meters the target flies.
C. Reference Tables
Static charts for quick lookups during play:
* Modifiers: Range, Darkness, Cover penalties.
* Falling Damage: How much damage you take for falling X meters.
* Object Body/Def: How hard it is to break a wall or door.
* Maneuvers: OCV/DCV modifiers for Dodge, Block, Grab, etc.
5. Editing & Customizing
Since this is a single HTML file, you can edit it with any text editor (Notepad, VS Code).
* To Change Stats: Search for id=”scott-stun-val” and change the number inside the tag (e.g., <h3>45</h3>).
* To Add Skills: Copy an existing <div class=”roll-btn” …> line and change the name and the target number in the onclick function (e.g., rollSkillCheck(14, ‘scott’)).
* To Add Characters: Copy an entire char-wrapper div and rename the ID (e.g., id=”char-newguy”). You must also add a button to the top roster-bar.
6. Troubleshooting
* “My notes disappeared!”: Notes are saved to the specific browser you are using. If you open the file in Chrome, write notes, and then open it in Safari, the notes won’t transfer. Clearing your browser cache/cookies will delete the notes.
* “The layout looks weird”: Ensure you are viewing it on a screen with a width of at least 320px (standard smartphone). It works best in portrait mode on mobile or a narrow window on desktop.