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
529
Reaction score
275
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
606
Reaction score
143
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!

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
606
Reaction score
143
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
523
Reaction score
415
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
65
Reaction score
12
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?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,585
Latest member
Reversinator
Top