EventSpawn help?

Hi,

First off, I'm just gonna say that I'm using Falcao Pearl ABS Liquid v2, which is a real-time battle script. Secondly, I'm using an EventSpawn by Kal.

So what I'm making is this barrel. And the barrel is going to be an obstruction blocking the player's route, which the player has to push in order to continue on their path. The way the barrel is pushed away is by using the real-time battle script along with the EventSpawn. So I have a weapon that works like this; if it hits the barrel, the barrel will move to a certain location. But I'm cheating a bit. Here's what I'm doing:

So the ABS has an "Enemy Death Switch", so that when the enemy dies it will trigger a switch. I've assigned its switch to 42. Now what happens on 42 is that it will immediately respawn the event, and after that, it will move it to the location. This makes it so that it doesn't seem like the barrel "dies" at all. The reason I'm doing it like this is cause I don't know of any other way to do this.

There's a problem, however. Once that barrel "dies", it does respawn, but not only one "barrel", but two. And if I remove the EventSpawn command, it won't respawn any. This is what the code looks like:

<spawn-id 1> This is the event ID (Mandatory)<spawn-timer 0> The number of frames it takes between each spawn (Mandatory)<spawn-max 1> Quote: "takes the maximum number of events the spawner should spawn.Once this number has been reached the spawner will stop spawning."Additional info:

-The event's trigger is a parallel process

-This is the EventSpawn I'm using: http://forums.rpgmakerweb.com/index.php?/topic/6099-eventspawn/

-Both "barrels" will move

I tried changing the timer, but that only delays the spawn that comes after. I also changed the spawn max number, but then it won't spawn any at all, or spawn more. I just can't understand what I'm doing wrong.

I have only been working with the RPG Maker for a week, so please explain as simple as possible. If you have any other alternatives to how I can do this, please tell me.

Thanks in advance.

BarrelEnemy.png

BarrelEvent.png
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Why are you not just using a simple event with a 'move away from player' move route every time it's pushed? Why are you using scripts and setting it up as if it's an enemy?
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Why are you not just using a simple event with a 'move away from player' move route every time it's pushed? Why are you using scripts and setting it up as if it's an enemy?
Thanks, sorry.

Because you're supposed to use a weapon with projectiles (like a spell) to push it, and not push it with the player itself.
Admin can close this, I sort of found a temporary solution to this problem. If someone knows how to 100% fix it, please send me a pm! 🙂
Khalym, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


If you still need help, we'll leave the topic open. Nothing worse than people who don't really know what they're doing, instructing others via PM, where nobody else can see and point out that the instructions are incorrect.


WHEN you get a 100% solution, or decide you no longer want any help, THEN you can let us know and we'll close the thread 🙂

Original thread: https://forums.rpgmakerweb.com/threads/eventspawn-help.20147/