Element Dependant Knockout Messages

MGGEDev

Veteran
Veteran
Joined
Mar 22, 2014
Messages
31
Reaction score
4
First Language
English
Primarily Uses
RMMZ
Apologies if this exists but I am looking for a way to change the knockout effect depending on the element that killed the actor/enemy.

For example, if they were killed by the "ice" element it would say "ActorA froze to death".
Fire "ActorA burnt to a crisp".

Is there a way to do this or would it require a plugin?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
3,162
Reaction score
1,868
First Language
English
Primarily Uses
RMMV
You'd need a plugin, the engine doesn't support this by default. Specifically, as far as I know, you'd need to request/commission a new plugin.

Edit: I was insufficiently creative. You could do this without a plugin, I'd just recommend using one if you have any respect for your own time :wink:
 
Last edited:

MGGEDev

Veteran
Veteran
Joined
Mar 22, 2014
Messages
31
Reaction score
4
First Language
English
Primarily Uses
RMMZ
You'd need a plugin, the engine doesn't support this by default. Specifically, as far as I know, you'd need to request/commission a new plugin.
Thanks for your response, when I'm allowed to post a commission ad, I'll try to get one made in that case!
 

coyotecraft

Veteran
Veteran
Joined
Mar 13, 2012
Messages
191
Reaction score
118
First Language
English
Primarily Uses
I believe it can be done with a Battle Event or maybe a Common Event.
State messages can use "\V[]" to display variable values, so it's just a matter of changing the value to a string "was burnt to a crisp!" whenever a fire skill is used.

MZ has "last used data" that could make this easier. If last skill Id is "fire" "fire2" "Nova Flare" blah blah...set the killed message variable to "burnt to a crisp!"
...else, set to the default message "has fallen!"
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
3,162
Reaction score
1,868
First Language
English
Primarily Uses
RMMV
State messages can use "\V[]" to display variable values, so it's just a matter of changing the value to a string "was burnt to a crisp!" whenever a fire skill is used.
This is kind of at odds with your next suggestion. If you're doing this every time a skill is used, you wouldn't need/want to be doing troop events that check the last skill ID.
MZ has "last used data" that could make this easier. If last skill Id is "fire" "fire2" "Nova Flare" blah blah...set the killed message variable to "burnt to a crisp!"
...else, set to the default message "has fallen!"
That...could work. You'd need to set up several troop events for every troop in your game (I don't know if someone has written a "common troop event" plugin for MZ to make this easier) that set all the enemies immortal, then check for any of them to die, do conditionals to see what the last skill ID was, and set the variable string that the Knockout state uses before removing the immortal.

The trick is that if you have any reasonable number of skills in your game, it can get to be extremely unwieldy. If you're going the first route (for example, making every skill set that variable to a string in the damage formula), that's obviously tedious to add to every skill in the game.

If you're going the second route, using the troop event, then you'll have this huge, unwieldy event filled with potentially hundreds of conditionals to check the last skill ID and set the string in the event. (I think the damage formula is the less obnoxious of the two)

In order to get around that, you'd start using at least some script calls, and then it becomes one of those things that becomes way simpler to implement via plugin (write one function with a switch statement that displays the appropriate message if your skill has the <FireDeath> notetag, for example).

But you could do it in-engine.
 
Last edited:

MGGEDev

Veteran
Veteran
Joined
Mar 22, 2014
Messages
31
Reaction score
4
First Language
English
Primarily Uses
RMMZ
Thanks for the tips! I'll have a try to see if I can make something work in-engine, otherwise if it is too much of a headache I'll try to get a plugin commissioned :)
 

Latest Threads

Latest Profile Posts

Micro rant. The worst part of working from home when you live with your family is seeing how inconsiderate they are. "Hey, you're sitting in front of your computer, that means you're not doing anything! I want to put the TV at 200 decibels!"

If I was working in the office would you still talking me like that?
It's definitely discouraging when streamers give a try-to-say-it-nicely (i.e. bad) review of your game demo. It's like jumping into a cold pool. Bad initally, but it gets better with time. And you are now more alert and see better.
Some screenshots of the pub and lodging with the beginnings of clutter taking shape
TTp8uCw.png

jtC202e.png

bSXgyVl.png

eRx9PUF.png
Backgrounds are not my strong suit... :kaodes:
DazI8jt.jpg

Just realized I forgot doing the clouds... woops
Went to get some stuff for February 10, the birthday of my favorite ink monster...
I have a little one-person party for Bendy every year, complete with the life-size plushie I made. And yes, I bake a birthday cake!

Forum statistics

Threads
118,503
Messages
1,116,445
Members
155,504
Latest member
gunsche
Top