So what I'm trying to do is, at the beginning of the battle (turn 0), the game checks a variable set previously (this part is working), and then applies a state specific to that choice. For some reason, however, my game doesn't seem to wanna do any kind of change state commands, nor will it play animations. I don't have any plugins yet, so the game system is purely default. It WILL however, apply parameter changes and run text. Any thoughts? I'm running all of the commands through the specific Troop.
Newbie needs help. (Applying states at beginning of battle)
RPG Maker MZ SupportWe'll need to see how you've set up the troops and the events with screenshots so we can see if their is any errors.
But by default, applying states don't have their own animations.
But if you want states applied before the start of battle you would need something like this:
Troop page 1.
Turn 0
Conditional Branch. Variable if = X then
Change State, all members
Or if you want an animation to play,
Troop page 1.
Turn 0
Conditional Branch. Variable if = X then
Force action, "State applying skill."
(Make the scope target all allies)
But by default, applying states don't have their own animations.
But if you want states applied before the start of battle you would need something like this:
Troop page 1.
Turn 0
Conditional Branch. Variable if = X then
Change State, all members
Or if you want an animation to play,
Troop page 1.
Turn 0
Conditional Branch. Variable if = X then
Force action, "State applying skill."
(Make the scope target all allies)
Here's what I have right now, as well as the state itself. The text will play, but the animation won't run and the state won't change. The parameter will change though.
The animation doesn't appear because you have selected "Show Animation". That one only work on the map. To do this in a battle you must use "Show Battle Animation" (you'll find it on the third page of event commands).
As for the state. I've noticed you used the command "Recover All". That might actually be erasing your added state. Try using that before adding the state itself.
As for the state. I've noticed you used the command "Recover All". That might actually be erasing your added state. Try using that before adding the state itself.
Ah, you were right about Recover All. I was recommended to use recover all because the state itself acts as a kind of 'maximizer', boosting the stats of the character for the duration of the one battle. HP wouldn't go to its new max though, hence the recovery. What do you suggest I use to 'heal' after the state is applied?
Also, Show Battle Animation puts the animation on the enemy. Any way to apply it to my character?
Also, Show Battle Animation puts the animation on the enemy. Any way to apply it to my character?
Glad that one's out of the way!
Well since Recover All erased the state as well you'd have to use the commands "Change HP" and "Change MP" (1st page in event commands).
Just add a huge value that will be enough to fill the new Max HP/Mp. Also be sure to only choose the one character you want to be affected, or the whole party will get healed.
Well since Recover All erased the state as well you'd have to use the commands "Change HP" and "Change MP" (1st page in event commands).
Just add a huge value that will be enough to fill the new Max HP/Mp. Also be sure to only choose the one character you want to be affected, or the whole party will get healed.
I'll do that. Thanks for the help!
Nope. This is a bizarre hole in the event commands – there's no way to show an animation on an actor in battle.
If you need an animation on an actor, what I'd recommend doing is to rewrite the whole thing to use skills. Make a skill that applies the state and does whatever else you need, including an animation, and then just use Force Action to make that skill happen.
Alternatively, you could use a script call to show the animation. I don't have the exact script call handy, but you could look it up in the pinned thread.
Original thread: https://forums.rpgmakerweb.com/threads/newbie-needs-help-applying-states-at-beginning-of-battle.183211/