How to create a prompt after battle?

Hello,

I'm looking for assistance with an idea I have. I would like there to be a 10% chance after every battle for a prompt to pop up based on which enemy was killed. To better illustrate my inquiry, think back to Final Fantasy Legend II on the Gameboy where quite often, monster meat would drop and ask you if you want to eat it. It didn't add it to your inventory as a loot drop, it simply gave you that one chance to eat it, and if not, it's gone for good.

I'm looking for something in that same vein. Can anybody help me? Thank you.
Hmm... Control variable "monster meat" random 0 - 5. If variable "monster meat" = 5 turn on switch "meat for all" - (Put that into the troop events you want to have the chance on.)

Common event that runs on switch "meat for all" that gives message "You found meat, want to feast?" show choice, do whatever you want it to do and then turn switch "meat for all" off.
Yep that's basically it. 🙂
@SGHarlekin pretty much nailed it.

...The only issue really is if there is only 1 enemy in the troop or if the enemy is last to die

Troop events won't activate after the battle is over.. but luckily there is a solution to that also.
Thanks to this thread: click here to view

So basically without setting the enemy state to immortal first if the battle is over the troop event won't activate no matter what...

So this is what the full setup of something like that looks like:
Spoiler
1663051406421.png

1663051456068.png
Another way, that might be easier, would be having a literal meat item. And a common event that checks like every 5 frames or whatever (to avoid lags) if party has meat in inventory and then run the prompt.

Just remove the meat after the prompt and the player will never know there was an item.
the common event was the correct way, you just didn't do the switch troop event correctly.

the common event needs to be parallel process, because parallels only run on map and not in battle.
due to this, you make a troop event run on turn 0 that turns on that meat switch. It will activate the parallel but due to the different rules the parallel will not start until after battle.

that said, your condition of different meats based on who is killed would not be possible on this technique alone.
For that it is better to have the enemies drop the meat as real items.

and if you don't want them in the item list (or multiple meats if killed multiple enemies) then make them hidden items, have the common event use select item to decide which one to eat and then remove all the hidden meats (to prevent them from being available after a different battle).
I would place common event in the troop event as calling instead of a switch.
so its used there. so you dont need a switch by than.
Troop events won't activate after the battle is over.. but luckily there is a solution to that also.
Thanks to this thread: click here to view
You can do that. If there are going to be multiple of these for different items, you could also use HimeWorks' End Phase Triggers which will make troop events based off of enemy deaths simply function as expected, no extra work needed.
Thanks everyone. I've been away for awhile. I managed to get a meat system working to my liking with a mix of the help here and my own jank ideas. It's also a sustainable solution that can persist through the progress of development. However the hard part now is applying the meat to my team.

Because of the way the game's groundwork has been set up, causing the monster transformations correctly is going to be near impossible without actually learning JS I think. It might be something I have to make a separate topic for though because it's a very indepth problem. Most of my problems revolve around the fact that you choose your own party, and can choose multiple of the same race, so all of the meat effects need to work on conditions based on who is in party member slot 1, 2, 3, 4 rather than which actors are in the party. Sigh, it's gonna be a nightmare getting through this.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-a-prompt-after-battle.151268/