End of battle event messages?

Hello!

I'm very newish to RPG Maker XP. I'm currently using the Sideview Battle System Tankentai script to have battles in a more traditional Final Fantasy perspective. However, I'm trying to figure out how to enable messages at the end of a battle which would tell the player if a character learned a new skill.

Any help would be appreciated! ^_^
I'm also pretty new but I have an idea that I think could help you:
First we're gonna create 2 variables for each of the actors in our game. (I'm using Aluxes and Basil so I'm creating 4 variables)
Captura de pantalla (402).png

Next, create one common event for each of your actors, plus an additional common event that will be triggered after every battle. ( I named the last event "Actor level" and each of the other events after their corrresponding actor.) Then in this last common event (Actor level), we set the first variable for each actor to match their current level. Then, add a conditional branch for each actor to check if their first variable (Level) is different from their second variable (Level Trigger). If the two variables don’t match, the common event for that specific actor should be triggered.

Captura de pantalla (404).png

Now the long part. In each actor's common event, you’ll need to add a conditional branch to check if the level the actor just reached unlocks any new skills. This step is done manually for each level where the actor learns a new skill. If a skill is unlocked, display a message in the format: 'Actor has learned [Skill Name].'Repeat this process for every level at which your actor learns a new skill. Finally, at the end of the common event, update the actor's second variable (Level Trigger) by adding 1 to it. (In my case I set Aluxes to learn different skills at level 2, 3 and 4). You will need to repeat the steps for every actor in your game.
Captura de pantalla (405).png

Now, to ensure everything works properly, there are two more steps to complete:
1. At the start of your game, create an event that sets each actor's second variable (Level Trigger) to match their starting level. (In my case both Aluxes' and Basil's starting level is 1)
2.Call the common event (Actor Level) at the end of every battle.
Captura de pantalla (406).png

Captura de pantalla (407).png

This method will work as long as you avoid making any other modifications to the actors' second variable (Level Trigger) throughout the game.
While this process is functional, it’s worth noting that scripting could likely achieve the same result more efficiently. However, since I don’t have experience with scripting, I can’t provide guidance on that approach.

Hope this helped
Hi there!

Thank you for the incredibly detailed post - I really appreciate it a lot! =D

So it is somewhat working for me. If I have an event enemy, like a boss, I've added the Call Common Event just as you have, and after the battle, I get the message (see attached image).

However, I can't seem to figure out how to get this to also work from level-ups that occur from random encounters. I've tried adding the same Call Common Event to the troop field for the random encounter that I've assigned to the map, but no message occurs about learning a skill if a level-up is triggered through said random encounter.

learnsthunder.png


troops.png



I'm also pretty new but I have an idea that I think could help you:
First we're gonna create 2 variables for each of the actors in our game. (I'm using Aluxes and Basil so I'm creating 4 variables)
View attachment 329653
Next, create one common event for each of your actors, plus an additional common event that will be triggered after every battle. ( I named the last event "Actor level" and each of the other events after their corrresponding actor.) Then in this last common event (Actor level), we set the first variable for each actor to match their current level. Then, add a conditional branch for each actor to check if their first variable (Level) is different from their second variable (Level Trigger). If the two variables don’t match, the common event for that specific actor should be triggered.

View attachment 329655
Now the long part. In each actor's common event, you’ll need to add a conditional branch to check if the level the actor just reached unlocks any new skills. This step is done manually for each level where the actor learns a new skill. If a skill is unlocked, display a message in the format: 'Actor has learned [Skill Name].'Repeat this process for every level at which your actor learns a new skill. Finally, at the end of the common event, update the actor's second variable (Level Trigger) by adding 1 to it. (In my case I set Aluxes to learn different skills at level 2, 3 and 4). You will need to repeat the steps for every actor in your game.
View attachment 329660
Now, to ensure everything works properly, there are two more steps to complete:
1. At the start of your game, create an event that sets each actor's second variable (Level Trigger) to match their starting level. (In my case both Aluxes' and Basil's starting level is 1)
2.Call the common event (Actor Level) at the end of every battle.
View attachment 329661
View attachment 329662
This method will work as long as you avoid making any other modifications to the actors' second variable (Level Trigger) throughout the game.
While this process is functional, it’s worth noting that scripting could likely achieve the same result more efficiently. However, since I don’t have experience with scripting, I can’t provide guidance on that approach.

Hope this helped
That last screenshot actually tells me you're trying to call a second battle scene with another troop of 3 useless ghosts. 😅 I'd suspect you'd need a script for calling the common event even after finishing a random battle.
Ah okay, I understand what that Battle Event is doing now - once I turned the Condition to Turn 1, it started another fight against another troop of three ghosts XD

So yeah, that's not going to work for what I'm trying to do. Would you happen to know how to script something like this?

That last screenshot actually tells me you're trying to call a second battle scene with another troop of 3 useless ghosts. 😅 I'd suspect you'd need a script for calling the common event even after finishing a random battle.
Hi again, I’m glad this was helpful! I realized I might have overlooked random encounters, though. As I mentioned earlier, I don’t have any experience with scripting, but I believe this could be done fairly easily.

In the Scene_Battle 1 file, there’s a section that handles the end of a battle. I added a call to my common event here. (In my case, the common event ID is 001, so if your common event uses a different ID, just update that part accordingly.)

At the very end of the "Battle Ends" section in Scene_Battle, replace the #switch to map screen part with:
Ruby:
# Switch to map screen
    $game_temp.common_event_id = 1 #Change 1 for you common event ID
    $scene = Scene_Map.new
  end
Hi there!

Thank you for the incredibly detailed post - I really appreciate it a lot! =D

So it is somewhat working for me. If I have an event enemy, like a boss, I've added the Call Common Event just as you have, and after the battle, I get the message (see attached image).

However, I can't seem to figure out how to get this to also work from level-ups that occur from random encounters. I've tried adding the same Call Common Event to the troop field for the random encounter that I've assigned to the map, but no message occurs about learning a skill if a level-up is triggered through said random encounter.

View attachment 329669

View attachment 329672
This worked perfectly! Thank you so much Rasticore! I really appreciate your help and time here! =D

Hi again, I’m glad this was helpful! I realized I might have overlooked random encounters, though. As I mentioned earlier, I don’t have any experience with scripting, but I believe this could be done fairly easily.

In the Scene_Battle 1 file, there’s a section that handles the end of a battle. I added a call to my common event here. (In my case, the common event ID is 001, so if your common event uses a different ID, just update that part accordingly.)

At the very end of the "Battle Ends" section in Scene_Battle, replace the #switch to map screen part with:
Ruby:
# Switch to map screen
    $game_temp.common_event_id = 1 #Change 1 for you common event ID
    $scene = Scene_Map.new
  end

Original thread: https://forums.rpgmakerweb.com/threads/end-of-battle-event-messages.174717/