How to have dead enemies spawn chest / loot pile after death (MOG ABS) (Help)

WithinAmnesia

Villager
Member
Joined
Nov 14, 2019
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hello! I am looking for help to find a way to make enemies spawn a loot pile (functionally a chest) reliably on the location of their death while running Moghunter's Chrono ABS combat plugin (found here https://atelierrgss.wordpress.com/rmv-chrono-engine/ ). Also the plugin setup I have makes Yanfly core not compatible unfortunately :-(.

The goal is to have a loot window (with a loot table with suffex items)[LFH Item Suffex Popup thread].

I am trying to have the loot features of a game like Diablo 1 / 2 and Baldur's Gate where a lot of items can drop off enemies not just 3 and I use an Action Battle System plugin. So I need the loot to drop on the map and use item icon + item name popups for the item when acquired or at least a line of text like looting a chest that can handle item suffixes. That is the goal any way

Right now I need to find a way to make dead enemies spawn a loot pile / chest (on the location of death). I have been very close with a few attempts I used the event spawner with Glav's Event Spawner https://forums.rpgmakerweb.com/index.php?threads/galvs-event-spawner.61878/ combined with Moghunter's ABS enemy death self switch where I can have the dead enemy say switch to 'B' and the enemy can do some events right as it dies like open a text box but it has limitation like not running some of glav's script (augmented) like:
Galv.SPAWN.overlap = 'chars';
Galv.SPAWN.event(1,$gamePlayer.x,$gamePlayer.x); // spawn event 1 at x10,y5

Which even then if I use that script on a stationary event the event unreliably is able to spawn depending on seemly random locations on the map. (Very buggy basically).



ANYWAY! XD I am not really great at switches and tinkering with scripts and I am wondering if the community has any suggestions to achieve:
- Dead enemies spawn loot pile / chest where they died as the game runs Moghunter's Chrono ABS plugin.
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
531
Reaction score
278
First Language
thai
Primarily Uses
RMMV
there are dead self switch for enemy
just make autorun and do thing on that page
 

J-G

Veteran
Member
Joined
Oct 4, 2019
Messages
626
Reaction score
152
First Language
English
Primarily Uses
RMMV
Then combine in with mogs treasure popup, don't confuse it with Mogs battle treasure popup
 

WithinAmnesia

Villager
Member
Joined
Nov 14, 2019
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMMV
It worked!
unknown.png

A little too well lol (the chickens are placeholder for the chest). It is raining chickens!XD

I had to change
"Galv.SPAWN.event(1,$gamePlayer.x,$gamePlayer.x); // spawn event 1 at x10,y5"
to include the y
"Galv.SPAWN.event(1,$gamePlayer.x,$gamePlayer.y); // spawn event 1 at x10,y5 "
Oh man yesterday I was up all night to 5 am trying to make this work lol. Amazing what a little break and rebreather can do to help. ONE letter off! lol XD. I am amazed that it even 'worked' at all with double x calls lol. Now for spawning 1 chicken and replacing that with a loot pile XD.
 
  • Like
Reactions: J-G

J-G

Veteran
Member
Joined
Oct 4, 2019
Messages
626
Reaction score
152
First Language
English
Primarily Uses
RMMV
Nice! Game looks great like that. What did you use?
 

WithinAmnesia

Villager
Member
Joined
Nov 14, 2019
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMMV
Well it kinda broke some other things in the gui but I can fix those with a menu / gui fix later (hopefully XD). The main objective is a success and I upgraded the loot system in my rpg yay XD.

Steps I took:
Glav's Event Spawner is the main working component and so set that up in the project.

Then I used Moghunter's ABS plugin and used the note in the enemy's stat data to enable a death self switch and then in that enemy's map event / sprite I added an event page and made it register with the death self switch.

Then I put a modified version of Glav's script (above with the big y lol) in the enemy's event page that is trigger with the death self switch.

Then I had Glav's modified script call / spawn a loot pile event and then I had the event work like a chest below character.

Note: Do not have spawned events erase themselves for it crashes that game (my experience anyway); instead use switches.
 

Restart

Veteran
Veteran
Joined
Mar 15, 2019
Messages
584
Reaction score
488
First Language
English
Primarily Uses
RMMV
depending on what your yanfly compatibility issues are from, my notes to self thread might have answers for you.

I got YEP_eventspawner to play nice with chrono engine.
 

Killerslash

Veteran
Veteran
Joined
Mar 31, 2017
Messages
105
Reaction score
20
First Language
Arabic
Primarily Uses
RMMV
Then I used Moghunter's ABS plugin and used the note in the enemy's stat data to enable a death self switch and then in that enemy's map event / sprite I added an event page and made it register with the death self switch.
Can you show how you made it?
 

Latest Threads

Latest Profile Posts

Voting for the second round of the Map Madness Tournament is now live! Vote for your favorite in each matchup! https://forums.rpgmakerweb.com/index.php?forums/map-madness-2021-polls.187/
Just bought the Visustella All Waves bundle... Time to go IN!!
Oh, I was just confirmed I'll be doing small online classes during june - july, on one side I'm nervous and looking forward it, on the other one: I've became the very thing I swore to destroy. :kaodes:
Work starts today at 2pm. I hate jeans, but the dress code says I have to wear them... That's how I discovered I was a plus size. Shopping for my first pair of jeans.
Anyhow, I'll post a new video on TheDazzlingsAreBack as soon as I'm able to.
dEj6ha4.png

WIP :)
Added some cliffs / walls / roofs to the tilesheet and am currently working on roof objects to make them prettier and more variable. And of course, windows and doors that fit to the game's style.
I also adjusted the grass color but i have some issues with my display, so if it looks weird, please let me know :)

Forum statistics

Threads
110,573
Messages
1,054,305
Members
143,685
Latest member
Yatsuzuka_Kou
Top