Sequencial battle events

So in an introduction episode of my game, the player will ocasionally encounter a mysterious character in battle. Once encountered, it is supposed to do different things depending on how many times you've encountered it in general.


Example:


Enemy: *Insert message here* 


Enemy does an attack


Player defeats or runs from the enemy


Battle 2:


Enemy: *Insert another message here*


Enemy does an attack


Player defeats or runs from the enemy


Battle 3:


Enemy: *Enemy snaps in the dialogue and triggers an AOE attack then runs* 


Battle 4 and on:


Enemy: *Attacks then runs*


No randomness or certain triggers. As long as a character is in the party then it should trigger no matter what.
Let me start by saying I could be totally wrong about how to go about this as I haven't tested my solution.


But I believe you would do this in the battle event tab in the troop menu (You might need a few switches dedicated to this) Have the condition be first turn (Turn 0?) on the first page, then, have the event do whatever you'd like (Show message, attack etc) THEN at the very end of the page activate a switch (insert name here battle 1) then make another page that has the condition set to that switch and have that do whatever you want make another switch (Insert name here battle 2, and on), rinse and repeat as many time as necessary and it should work  🙂  (I hope) Let me know if it doesn't and I'll try and come up with a solution


Edit 1:Alright so I just tested this a bit and it didn't work quite as well as I would've hoped, so I dashed through what didn't work (I didn't delete it in case anyone more knowledgeable than me sees this and decides to correct me) so instead I'd just have each encounter be a different troop for now and have each troops (fight) have the proper ... event? That you want to happen that fight. (I'll test this a bit when I get a chance  🙂 )


Edit 2: Right so editing this again... I made a (successful) event where you fight this guy three times and each time he says something different and after you beat him the third time when you talk to him again he joins your party. To use the fourth battle you listed as an example I'd do.


(In the troop tab of the database under the fourth battle against the enemy)


Condition: Turn 0


Force action: Enemy, (Whatever you named it) Attack, last target (Or you could choose random Idk what the index's do to be honest)


Then (either on the subsequent turn or when the enemy reaches a certain amount of health whichever you plan on doing) to facilitate the enemy running away you could either abort the battle or make a skill for escaping (just be sure that either way you make sure to give the player some exp or something for their trouble, no one likes a battle where they gain absolutely nothing)

No randomness or certain triggers. As long as a character is in the party then it should trigger no matter what.

🤔  I'm not entirely certain about what you mean, do you want events set up at a certain point that if you have that character in the party then the battle starts? (And when the battle is won they get shut off) Because I can think of maybe a few ways of pulling something like this off, but this post is already looking long and I'd be able to help better if I had a better idea of how you want the battle to actually start.
 


Also, welcome back  😉
Let me start by saying I could be totally wrong about how to go about this as I haven't tested my solution.


But I believe you would do this in the battle event tab in the troop menu (You might need a few switches dedicated to this) Have the condition be first turn (Turn 0?) on the first page, then, have the event do whatever you'd like (Show message, attack etc) THEN at the very end of the page activate a switch (insert name here battle 1) then make another page that has the condition set to that switch and have that do whatever you want make another switch (Insert name here battle 2, and on), rinse and repeat as many time as necessary and it should work  🙂  (I hope) Let me know if it doesn't and I'll try and come up with a solution


Edit 1:Alright so I just tested this a bit and it didn't work quite as well as I would've hoped, so I dashed through what didn't work (I didn't delete it in case anyone more knowledgeable than me sees this and decides to correct me) so instead I'd just have each encounter be a different troop for now and have each troops (fight) have the proper ... event? That you want to happen that fight. (I'll test this a bit when I get a chance  🙂 )


Edit 2: Right so editing this again... I made a (successful) event where you fight this guy three times and each time he says something different and after you beat him the third time when you talk to him again he joins your party. To use the fourth battle you listed as an example I'd do.


(In the troop tab of the database under the fourth battle against the enemy)


Condition: Turn 0


Force action: Enemy, (Whatever you named it) Attack, last target (Or you could choose random Idk what the index's do to be honest)


Then (either on the subsequent turn or when the enemy reaches a certain amount of health whichever you plan on doing) to facilitate the enemy running away you could either abort the battle or make a skill for escaping (just be sure that either way you make sure to give the player some exp or something for their trouble, no one likes a battle where they gain absolutely nothing)


🤔  I'm not entirely certain about what you mean, do you want events set up at a certain point that if you have that character in the party then the battle starts? (And when the battle is won they get shut off) Because I can think of maybe a few ways of pulling something like this off, but this post is already looking long and I'd be able to help better if I had a better idea of how you want the battle to actually start.
 


Also, welcome back  😉





Any pictures of the script so I can try it out on my game? Also, I meant that last part by that it should be triggered no matter what.  Not if a party member is around or anything.
Here you go! Hope these help.  😀


Screenshot (53).pngScreenshot (54).pngScreenshot (55).png


And as for the trigger, if you want it to happen at certain points you could just have a row of events that all do the same thing (Launch the battle) and when the battle is won it activates a switch which turns off those events.(Like in the first two pictures I posted here) I could probably post some pictures of what I mean later but I'm kinda busy today so it won't be for a while.
Here you go! Hope these help.  😀


View attachment 46888View attachment 46889View attachment 46890


And as for the trigger, if you want it to happen at certain points you could just have a row of events that all do the same thing (Launch the battle) and when the battle is won it activates a switch which turns off those events.(Like in the first two pictures I posted here) I could probably post some pictures of what I mean later but I'm kinda busy today so it won't be for a while.

Looks pretty good. Thanks for the help.

Original thread: https://forums.rpgmakerweb.com/threads/sequencial-battle-events.67958/