action.split is not a function

Screenshot 2024-08-15 141151.png


So, I got this error while I am testing my game.

I have these events that I believe are causing the problem (My experience on RPG maker MZ is not too great, but I usually fix those problems by myself or just researching on how to fix these problems. I just need help on this one, so thank you):
Screenshot 2024-08-15 141324.png
Screenshot 2024-08-15 141356.png
Screenshot 2024-08-15 141427.png
please post a screenshot of the console output during that error
1) play until you get that error message again
2) press F8
3) switch to the console tab of the next window
4) screenshot

additionally, please post a screenshot of your plugin manager so that we can see what plugins you have installed in which order (that error either comes from a plugin or from a script command, nothing in your event itself can trigger it)

by the way - your event is needlessly complicated with doublechecking conditions and conditional branches, but that again has nothign to do with the error.
please post a screenshot of the console output during that error
1) play until you get that error message again
2) press F8
3) switch to the console tab of the next window
4) screenshot

additionally, please post a screenshot of your plugin manager so that we can see what plugins you have installed in which order (that error either comes from a plugin or from a script command, nothing in your event itself can trigger it)

by the way - your event is needlessly complicated with doublechecking conditions and conditional branches, but that again has nothign to do with the error.
Screenshot 2024-08-15 152044.png
Screenshot 2024-08-15 152143.png


Here these are. And sorry about how complicated the event is.
The problem comes from galv's map projectiles - and at a guess you haven't configured it correctly.
How did you configure it?
The problem comes from galv's map projectiles - and at a guess you haven't configured it correctly.
How did you configure it?
My guess is from the code I implemented into an event that shoots at the player(i couldn't find any galv's mz map projectiles tutorials, so I did this at the best of my knowledge on the player projectiles and from galv's master demo)

Galv.PROJ.atTarget(this.eventId(),-1,17,9,'Lecal','c(2)',[1]);
Screenshot 2024-08-15 162314.png

(Also, the contents are empty if you're wondering)
You're missing arguments.

From the instructions:
Code:
Galv.PROJ.atTarget(sid,tid,s,d,'img',anim,'action',[r],[t],z,pid,size);

You're missing the animation after your image filename - you can leave off stuff from the end if the instructions say it's optional and you can leave it blank, but you can't just skip one.

So try correcting that, see how it goes.
You're missing arguments.

From the instructions:
Code:
Galv.PROJ.atTarget(sid,tid,s,d,'img',anim,'action',[r],[t],z,pid,size);

You're missing the animation after your image filename - you can leave off stuff from the end if the instructions say it's optional and you can leave it blank, but you can't just skip one.

So try correcting that, see how it goes.

Galv.PROJ.atTarget(this.eventId(),-1,17,9,'Lecal',0,'c(2)',[1],[0]);

I used this code and it doesn't show that error again, but my events won't shoot projectiles

Screenshot 2024-08-15 180245.png


(These red blocks are supposed to shoot bullets that look like the image below. I don't mind if they're red blocks and nothing else, I am not aiming to make my game perfect. I am just doing it for passion)
Lecal.png

Should I add the z and the size?
What does the actual event page look like? Why is it parallel, and what commands does it have?
The event itself doesn't need to be parallel if you have an autonomous move route on repeat. Also bring up the console log again to see if it's showing any errors
What does the actual event page look like? Why is it parallel, and what commands does it have?
Screenshot 2024-08-15 201731.png


Screenshot 2024-08-15 162314.png


It's all I got. Also, I set it up as parallel without remembering the repeat movements

The event itself doesn't need to be parallel if you have an autonomous move route on repeat. Also bring up the console log again to see if it's showing any errors
I did not realize it doesn't have to be parallel. I thought by making it parallel, I could have it keep shooting. Also, here:
Screenshot 2024-08-15 202104.png
No, that's what the movement does since you put the projectile script call in the custom move route.

Parallel events continuously execute their event commands, so you shouldn't make something parallel if it doesn't have any commands.

Note that your event Frequency is on the default - if you've made regular events like NPCs wandering the map, that's running their move route every couple of seconds. Try increasing the Frequency.
No, that's what the movement does since you put the projectile script call in the custom move route.

Parallel events continuously execute their event commands, so you shouldn't make something parallel if it doesn't have any commands.

Note that your event Frequency is on the default - if you've made regular events like NPCs wandering the map, that's running their move route every couple of seconds. Try increasing the Frequency.
Screenshot 2024-08-15 204556.png

Okay, I did that, but I realized the bigger problem. My shooter switch isn't doing anything at all. Even my moving block doesn't move away from the player.
Screenshot 2024-08-15 204255.png
You're showing some confusing information.

Why does the event have two pages, both apparently with the same condition?

That will always make the event be on page 2. When are you supposed to see page 1?
You're showing some confusing information.

Why does the event have two pages, both apparently with the same condition?

That will always make the event be on page 2. When are you supposed to see page 1?
Okay, to not confuse you, I have named my moving block as Mover and my red block as Turre.
Mover.png
Turre.png


Both first pages are supposed to use the switch named "Appear", meaning they are unable to move or anything unless "Shooter" is activated

This is shown in this event that is not named

Screenshot 2024-08-15 222404.png


In both 2 and 3, they have this at the end. 4 is not important
Screenshot 2024-08-15 222426.png



EDIT:
Turns out, I found out how to fix my shooting problem by doing this:

Galv.PROJ.atTarget(this.eventId(),-1,17,9,'Lecal',0,'c(2)',[1]);

I just needed the anim and region. Nothing else. I also moved my mover block into a position where it can move because I realized it can move.

Sorry for causing any trouble for trying to solve an issue.
This thread is locked due to being reported as solved. If you need it reopened, let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/action-split-is-not-a-function.171114/