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,112
Reaction score
5,963
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,094
Reaction score
15,517
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,112
Reaction score
5,963
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

Today is a great day!
A bust of my character, Lizzabelle, that I put together in GIMP. I combined the RMMZ generated face with my actual illustration of her. This is just me experimenting with busts. I don't really want to use busts in dialogue, but perhaps in the character menu.

2Ixbzbd.png
How many people actually like action commands? (Which is pressing a button at the right time during an attack to deal more damage.)
It is a curse and a blessing getting better at javascript after each plugin... Now I am considering changing two previous plugins completely, and they're not small plugins either -.-' Not to mention that I'll add more features... This is why I never manage to release a game, I just keep updating everything I've already done :p
Hello! Thank you for visiting my Page! ✅

Forum statistics

Threads
117,030
Messages
1,103,953
Members
152,942
Latest member
Korleone21
Top