Need help with states

Demonboy75

Warper
Member
Joined
Mar 5, 2018
Messages
4
Reaction score
3
First Language
English
Primarily Uses
RMVXA
So I'm working on a game and one of my ideas for a mechanic is called "Attack Flavor."
Basically, to spice up how attacking works, attacking will open up Yanfly's Input Combo window, and four options will be available.
A regular attack.
A power booster, which incrementally boosts attack power but lowers accuracy in return.
An evasion booster, which will increase evasion to a maximum 80%.
And an accuracy and defense booster, which when used three times will act as a guard button (negating the need for an actual guard button).

So what I want to know is how can I make an attack apply these different states based on the number of times it is used?
For example:
When the power booster is used once, I want to multiply ATK by 125%, but decrease hit rate by 10% (9/10 chance to hit).
Then, when used twice, it will multiply ATK by 155%, but decrease hit rate by 33% (2/3 chance to hit).
Then, when used thrice, it will multiply ATK by 200% (x2 damage!) and increase critical rate by 20% (1/5 chance to crit), but will decrease the hit rate by 80% (1/5 chance to hit, therefore 1/25 or 4% chance to hit and crit).
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
'Game Mechanics Design' is for looking at aspects of game play at a more conceptual level. "How do I...?" (implementation) questions belong in the Support forum for the engine you are using.

[move]RPGMaker VX Ace[/move]
 

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
I wrote a script that allows this: State Stages (Need to fix the description)
You can try your hand at Stacking States by NeonBlack
There's also Stacking States by @TheoAllen

My script allows you to link existing or virtual states together. It's quite versatile if you can figure out how to set it up.

The two stacking state scripts will allow for multiple instances of the same state. They're mostly identical with some technical difference. You may need to reconsider the math of your states though.
 
Last edited:

Demonboy75

Warper
Member
Joined
Mar 5, 2018
Messages
4
Reaction score
3
First Language
English
Primarily Uses
RMVXA
Your script is perfectly what I needed to execute what I had planned!
Thank you.

But, uh, I'm planning to sell this game that I'm making commercially. As long as your name is listed in the credits under scripting, do you mind if I use this? What's more, if you give me permission, do you want me to list your real name or alias (unless Rinobi is your real name)?
 

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
Yes, you have my permission to use it for commercial purposes, just list my alias.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top