RMMZ Issues with VS Spawn event from event template

dm604

Regular
Regular
Joined
Sep 18, 2021
Messages
52
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: 10
  • 2.png
    2.png
    186.7 KB · Views: 10
  • 3.png
    3.png
    85.4 KB · Views: 10
  • 4.png
    4.png
    192.3 KB · Views: 7

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
10,554
Reaction score
6,819
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

Regular
Regular
Joined
Sep 18, 2021
Messages
52
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

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,971
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
10,554
Reaction score
6,819
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

Regular
Regular
Joined
Sep 18, 2021
Messages
52
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: 3

Latest Threads

Latest Profile Posts

How it feels right now with Advent resources and Sleigh the Competition event screenshots coming in.
WindRyder_ChristmasIncoming.png
So, apparently, Glow-in-the-Dark cats exist.

Are Sir Oinkers and the fairy responsible for all those dead uhm sleeping monsters?
Well, they now can be in your game, thanks to Day 4's content!
1701691228682.png
Stealing.
1701688258164287088.gif

Forum statistics

Threads
136,736
Messages
1,269,332
Members
180,455
Latest member
Razuk
Top