I'm trying to set up a character creation event system. I'm setting parameters at 2d6+6 which isn't hard to do once. My problem comes when I allow an option for the player to reroll the character if he doesn't like the build. I need to reset the basic parameters to 6. I can't seem to find a way to do it.
Is there a way to set an actor's parameter to a particular number?
RPG Maker VXAce Support-Store Hero's ATK value in a variable.
-Reduce Hero's ATK by the value of that variable.
-Increase Hero's ATK by 6.
-Reduce Hero's ATK by the value of that variable.
-Increase Hero's ATK by 6.
you need scripts to do that.
In default (without script rewriting the engine) all parameters are level-based and fixed. You set the formulas in the classes tab of the database.
Theoretically you could set the formulas to minimum values and use events and event commands to change the value - but that still is limited to the genneral number range of the default. And all defaults are usually working with higher numbers (MaxHP can go up to 9999).
There are scripts that can change those limits - but you should always keep in mind that some values like Agility and Luck have ingame-functions, if you set them to bad values the game might react in different ways than you like. But there are scripts to change that as well.
Edit:
The post above mine is an example how you could manipulate the values.
However, if you really want to make an creation system with that low numbers, you'll probably have to rewrite every damage formula in the skills (default damage is 4 times actor ATK minus 2 times enemy DEF, which gets distracted from HP - if ATK, DEF and HP for both actor and monster are set in the range of 8 to 18, then the battles with default formulas will be very randomized and either very short (ATK 18 against DEF 8 will reduce 56 damage in one hit, bad if HP is also 8-18) or impossible to win (ATK 8 against DEF 18 will never cause damage).
In default (without script rewriting the engine) all parameters are level-based and fixed. You set the formulas in the classes tab of the database.
Theoretically you could set the formulas to minimum values and use events and event commands to change the value - but that still is limited to the genneral number range of the default. And all defaults are usually working with higher numbers (MaxHP can go up to 9999).
There are scripts that can change those limits - but you should always keep in mind that some values like Agility and Luck have ingame-functions, if you set them to bad values the game might react in different ways than you like. But there are scripts to change that as well.
Edit:
The post above mine is an example how you could manipulate the values.
However, if you really want to make an creation system with that low numbers, you'll probably have to rewrite every damage formula in the skills (default damage is 4 times actor ATK minus 2 times enemy DEF, which gets distracted from HP - if ATK, DEF and HP for both actor and monster are set in the range of 8 to 18, then the battles with default formulas will be very randomized and either very short (ATK 18 against DEF 8 will reduce 56 damage in one hit, bad if HP is also 8-18) or impossible to win (ATK 8 against DEF 18 will never cause damage).
Thanks Milenin. It worked like a charm.
@Andar I get what you're saying. Low with a wide variance might be tough to balance. I'm tinkering with some ideas there. It's certainly something to keep in mind. Thanks for the input.
@Andar I get what you're saying. Low with a wide variance might be tough to balance. I'm tinkering with some ideas there. It's certainly something to keep in mind. Thanks for the input.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-set-an-actors-parameter-to-a-particular-number.15659/