RMMZ Issues with VS Spawn event from event template

dm604

Veteran
Veteran
Joined
Sep 18, 2021
Messages
51
Reaction score
17
First Language
English
Primarily Uses
RMMZ
Hi, fellow makers:

I can't seem to use the spawn event properly.
Can someone please enlighten me?

Event source (template)
Map: 001
Event: 053
Name: Erina template

Target map: 030

Target X-coordinate: 2
Target Y-coordinate: 2

I event set up a switch to track whether the spawn is successful or not.
Here's the weird part, I don't see any new event spawns, but the switch says the spawn is successful!!!
(It was off before I talk to NPC and on after talking to NPC.)


The original event wording has this script for X & Y:
$gamePlayer.frontX()
$gamePlayer.frontY()

I've tried everything from:
2
2

$gamePlayer.frontX(2)
$gamePlayer.frontY(2)

Does anyone know the answer to this?
Thank you.
 

Attachments

  • 1.png
    1.png
    422.1 KB · Views: 8
  • 2.png
    2.png
    186.7 KB · Views: 8
  • 3.png
    3.png
    85.4 KB · Views: 8
  • 4.png
    4.png
    192.3 KB · Views: 6

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
9,116
Reaction score
5,971
First Language
Dutch
Primarily Uses
RMXP
The second screenshot should have worked. The spawned event should have appeared on tile 2,2 if you do that. Screenshot 4 is never going to work, because there already is an event in front of the player (namely the one you're interacting with).
 

dm604

Veteran
Veteran
Joined
Sep 18, 2021
Messages
51
Reaction score
17
First Language
English
Primarily Uses
RMMZ
The second screenshot should have worked. The spawned event should have appeared on tile 2,2 if you do that. Screenshot 4 is never going to work, because there already is an event in front of the player (namely the one you're interacting with).

Oh, so that's what that piece of code means.

Ok, I'll try to work on it more.
Will the event only spawn on specific tiles?
I asked this because I tried to demo it on a blank map and I'm sure that the event did not spawn at all, although the switch says otherwise. :(
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,198
Reaction score
15,546
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Thank you.

 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
9,116
Reaction score
5,971
First Language
Dutch
Primarily Uses
RMXP
Oh, so that's what that piece of code means.

Ok, I'll try to work on it more.
Will the event only spawn on specific tiles?
I asked this because I tried to demo it on a blank map and I'm sure that the event did not spawn at all, although the switch says otherwise. :(
Well, you've set a few options as true, meaning event can only spawn on tilese where there isn't already an event and where events can actually walk on (so it won't be able to spawn in a wall, for example).

Spawning definitely works as I've tried it myself in their demo project.
Try and change it to the
$gamePlayer.backX()
$gamePlayer.backY()
as that will make it spawn behind you.
 

dm604

Veteran
Veteran
Joined
Sep 18, 2021
Messages
51
Reaction score
17
First Language
English
Primarily Uses
RMMZ
Thank you very much!
I think I know why.

I wanted to be cautious, so I even copied and pasted the event name word-for-word.
However, I just realized that doing so will NOT cause the event to spawn for whatever reason.

If I remove the name, the event will spawn properly.
I guess this was why I wasn't able to see the event spawn, but the switch said that the event spawned successfully.


My event has a name and it's not called untitled.
But for whatever reason, if I leave that field blank, my event can spawn.
Just a heads-up for those who may encounter the same issue in the future.

Thank you for helping me, as always.
Take care! :)

Well, you've set a few options as true, meaning event can only spawn on tilese where there isn't already an event and where events can actually walk on (so it won't be able to spawn in a wall, for example).

Spawning definitely works as I've tried it myself in their demo project.
Try and change it to the
$gamePlayer.backX()
$gamePlayer.backY()
as that will make it spawn behind you.
 

Attachments

  • Annotation 2021-10-26 022150.png
    Annotation 2021-10-26 022150.png
    209.6 KB · Views: 2

Latest Threads

Latest Posts

Latest Profile Posts

aww man, color hex code #C4C4C4 doesn't work for the tint value in this scene I need something darker, which stinks just because I liked that one it was my favorite plastic explosive three times...#696969 (nice) should work better (WHY IS MY BRAIN LIKE THIS)
Tell it to me straight, doc. If I've been trying to piece together a "shorter" game to learn stuff outside of game jams... am I just running away from my WIP? :v
Well, I've got a party tomorrow, and my friends are coming over. I wanted to work a bit on the Fandom Scouts assets so I can be ready when that update arrives... in other news, Pizza Time Horror is getting a second teaser, and it shows Cabaret Helen's last performance before the location closed.
Also who used to be scared of Chuck E as a kid? I was! Now I love him!
The new cards and what they do:

(I am clearly not a youtuber... Haha)

Forum statistics

Threads
117,276
Messages
1,106,057
Members
153,451
Latest member
Gaato
Top