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,115
Reaction score
5,968
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,134
Reaction score
15,532
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,115
Reaction score
5,968
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

We must press on. For all those we couldn't save. For all those we might yet save.
FirestormNeos wrote on DarkPlasmaBall's profile.
asking this here instead of the thread in question to avoid derailing it, but I'm curious; is there a particular reason you'd include a "Terms of Use" for an RPG Maker game? Like, are there multiplayer features for the game you're working on?
The holidays are upon us! Everyone search for safety from the grocery store music!
I don't understand people sometime. Walking to work today came across someone walking the opposite way in a nice suit, I politely move to the side into the shrubbery so he doesn't have to get his suit dirty and say "good morning" as he passes me, he turns around glaring daggers and asks "why are you talking to me?" like he's bloody offended by me wishing him a good morning or something. Just, why?
I dreamed about watching Gackt concert live.
He was riding some kind of crescent moon boat.
But his appearance resembled Andhika Kangen Band (Indonesian singer),
and the first song he sang was L'arc en Ciel's Hitomi no Jyuunin.
Weird, but still beautiful though. :D

Forum statistics

Threads
117,135
Messages
1,104,881
Members
153,198
Latest member
burkedylan
Top