I tried to use Galv's Map Projectiles to make a boss shoot bullets at the player, and the projectile shoots and collides with the player to make the hit effect, but the common event won' play. I deleted a plugin from my computer and it started working again, but it broke again and I don't know what I did. I tried getting rid of all my plugins but that didn't work either. I tried searching online but found no answers. Does anyone have a solution? I've also tried copying exactly what the demo had and it still didn't work.
MZ Galv's Map Projectiles won't turn on a common event.
Javascript/Plugin SupportAre you sure it's supposed to be player action and not event action? Could you show the instructions for those parameters?
Yeah, here it is.
Did you start a new game to test the changes? Also, you changed 96 to 93. Was that intentional?
I did try it on a new game and it didn't work. I did intentionally change the common event to see if it just didn’t like that one, but it still didn’t work.
Ok, can you press F8 after the boss hits you with an attack and see if there are any errors in the Console?
I opened the console and there doesn't seem to be any errors.
And everything about the bullet works except for the common event? It hits the player? Is the Z layer setting correct?
Yeah, it plays the hit animation and everything, but it doesn't play the event. I also tried to make it turn on switches but that didn't work either.
Does it work if you put those parameters in a regular script call and not the premade quickTar
I tried to use it without the premade projectiles and it did the same thing.
Ok, can you post what you put for the script call?
Example:
* Galv.PROJ.dir(9,'d4',3,6,'bullet0',1,'c(7)|e',[5],[],3,1);
* Fires a projectile from event 9
* It will fire in direction 4 (left)
* It has a speed of 3
* It will travel 6 tiles
* It will use 'bullet0' graphic from /img/pictures/.
* It will play animation 1 on contact.
* If it hits the player it will run common event 7.
* If it hits an event it will erase it (if event has the <projEffect> tag).
* It will collide on region 5
* It has no terrain collision
* It has a z value of 3 (same as player)
* It has an identifier of 1
Example:
* Galv.PROJ.dir(9,'d4',3,6,'bullet0',1,'c(7)|e',[5],[],3,1);
* Fires a projectile from event 9
* It will fire in direction 4 (left)
* It has a speed of 3
* It will travel 6 tiles
* It will use 'bullet0' graphic from /img/pictures/.
* It will play animation 1 on contact.
* If it hits the player it will run common event 7.
* If it hits an event it will erase it (if event has the <projEffect> tag).
* It will collide on region 5
* It has no terrain collision
* It has a z value of 3 (same as player)
* It has an identifier of 1
Here it is
Galv.PROJ.dir(2,'d4',4,7,'ZeldaBm',1,'c(93)',[],[],3,1);
Galv.PROJ.dir(2,'d4',4,7,'ZeldaBm',1,'c(93)',[],[],3,1);
Could you post the event or location you're running that script from?
Also it looks like the examples all have a split parameter, e.g. 'c(7)|e'
The left side of the | is what happens when it hits the player, the right what happens when it hits a tagged event. You might have to put 'c(93)|'
Also it looks like the examples all have a split parameter, e.g. 'c(7)|e'
The left side of the | is what happens when it hits the player, the right what happens when it hits a tagged event. You might have to put 'c(93)|'
Here it is.
It should be c(93)|
Don't put the line in the parentheses
Don't put the line in the parentheses
Oops, my bad. I fixed it but it still doesn't seem to be working.
Does event 2 exist? Is the bullet being fired from event 2? Are you sure self switch B on event 1 is on?
Yeah, it shoots from event 2 and the self switch is on, but when I run into the bullets nothing happens.
Could you put this script call before the other script call
$gamePlayer._projEffect = true;
Also try
$gamePlayer._projEffects = true;
Also can you check if the effect happens if the player is standing still but is hit by a bullet?
$gamePlayer._projEffect = true;
Also try
$gamePlayer._projEffects = true;
Also can you check if the effect happens if the player is standing still but is hit by a bullet?
Original thread: https://forums.rpgmakerweb.com/threads/galvs-map-projectiles-wont-turn-on-a-common-event.165700/