have text after enemy dies

i'm having trouble figuring out how to make text appear after an enemy dies in battle. i want my game to be more light hearted than most rpgmaker games so whenever my characters defeat a human enemy i want the enemy to say something like "i give up" instead of the player just assuming they died. here is what i have set up so you can see what problems i might be having. (im using MV by the way)


New Bitmap Image (3).jpg


i have 3 of them because i wanna have a bit of variety in the messages instead of just hearing the same line over and over. basically, my game is going to have field enemies instead of random encounters (which is a problem for another day) so ive put down makeshift fieldies for now. i gave them a battle processing that is set to "same as random encounter" so that it will shuffle between a few different enemies. i set the text box to play when the enemy's HP is at 0% but instead it just says that they were "slain". (i also wanna find a way to change that to say defeated instead) and i also have the span set to moment which i hope means it will play as soon as the enemy health reaches 0. if there's any script wizard out there that knows how to fix this problem please help. i have found absolutely NO solutions so far to this problem. (also sorry if i posted in the wrong place i'm new to this site)
the messages for the knockout state are in the database at state #1


Your other problem is because the game removes the enemies before the troop conditions are checked. To prevent this, you need to apply an invisible "immortality" state (resistance to knockout) at turn 0 of the battle, and remove that state after your troop event with the 0% HP has been processed.


(that is why it needs to be done by state, you can't dynamically remove traits themselves)


I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.


Tech-support is for getting the editors to run, not for help with development problems
In passing, this is how I've done my 'random chat' stuff during the battle, for the same reason as yourself: to not have the 'same old' every time. Nothing very special, just a random choice of Text...

Spoiler
aTnLRAK.png



You can't see all of the Texts, but you get the idea, I hope.


I have exactly the same set up in another Page for when the Hero's HP falls below 50%, too, allowing the Enemy to gloat over his apparent success with other random phrases. Too bad he falls in the end, eh..? ;-)


Hope this helps.
the messages for the knockout state are in the database at state #1


Your other problem is because the game removes the enemies before the troop conditions are checked. To prevent this, you need to apply an invisible "immortality" state (resistance to knockout) at turn 0 of the battle, and remove that state after your troop event with the 0% HP has been processed.


(that is why it needs to be done by state, you can't dynamically remove traits themselves)


I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.


Tech-support is for getting the editors to run, not for help with development problems



i'll try this out and see if it helps.


also for future reference, where is the correct place to post technical problems?
also for future reference, where is the correct place to post technical problems?

you didn't have a technical problem, you had a problem with your game development.


If you have a problem with a script/plugin, it goes into script support/plugin support


If you have a problem with game development that doesn't involve scripts, it goes into the specific support area of your maker


If you have a problem with the editor and can't get the editor to run, then it is a technical problem and goes into tech-support all makers.
the messages for the knockout state are in the database at state #1


Your other problem is because the game removes the enemies before the troop conditions are checked. To prevent this, you need to apply an invisible "immortality" state (resistance to knockout) at turn 0 of the battle, and remove that state after your troop event with the 0% HP has been processed.


(that is why it needs to be done by state, you can't dynamically remove traits themselves)


I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.


Tech-support is for getting the editors to run, not for help with development problems



there's only 1 problem im having.


i have no idea how to do that...


i did the think where i changed slain to defeated but thats as far as ive gotten.
using the immortality state is a bit tricky, but there are tutorials out there to describe that (sorry, don't have the links ready, search for tutorials on how to have events run at battle end, it's the same principle).


But those tutorials require you to be familiar with the options of the engine . if you aren't, then it might be best to start working through the tutorials.


To do that, simply follow the link to the starting point in my signature, that will point you to the most important tutorials.
i may be a tad bit too late to say this, but i finally got things working just fine with the immortal state.

Original thread: https://forums.rpgmakerweb.com/threads/have-text-after-enemy-dies.66327/