Offline
Did a test today and it seemed to work.
If you want to play along at home.
You will want to set your roll20 campaign to use the AS&SH character sheet.
Add a character named barbarian.
Next is the shitty part. You need the paid tier that lets you have access to the api. I double checked and that is the Pro tier, $90/year. I will see if there might be a way to do something similar for the free tier.
You will also need to add the ChatSetAttr api script.
Here is the markdown/yaml file I set through my program:
class: barbarian
name: Órlaith IngheanScannlán
level: 2
Race: Kimmeri-Kelt
Gender: female
ST: 14
DX: 13
CN: 16
IN: 14
WS: 11
CH: 13
HP: 22
HP_rolls:
- 12
- 8
Gear:
- <a>studded armour
- <a>small shield
- <hm>dagger
- <m>bastard sword
- <l>short bow
- arrow quiver
- arrows x12
- backpack
- bandages
- fishing net
- hunting horn
- soft leather pouch
- large sack
- torches x3
- wineskin (full)
Magic:
- Healing Potion, full 2d4+2 HP, half 1d4 HP
My program spat out this (I had to do some munging and such). Also, there is a character limit in chat (which I need to look up) so I did the character data setting in 5 line/command chunks:
!setattr --name barbarian --sel --missilehitbonus|+2
!setattr --name barbarian --sel --missileac|5
!setattr --name barbarian --sel --traumasurvive|85%
!setattr --name barbarian --sel --bonusmagspells|1st: 1
!setattr --name barbarian --sel --maxhench|6
!setattr --name barbarian --sel --bonusclerspells|0
!setattr --name barbarian --sel --armourdr|
!setattr --name barbarian --sel --movement|40
!setattr --name barbarian --sel --savingthrow|16
!setattr --name barbarian --sel --reactionmod|1
!setattr --name barbarian --sel --xp_needed|6,000
!setattr --name barbarian --sel --level|2
!setattr --name barbarian --sel --testdx|3:6
!setattr --name barbarian --sel --WS|11
!setattr --name barbarian --sel --class|barbarian
!setattr --name barbarian --sel --IN|14
!setattr --name barbarian --sel --meleeac|5
!setattr --name barbarian --sel --xp|3,000
!setattr --name barbarian --sel --race|Kimmeri-Kelt
!setattr --name barbarian --sel --dexdefbonus|0
!setattr --name barbarian --sel --featdx|8%
!setattr --name barbarian --sel --willmod|0
!setattr --name barbarian --sel --turningadj|0
!setattr --name barbarian --sel --fightingability|2
!setattr --name barbarian --sel --CH|13
!setattr --name barbarian --sel --devicebonus|+2
!setattr --name barbarian --sel --learnclerspell|50%
!setattr --name barbarian --sel --featst|8%
!setattr --name barbarian --sel --gender|female
!setattr --name barbarian --sel --avoidbonus|+2
!setattr --name barbarian --sel --align|Chaotic Good|Evil
!setattr --name barbarian --sel --tranformationbonus|+2
!setattr --name barbarian --sel --sorcerybonus|+2
!setattr --name barbarian --sel --testst|3:6
!setattr --name barbarian --sel --DX|13
!setattr --name barbarian --sel --poisonbonus|+1
!setattr --name barbarian --sel --ST|14
!setattr --name barbarian --sel --CN|16
!setattr --name barbarian --sel --hd|12
!setattr --name barbarian --sel --meleehitbonus|0
!setattr --name barbarian --sel --featcn|16%
!setattr --name barbarian --sel --age|16
!setattr --name barbarian --sel --hpbonus|+1
!setattr --name barbarian --sel --deathbonus|+2
!setattr --name barbarian --sel --langbonus|1
!setattr --name barbarian --sel --xp_bonus|No
!setattr --name barbarian --sel --testcn|3:6
Last edited by gizmomathboy (3/31/2020 2:24 pm)
Offline
I need to figure out weapons, equipment, spells, and the like, but the bare bones are there I think.
Offline
I found a firefox extension that I think will work with non-paid roll20, at least it does with my testing so far.
I had create and fill out a character sheet first to get the fields names and such it needs. So, I need to translate this to my program and such now.
Once I have something I'll let you all know.
Here is my test json file
Most of the values are valid but many are bogus. So caveat GM.
Offline
gizmomathboy wrote:
I found a firefox extension that I think will work with non-paid roll20, at least it does with my testing so far.
Wow, That's Awsome Gizmo!!
Offline
Well, I had a successful test upload with a json file I created, and I think I found some of the edges.
Now to find some others.
Last edited by gizmomathboy (4/09/2020 6:31 pm)
Offline
Ok, I wrote a blog post about how to go, generally, from my yaml file to a json file that can be imported.
Offline
Schiomancer is now a choice.
I also noticed that you could only select up through level 9. It's now 12 as it should have been.
Gloomhaunter should be done soonish.
Now to look at the spell lists and channel Black Adder and figure that out along with default starting pack.
Offline
Excellent, thanks for the update!
Offline
And now gloomhaunter.
I think the "default" spells aren't getting put in the character sheets but I wasn't looking too closely.
Something to put on the TODO list.
Offline
I created one each of a 2nd-level Gloomhaunter and Sciomancer, and one odd thing is the link on the results pages for "Take the stats and create a pdf" takes you back to the initial generation page; the "create pdf with this stat block" link works properly, though (i.e., creates a form-fillable PDF character sheet).
For the Sciomancer, CN = 4, the HD type wasn't filled in, and the character had 0 HP. Oddly, my Gloomhaunter also had a CN = 4, and 5 HP. These were both generated using Method 3, Strictness 3.
Otherwise, everything looked good.
Offline
Ok, I'll see if I can find them in the log file and see what it did.
Offline
Ok, I got the hp thing sorted out. I didn't have the HD data in the sciomancer class. At all. So. yeah. garbage in, garbage out.
As for the "Take the stats and create a pdf" link.
I suppose I could take that choice out.
I think my intent was that you would copy the stats, go to that page, paste them in and add extra stuff. Which might not be what most folks would do.
Offline
gizmomathboy wrote:
Ok, I got the hp thing sorted out. I didn't have the HD data in the sciomancer class. At all. So. yeah. garbage in, garbage out.
Thank you!
gizmomathboy wrote:
As for the "Take the stats and create a pdf" link.
I suppose I could take that choice out.
I think my intent was that you would copy the stats, go to that page, paste them in and add extra stuff. Which might not be what most folks would do.
I don't think that was obvious, but one could always do the "add extra stuff" to the form-fillable PDF, right?
Offline
making some stuff "better"with regards to spells/spell info and...bards and shamans are gonna take some time to get correct.
The bastards draw from 2 lists...and the shaman pulls from 4(!) lists. I'm just gonna let it break, sorta for now. I think what will happen is no spell info (duration, range, page #, etc).
It isn't in the web app yet but I'm working on it in my command line app. With any luck it will get into the web app shortly.
I'm also thinking of making default spell lists for the fighter and thief subclasses. It will just be from the "base" lists they pull from. So fire thieves from pyromancers, ice lords from cryomancers, etc.
I walked into a can of worms tonight...
Offline
huh, it seems I had created most of the spell lists for most of the classes already.
I just had to add a few more. Some are a bit deficient. They aren't quite what they could/should be
Offline
Ok, here's my list of default spells for the various classes.
I welcome and pull requests or comments or recommendations (here or there).
The one thing I need to "fix" is to follow BlackAdder's "2 spells at 1st level for warlocks and legerdemainists and such". I like it.
I think I'll put in whatever progress for "non-flat percentage, random spell list distribution" I do here as well.
Offline
gizmomathboy, if I've already gushed elsewhere about the usefulness of your tools, allow me to do so again! Can I make a request? One of the more tedious aspects of adventure design is spellbook/prayerbook generation. I know you can use your tools to make a level-x sorcerer and get a spellbook that way, but something for just a spellbook (variables level and class) would be phenomenal.
Offline
You are most certainly welcome!
I think I can whip up something kinda quick if I just go with a flat probability distribution.
Whenever I get a weighted distribution that can be an option, too. That part will be some time off though :-)
Offline
Hard part, data entry, is done.
Offline
gizmomathboy wrote:
Hard part, data entry, is done.
Smashing! Can't wait to make those libraries of background books a potential gold mine
gizmomathboy wrote:
flat probability distribution
I prefer that. I have this notion of making the free spells one gets at level up half random, to encourage sorcerers to go looking for spell-/prayerbooks and to not show their hand so freely with "good" spells.