Proc a common event upon killing an enemy with a specific attack?

FirestormNeos

Veteran
Veteran
Joined
Jul 23, 2019
Messages
178
Reaction score
128
First Language
English
Primarily Uses
RMMV
I have a skill where if an enemy dies from it, the player casts a spell that summons an undead minion. I have the skill that summons the minion complete, but I don't know how to have it activate only when the other skill which activates it kills an enemy, if that's even possible to do without scripting/plugins.

Here's what the flowchart looks like on my planning document:
Player casts [attack skill]. Skill does damage, etc. etc...
>If the enemy dies, "force action" the player to use [summon minion skill]
>If the enemy doesn't die, do nothing.

Anyone got any ideas for this?
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,254
Reaction score
1,254
First Language
Spanish
Primarily Uses
RMVXA
I believe you can catch the dying enemy and use it to trigger the process based on the last used skill, which is stored for reference after you use it.
I believe the call for last skill is BattleManager.actor.last_skill.object.
use BattleManager so you can grab it without having to grab the battle scene (which you'd need if you want to grab the actor itself, from which the last skill is grabbed). The BM does that automatically.
if you're not using the default battle scene, that might be different.

but that's the shortest route, I believe: catch the dying enemy through a troop event, check for the last skill used, and that would validate "when dying from this skill", which implies "this skill used by this actor", which triggers your process.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,035
Messages
1,018,459
Members
137,821
Latest member
Capterson
Top