
Hi Roll20 community,
based on several character generator, i've seen in this forum (credit to everyone), i created one with a certain degree of reuse in mind.
Please bear with me, because my javascript knowledge is a little rusty.
I started my script with a huge block containing various set of abilities and attributes, followed by some helper methods.
Every function should have some comments associated with it. If i missed some, i apologize. It was late in Germany.
To allow switching of classes for specific characters, i have added a chat command, which uses the character name and a class to switch to.
The usage is "!skill <charName> <charClass>
A major drawback is currently the fact, that changes in the abilities are overridden.
I will think on a way to overcome the drawback, for now is has to work this way.
Perhaps someone can give me some advice on how to do it properly.
And as always, please provide your suggestions or critism
Look at my reply for the link to the github gist
Happy scripting :-D