I am working on making a DnD style RPG game, complete with all 6 ability scores.
However the 6 ability scores don't really match up to RPG Maker's parameters, so I will need to change the behavior of various formulas, as each ability score is mapped to a different parameter in RPG Maker.
However, when planning it out, its not the most readable, for example a roll using charisma would be
instead I like to be more readable to something like, using some global constants and functions
where
CHARISMA is a global constant that would make user.params() map to the user.luc parameter.
and modifer() and roll() are global functions.
Is there a way to do this?
However the 6 ability scores don't really match up to RPG Maker's parameters, so I will need to change the behavior of various formulas, as each ability score is mapped to a different parameter in RPG Maker.
However, when planning it out, its not the most readable, for example a roll using charisma would be
Code:
(Math.floor((user.luk-10)/2)+Math.floor(Math.random(20))+1)
instead I like to be more readable to something like, using some global constants and functions
Code:
modifier(user.parms(CHARISMA)) + roll(20)
where
CHARISMA is a global constant that would make user.params() map to the user.luc parameter.
and modifer() and roll() are global functions.
Is there a way to do this?