Training Dummy Battle

I have a question about urging the character to use a certain action.

Let's go into more detail.

The main character is currently learning how to fight. So, he is  put up against a Training Dummy. It has a crazy amount of HP that you couldn't possibly wither down to 0 with the training sword you are given to train with. 

What I'd like to know is, how can we urge the player to use a certain action?

URGE. Not force.

Think of it like this.

Trainer - "Blah blah use guard to block attacks! Try that now! Blah blah"

*character selects attack instead of guard (unscripted, he did it out of curiosity. "I wonder what will happen if I press attack when he told me to do something else?" is something almost every gamer thinks of)

Trainer - "No, no! That's not right! You were meant to guard! Try it now!"

I want it to be so that no matter how many times the player presses the wrong button, the trainer will just say "No, no etc"

Is it possible to do such a thing?

Thanks in advance!  😀
yes and no - it'll be tricky with eventing and databasing alone, but it should be no problem if you add a script for the check.
Depends on how many options the player has available to them. If it's just guard and attack, simply use a conditional branch to check if the player has the guard state inflicted.
Depends on how many options the player has available to them. If it's just guard and attack, simply use a conditional branch to check if the player has the guard state inflicted.
Can you please explain to me how to do that?
Condition = When the end of the turn.

Span = Turn

CombatEvent.PNG

While posting this, I noticed that my Guard skill lasts 2 turns ( for balance purposes), it's entirely possible that this event won't catch the guard state before its removed. If that's the case, you'll have to find another way to check if the player used guard.

Edit: An easy way to do this without altering the guard function. Create a second guard state and have it last, 2 turns. Don't give it any icons or text. Add it to your Guard Skill and have the above event check for that state instead. You'll be able to re-use it for other guard-related text later (if you so desire).
Condition = When the end of the turn.

Span = Turn

attachicon.gif
CombatEvent.PNG

While posting this, I noticed that my Guard skill lasts 2 turns ( for balance purposes), it's entirely possible that this event won't catch the guard state before its removed. If that's the case, you'll have to find another way to check if the player used guard.
Thanks for the help! I'll see if it works soon 🙂
Oooo this post is beyond helpful 🙂 , I've been wondering about this for awhile. 
Now I have another question. How can I URGE the player to hit a certain enemy?

Let's say the trainer wants to teach him how to select a target once Attack is selected.

"Now, I want you to attack Training Dummy B, think you can do it?"

How can we make sure the player attacks the correct dummy?

Thanks in advance!  😀
As soon as you run the event that says "you should hit Training Dummy B", set a variable to Training Dummy B's HP (this can be done in "Control Variables").  At the end of the turn (or whenever), set a second variable to Training Dummy B's HP, and if it's lower, you know that the player hit it, so say "good job".  If it's the same, say "you didn't listen to me".

If you need to specifically check for an attack rather than just any source of damage, you would need to add an invisible (priority 0) state with the attack command that does nothing, and check for that state on Training Dummy B.

All kinds of similar stuff is doable if you're clever enough with switches, variables and states.  Just logically think through "how can I ensure that it will only happen if the player does this specific thing?" and you can make a lot of cool battle sequences.

I'm currently working on a "Battle Effects" script that would make this kind of thing far easier (for example, you could just give the enemy a State that will immediately play a sound effect or trigger a "nice job" common event if it's attacked), but as my game needs to take higher priority, the script won't be released for a few more months.
As soon as you run the event that says "you should hit Training Dummy B", set a variable to Training Dummy B's HP (this can be done in "Control Variables").  At the end of the turn (or whenever), set a second variable to Training Dummy B's HP, and if it's lower, you know that the player hit it, so say "good job".  If it's the same, say "you didn't listen to me".

If you need to specifically check for an attack rather than just any source of damage, you would need to add an invisible (priority 0) state with the attack command that does nothing, and check for that state on Training Dummy B.

All kinds of similar stuff is doable if you're clever enough with switches, variables and states.  Just logically think through "how can I ensure that it will only happen if the player does this specific thing?" and you can make a lot of cool battle sequences.

I'm currently working on a "Battle Effects" script that would make this kind of thing far easier (for example, you could just give the enemy a State that will immediately play a sound effect or trigger a "nice job" common event if it's attacked), but as my game needs to take higher priority, the script won't be released for a few more months.
Thanks for the help! 😀

Now I have one last final question.

In the "Teaching How To Attack" phase, how do I prevent the enemies from attacking?

I don't want the player to be attacked until we teach him how to guard.

A better way of saying it would be:

I don't want the player attacked at all until he actually uses 'Guard' in the "Learning how to guard" phase.

EDIT: I think I might be about to figure it out O:
The enemy attacks with skills choosen from its attack pattern, and those skills can be conditioned on switches.


Make a wait-skill that does nothing, enter it in the enemy's attack pattern with a rating five points higher than all other skills there and conditioned to a switch.


As long as that switch is turned ON, the enemy will only use the wait skill - turn on the switch before battle and only turn it off when you want the attacks to start.
How do I make the Battle Event go to the next turn? :/

I have dialouge that happens at the beginning of the battle.

Then after the dialouge, there's a switch that takes you to the second page.

The second page says "When the end of turn && Switch [blah] is ON.

On the second page, there's dialouge and then another switch that takes you to page three.

Page three says "When the end of turn && Switch [Other] is On.
Except I want page three to be at the end of the NEXT turn after the turn of page two.

I hope I explained that well v.v
you don't end the turns - the player does by selecting an action, then the turn is processed, and then the next turn starts.
The Dialouge on Page 2 is shown at the end of a turn.
When I turn on a switch and make it go to Page 3, and put dialouge on it, the dialouge will come up straight after the dialouge that played on Page 2.

I want the Dialouge on Page 3 to be shown the turn after the turn that Page 2's dialouge was shown.  🙁
you can choose the turn when the event should start as one of the conditions for that page
I don't understand how the turn thing works v.v

Besides, choosing an exact turn won't do.


At the beginning of the battle, the player is URGED to hit Target B. If he doesn't, he'll have to try again on the next turn. He could do this 1000 turns if he wanted to.

If I chose a certain turn for an event to happen, there's no way to predict what turn I should make it...
I would just create a state (with no auto-removal conditions) that has the restriction Cannot Move and apply it to all enemies at the start of the tutorial fight.  Where you run the "good job!" processing for the player selecting Guard, just remove the state from all enemies.  I think this would be a slightly easier way to do it than using enemy skill conditions.
I would just create a state (with no auto-removal conditions) that has the restriction Cannot Move and apply it to all enemies at the start of the tutorial fight.  Where you run the "good job!" processing for the player selecting Guard, just remove the state from all enemies.  I think this would be a slightly easier way to do it than using enemy skill conditions.
I've already got that part down 🙂

My question is how do I make the dialouge on Page 3 happen at the end of the turn after page 2's "end of turn" dialouge.

If I choose "End of turn" for page 3, the dialouge on that page will appear right after Page 2's dialouge, because page 2 is set to "End of Turn" also.
My question is how do I make the dialouge on Page 3 happen at the end of the turn after page 2's "end of turn" dialouge.

If I choose "End of turn" for page 3, the dialouge on that page will appear right after Page 2's dialouge, because page 2 is set to "End of Turn" also.
You probably have to get creative with it.

One way you could probably make it work is have the Page 2 set (for example) Switch #17 ON.  Then, have another event page that runs at the beginning of each turn (Turn 0 + 1X) and requires Switch #17 to be ON.  This event page turns Switch #18 ON.  Have "Page 3" (the event page you need to run a turn AFTER page 2) run at the END of each turn and require that Switch #18 is ON.  I think that will work for you.  There are probably more efficient, graceful ways to do it, but I'm not in the mindset this moment to figure them out.
I figured it out!

Original thread: https://forums.rpgmakerweb.com/threads/training-dummy-battle.39618/