I use a frame-based html character sheet for all of my campaigns, and typically, I just play in a game that tracks hit points rather abstractly (take 12 damage, 30 hit points left) sort of thing. However, I'm currently experimenting with a few other tracking types and I'm looking for some ideas on how to get this to physically represent itself in html.
If you've played Shadowrun 5e (or Anarchy), or possibly even earlier versions, you have 'boxes' of 'damage' in a table format; multiple rows of 3 boxes. Not quite as complicated as white wolf, you merely fill the boxes from left to right, and when a row is full, you drop down to the next row.
I'm looking for suggestions of how to tackle this problem and make it show up in this particular pattern. I can use foreach and similar macro language, but I'm not exactly sure how I would use such a thing to form a table? Or perhaps there's an easier approach I'm overlooking.
Any constructive input would be welcome.
Frame + Html + special damage tracking
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
- Xaelvaen
- Dragon
- Posts: 498
- Joined: Wed Aug 31, 2011 9:49 pm
- Location: Somewhere between Heaven and Hell
Frame + Html + special damage tracking
"An arrogant person considers himself perfect. This is the chief harm of arrogance. It interferes with a person's main task in life - becoming a better person." - Leo Tolstoy
Re: Frame + Html + special damage tracking
I would probably use radio buttons to set the level of injury. You can use one big one or break it up in to multiple to represent the injury level.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
- JamzTheMan
- Great Wyrm
- Posts: 1872
- Joined: Mon May 10, 2010 12:59 pm
- Location: Chicagoland
- Contact:
Re: Frame + Html + special damage tracking
Couldn't you also just use <table> elements with borders to draw x squares? (then use hyperlinks or buttons or images, what ev in side)
For my WoD framework, I actually just created 3 square images, a blank box, one with a slash, one with an X. (since we have a 3 state checkbox here). I then just had a for loop to display said appropriate images. Upside, worked in chat as well...
For my WoD framework, I actually just created 3 square images, a blank box, one with a slash, one with an X. (since we have a 3 state checkbox here). I then just had a for loop to display said appropriate images. Upside, worked in chat as well...
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
- Xaelvaen
- Dragon
- Posts: 498
- Joined: Wed Aug 31, 2011 9:49 pm
- Location: Somewhere between Heaven and Hell
Re: Frame + Html + special damage tracking
I like this idea a lot - I could just set up the images on if statements drawn from a string list. Thanks Jamz - perfect for my html sheet.JamzTheMan wrote:Couldn't you also just use <table> elements with borders to draw x squares? (then use hyperlinks or buttons or images, what ev in side)
For my WoD framework, I actually just created 3 square images, a blank box, one with a slash, one with an X. (since we have a 3 state checkbox here). I then just had a for loop to display said appropriate images. Upside, worked in chat as well...
"An arrogant person considers himself perfect. This is the chief harm of arrogance. It interferes with a person's main task in life - becoming a better person." - Leo Tolstoy