Help with making Player does something, then Enemy, then result? in battle

Hello, I'm pretty new (very new) to RPGMMZ so bear with me.
I want to practically build a simple combat system that's starting to look more complex the more I look into the engine limits

so it's Rock Paper Scissors, but the Player and Enemy get to choose before anything happens (like an attack/skill).
how do I make it so the Player does said action then the Enemy then the event appears and the results to a final decision so lemme break it down how I want it to work

Player does Skill Rock, Image appears above him saying he gonna choose Rock
Enemy Does (random_int_value) Scissors, Image above him, etc.
then the event gets triggered by said two skills/attacks.
resulting in the enemy taking damage due to losing.
repeat.

i dont see this being complicated to make just, the way I want to evolve this seems far more complex (ill explain that later if needed and faster if curious) but I am not good or really know anything about events but knowing this would help ALOT if possible.


Thanks for any help 🙂
I could be misunderstanding what you want, but I think this can be done pretty simply with events, outside of the normal battle processing.

I think I have a fairly recent tutorial that might be similar. It shows pictures of two actors that take turns attacking each other with results shown on the screen.

You should be able to modify it to have the action selection first and then the results.

If you are very new, it would require learning about basics events, variables, show pictures, etc.

Here is a link to the demo. If this looks like it might be helpful, you can also find the explanation of how to do it in my tutorials.

I hope this helps And good luck!

I could be misunderstanding what you want, but I think this can be done pretty simply with events, outside of the normal battle processing.

I think I have a fairly recent tutorial that might be similar. It shows pictures of two actors that take turns attacking each other with results shown on the screen.

You should be able to modify it to have the action selection first and then the results.

If you are very new, it would require learning about basics events, variables, show pictures, etc.

Here is a link to the demo. If this looks like it might be helpful, you can also find the explanation of how to do it in my tutorials.

I hope this helps And good luck!


Just a little, but very similar!
I want it to be similar so for example using your systematic,

Have Player roll ends up equaling = 4
Then Enemy rolls and equals = 2

Then depending on the results would equal that player wins so he gets to deal damage from results

Then the process repeats until either is defeated.


Something more that style which I do think is possible, would it be using your events/script?
I can’t show you screenshots right now, but for your example, here is how I would try doing it for learning the basic concepts. Maybe someone else can give you a more efficient way, but I am pretty sure this would work. Here is what I would do with the Rock, Paper, Scissors concept:

  • Label (Choose Again)
  • Use Show Choices to let the player choose their action. This results in 3 When statements in the event. Under each When statement use a Variable (Example: Player Choice) and set the value from 1-3 based on the player choice. 1 = Rock, 2 = Paper, 3 = Scissors.
  • Use Show Picture to place an image above the player that is appropriate for the choice. I would use icons that resemble the choices.
  • Use another Variable (Example: Enemy Choice) to generate a random number from 1-3 for the enemy choice.
  • Use Show Picture to place the appropriate image over the enemy.
  • Next are a series of Conditional Branches to compare the two Variables and determine the result.
  • Conditional Branch: If Player Choice = Enemy Choice then no winner of that round. Do whatever you want for when there is no winner and use Jump to Label to skip other Conditional Branches. This covers if both Variables equal 1, 2, or 3. No Else branch needed. If the Variables aren’t the same, nothing happens and the next Conditional Branch is checked.
  • Conditional Branch: If Player Choice = 1. Nested Conditional Branch: If Enemy Choice = 2. Enemy wins. Else Branch: Player Wins. For the win, do whatever you want to show the win. Use Jump to Label to skip forward like before. If player didn’t choose 1, the next Conditional Branch is checked.
  • Copy and paste the last Conditional Branch and Nested Conditional Branch & Else Branch. Change values. If Player Choice = 2. If Enemy Choice = 3. Enemy wins. Else Branch: Player wins. Jump to Label. If player didn’t choose 2, the last Conditional Branch is checked.
  • Repeat above step. Change Player Choice to 3. Change Enemy Choice to 1. Else Branch does not require changing.
  • I think this covers all options.
  • Label (for the Jump to Label)
  • Next, use a Conditional Branch to check to see if there is an overall winner.
  • If either player or enemy has no more health, do whatever you want and End. Else Branch: Jump to Label (Choose Again).
I think that covers what you are looking for, at least generally. If more detail is needed, just let us know.

Or maybe someone will give a better approach.

Again, sorry I can’t give you screenshots. I am at work right now.

I hope this helps.
I can’t show you screenshots right now, but for your example, here is how I would try doing it for learning the basic concepts. Maybe someone else can give you a more efficient way, but I am pretty sure this would work. Here is what I would do with the Rock, Paper, Scissors concept:

  • Label (Choose Again)
  • Use Show Choices to let the player choose their action. This results in 3 When statements in the event. Under each When statement use a Variable (Example: Player Choice) and set the value from 1-3 based on the player choice. 1 = Rock, 2 = Paper, 3 = Scissors.
  • Use Show Picture to place an image above the player that is appropriate for the choice. I would use icons that resemble the choices.
  • Use another Variable (Example: Enemy Choice) to generate a random number from 1-3 for the enemy choice.
  • Use Show Picture to place the appropriate image over the enemy.
  • Next are a series of Conditional Branches to compare the two Variables and determine the result.
  • Conditional Branch: If Player Choice = Enemy Choice then no winner of that round. Do whatever you want for when there is no winner and use Jump to Label to skip other Conditional Branches. This covers if both Variables equal 1, 2, or 3. No Else branch needed. If the Variables aren’t the same, nothing happens and the next Conditional Branch is checked.
  • Conditional Branch: If Player Choice = 1. Nested Conditional Branch: If Enemy Choice = 2. Enemy wins. Else Branch: Player Wins. For the win, do whatever you want to show the win. Use Jump to Label to skip forward like before. If player didn’t choose 1, the next Conditional Branch is checked.
  • Copy and paste the last Conditional Branch and Nested Conditional Branch & Else Branch. Change values. If Player Choice = 2. If Enemy Choice = 3. Enemy wins. Else Branch: Player wins. Jump to Label. If player didn’t choose 2, the last Conditional Branch is checked.
  • Repeat above step. Change Player Choice to 3. Change Enemy Choice to 1. Else Branch does not require changing.
  • I think this covers all options.
  • Label (for the Jump to Label)
  • Next, use a Conditional Branch to check to see if there is an overall winner.
  • If either player or enemy has no more health, do whatever you want and End. Else Branch: Jump to Label (Choose Again).
I think that covers what you are looking for, at least generally. If more detail is needed, just let us know.

Or maybe someone will give a better approach.

Again, sorry I can’t give you screenshots. I am at work right now.

I hope this helps.
Thank you,
I'll test it out later, cause I'm at work myself won't be finished for another 4-5hrs

Original thread: https://forums.rpgmakerweb.com/threads/help-with-making-player-does-something-then-enemy-then-result-in-battle.157572/