Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Dungeons & Dragons
How do you program interactive character sheets?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Nytmare" data-source="post: 6053902" data-attributes="member: 55178"><p>I'll give you an example from one of my older 3.5 character sheets.</p><p></p><p>Hit points are just a number. I could just have a cell where I type in the number, but I want to be fancy cause I'm a glutton for punishment.</p><p></p><p>So first off, the sheet itself isn't where I type numbers in at all. I never know when I'm going to screw up and accidentally type over something important, so I make a separate form on a separate sheet in the workbook, where the only thing I'm doing is typing stuff in. I'll even go so far as to make all the cells where I want to type stuff in light green in case I get extra stupid.</p><p></p><p>Now, so that I can have a record of what choices I'm making when (and to make sure that I don't do something like gain hitpoints more than once by mistake) I'll have the form be set up so that I can input what choices and changes are made each level (like how many hitpoints I rolled) and have the sheet add those as well as auto-calculate how many hit points the character will gain from their con bonus.</p><p></p><p>Buuuuut, I still want to be a pain and add more. We use a Toughness house rule that gives you 1 hitpoint each level from the point where you take the feat on. So now I want to add something in that looks for the word "toughness" in the "Feat" section, and then adds 1 hitpoint every level after that. Now it's getting more complicated, so I add a new column next to the part of the form and have it check two things. #1 it checks to see if the cell next to it has the word "toughness" in it. If it does, it makes it's value 1. Also it checks to see if the cell directly above it is 1. If it is, that means that something spotted the word "toughness" somewhere above, so again, it makes its value 1. To do this as a single formula inside a cell, it means that I have to have an IF statement with a 2 query OR, a single FIND, and an ISERROR of the possible failed FIND statement in it.</p><p></p><p>Now, to be extra silly, I like to have checkmark bubbles for things like hitpoints and ammo. Granted I could do this by hand, but I'm enjoying the challenge, so I'm going to have a formula look at the number of hitpoints and use the REPT function to make 1 "O" for every hitpoint. </p><p></p><p>I like it, but I'd like it even more if I could split them up into groups of 5, and the formatting is weird with line breaks, especially once hitpoints reach the 30 or 40 mark, so I'll split it across two different cells, and it would be nice if I could figure out a way to...</p><p></p><p>In the end the formula for the two cells where hitpoint check bubbles are displayed is:</p><p></p><p>=IF(ROUNDDOWN(DO14/2/5,0),REPT("OOOOO ",ROUNDDOWN(DO14/2/5,0)),"")&IF(ROUNDUP(MOD(DO14/2,5),0),REPT("o ",ROUNDUP(MOD(DO14/2,5),0)),"")</p><p></p><p>and</p><p></p><p>=IF(ROUNDDOWN(DO14/2/5,0),REPT("OOOOO ",ROUNDDOWN(DO14/2/5,0)),"")&IF(ROUNDDOWN(MOD(DO14/2,5),0),REPT("o ",ROUNDDOWN(MOD(DO14/2,5),0)),"")</p><p></p><p>So yeah, totally my fault, but my character sheets when done straight with formulas meant that they were incredibly delicate, and they had a crazy learning curve that stopped me from being able to let my players fill stuff in for themselves. VBA let me pack stuff out of the way, let me program in an editor where I could use wordprocessor-esque commands, and gave me access to waaaaay more options and toys to pack into my sheets.</p></blockquote><p></p>
[QUOTE="Nytmare, post: 6053902, member: 55178"] I'll give you an example from one of my older 3.5 character sheets. Hit points are just a number. I could just have a cell where I type in the number, but I want to be fancy cause I'm a glutton for punishment. So first off, the sheet itself isn't where I type numbers in at all. I never know when I'm going to screw up and accidentally type over something important, so I make a separate form on a separate sheet in the workbook, where the only thing I'm doing is typing stuff in. I'll even go so far as to make all the cells where I want to type stuff in light green in case I get extra stupid. Now, so that I can have a record of what choices I'm making when (and to make sure that I don't do something like gain hitpoints more than once by mistake) I'll have the form be set up so that I can input what choices and changes are made each level (like how many hitpoints I rolled) and have the sheet add those as well as auto-calculate how many hit points the character will gain from their con bonus. Buuuuut, I still want to be a pain and add more. We use a Toughness house rule that gives you 1 hitpoint each level from the point where you take the feat on. So now I want to add something in that looks for the word "toughness" in the "Feat" section, and then adds 1 hitpoint every level after that. Now it's getting more complicated, so I add a new column next to the part of the form and have it check two things. #1 it checks to see if the cell next to it has the word "toughness" in it. If it does, it makes it's value 1. Also it checks to see if the cell directly above it is 1. If it is, that means that something spotted the word "toughness" somewhere above, so again, it makes its value 1. To do this as a single formula inside a cell, it means that I have to have an IF statement with a 2 query OR, a single FIND, and an ISERROR of the possible failed FIND statement in it. Now, to be extra silly, I like to have checkmark bubbles for things like hitpoints and ammo. Granted I could do this by hand, but I'm enjoying the challenge, so I'm going to have a formula look at the number of hitpoints and use the REPT function to make 1 "O" for every hitpoint. I like it, but I'd like it even more if I could split them up into groups of 5, and the formatting is weird with line breaks, especially once hitpoints reach the 30 or 40 mark, so I'll split it across two different cells, and it would be nice if I could figure out a way to... In the end the formula for the two cells where hitpoint check bubbles are displayed is: =IF(ROUNDDOWN(DO14/2/5,0),REPT("OOOOO ",ROUNDDOWN(DO14/2/5,0)),"")&IF(ROUNDUP(MOD(DO14/2,5),0),REPT("o ",ROUNDUP(MOD(DO14/2,5),0)),"") and =IF(ROUNDDOWN(DO14/2/5,0),REPT("OOOOO ",ROUNDDOWN(DO14/2/5,0)),"")&IF(ROUNDDOWN(MOD(DO14/2,5),0),REPT("o ",ROUNDDOWN(MOD(DO14/2,5),0)),"") So yeah, totally my fault, but my character sheets when done straight with formulas meant that they were incredibly delicate, and they had a crazy learning curve that stopped me from being able to let my players fill stuff in for themselves. VBA let me pack stuff out of the way, let me program in an editor where I could use wordprocessor-esque commands, and gave me access to waaaaay more options and toys to pack into my sheets. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Dungeons & Dragons
How do you program interactive character sheets?
Top