RPG Maker Forums

Trying to achieve something like the persistent corpses in "Darkest Dungeon" (https://darkestdungeon.gamepedia.com/Corpse) where enemies leave a corpse on the battlefield that preserves the original rows/formations until it is destroyed by the player or disappears over time.

I also want a PC skill, "Scavenge", that ONLY targets dead enemies, consuming the dead enemy for half of its max HP and then destroying the corpse/removing the enemy from the battlefield.

I've got the dead enemies remaining on the battlefield rather than disappearing using YEP_X_Animated Sideview Enemies and custom "dead" animations in the spritesheet.

Today I tried making a custom "Corpse" state that basically mimics the "Knockout"/dead state, and a "Scavenge" skill that can only target the "Corpse" state using Target Core and Selection Control commands. Using Troop controls I have it set so if an enemy reaches 0 HP the "Knockout" state is removed, a tiny amount of HP is restored, and the "Corpse" state is applied. I set "collapse" back to true for the "Knockout" state so when enemies are hit in the "Corpse" state they automatically go to the "Knockout" state and disappear.

This seems to kinda sorta work, up until the point I actually use Scavenge on an enemy; it displays the animation and plays the sound, then the game crashes with an error message.

How would you go about achieving this gameplay? What am I doing wrong with my approach? Is there a simpler approach? Thanks!

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,580
Members
137,843
Latest member
Betwixt000
Top