MV Galv Event Spawner - Spawning events on ally death

im working on a permadeath mechanic for my game, and ive managed to remove them from the party on death just fine,
my real issue is placing an event when they die. the script im trying to use is this (picture below) where a variable is rolled to call 1 of 3 events, ive checked F9 and the variables are determined fine, so im assuming its a script problem
CANjGgI - Imgur.png

if anyone knows what i did wrong id love to hear corrections im new to the plugin(and scripting) and theres not a ton of
documentation as far as i can tell
You're telling it to spawn on top the player so you need to set spawn overlap to true
You're telling it to spawn on top the player so you need to set spawn overlap to true
image.png

i have a parallel process on the character select screen that im pretty sure does this although
i couldve messed it up somehow

and ftr i did test it in a new save so the command should have ran
Open the console log and type in that spawn command and see what it says
Open the console log and type in that spawn command and see what it says

image.png
I guess you can't run it from the console, but I just tried this in the demo project and it worked for me
Galv.SPAWN.overlap = 'all';
Galv.SPAWN.event(1,$gamePlayer.x,$gamePlayer.y);

Are you sure you have the correct map set in the plugin settings?
I guess you can't run it from the console, but I just tried this in the demo project and it worked for me
Galv.SPAWN.overlap = 'all';
Galv.SPAWN.event(1,$gamePlayer.x,$gamePlayer.y);

Are you sure you have the correct map set in the plugin settings?
image.png
unnamed.png

i believe so unless i need to include the 00
The only other thing I can think of is you have a plugin conflict or your core files aren't up to date, because I put that script in the demo project and it worked for me.

E: There could also be something wrong with how you're triggering the script.
blahhhghh yeah ok ill try disabling some plugins i guess thanks
blahhhghh yeah ok ill try disabling some plugins i guess thanks
Show the full event where you're calling the script because the other issue could be with your trigger
im working on a permadeath mechanic for my game, and ive managed to remove them from the party on death just fine,
my real issue is placing an event when they die. the script im trying to use is this (picture below) where a variable is rolled to call 1 of 3 events, ive checked F9 and the variables are determined fine, so im assuming its a script problem
View attachment 304143
if anyone knows what i did wrong id love to hear corrections im new to the plugin(and scripting) and theres not a ton of
documentation as far as i can tell
the full events shown here,the "trigger" is a switch thats flipped at the start since i want it to be on the entire game
like i said ive been able to get the event to RUN, the script itself just doesnt work for whatever reason
also in the screenshot it says script and ive changed that to plugin command and it still yields no results so thankfully it wasnt something as stupid as that
So you just have a parallel common event running the entire game checking every frame (60 times a second) to see if a character is dead? The way your event is set up it would spawn an event on the player 60 times a second as soon as Switch 86 is turned on.

E: Sorry I meant 86 instead of 66
aaaaaaaaa ok yeah that makes sense then,how would i go about preventing a common event from looping
It's parallel (and autorun) triggers that loop. You have to switch them off when you don't want them to run. Or don't make it a parallel/autorun trigger and just call it once when you need it.
ive moved the spawning and variable rolling section of the event to a non looping event while the state check loops, its still not spawning however
Your bigger problem is not the spawn, it's that you're checking every frame of game time whether someone is dead. It's horribly inefficient. You'll also have to post both updated event pages because the order of commands and the triggers are important.
image.png
unnamed.png
That doesn't change anything from your first post. The second Eli has the dead state, that entire sequence of commands, including the block of code in your second event, will be firing off 60 times a second. There is nothing turning it off. You need to think this through logically.

E: Actually, removing him from the party might be the thing stopping it.

Original thread: https://forums.rpgmakerweb.com/threads/galv-event-spawner-spawning-events-on-ally-death.168389/