have text after enemy dies

gigaswardblade

narcisistic narcoleptic
Veteran
Joined
Jul 12, 2016
Messages
193
Reaction score
50
First Language
english
Primarily Uses
RMMV
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)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
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
 
Last edited by a moderator:

Dad3353

Veteran
Veteran
Joined
Mar 9, 2016
Messages
421
Reaction score
110
First Language
English
Primarily Uses
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...




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.
 
Last edited by a moderator:

gigaswardblade

narcisistic narcoleptic
Veteran
Joined
Jul 12, 2016
Messages
193
Reaction score
50
First Language
english
Primarily Uses
RMMV
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?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
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.
 

gigaswardblade

narcisistic narcoleptic
Veteran
Joined
Jul 12, 2016
Messages
193
Reaction score
50
First Language
english
Primarily Uses
RMMV
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
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.
 

gigaswardblade

narcisistic narcoleptic
Veteran
Joined
Jul 12, 2016
Messages
193
Reaction score
50
First Language
english
Primarily Uses
RMMV
i may be a tad bit too late to say this, but i finally got things working just fine with the immortal state.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,883
Messages
1,017,232
Members
137,607
Latest member
Maddo
Top