RePeat

Veteran
Veteran
Joined
Jul 24, 2021
Messages
32
Reaction score
11
First Language
German
Primarily Uses
RMMV
I made a one-use key item for a specific point in my story that teleports the player to a new location through a common event. In the same common event there's a scene, where there are multiple people talking. During the conversation one of the NPCs is supposed to walk away but that ain't happening. Is it just not possible?

The Player Character is able to walk a set path, everyone else isn't. The game just waits while no one is actually moving.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,357
Reaction score
8,771
First Language
German
Primarily Uses
RMMV
done correctly, a common event should have no problems controlling another event.
so if that doesn't happen, you did something wrong with the event.

show us screenshots of the event and we can start looking for what you did wrong.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,986
Reaction score
2,304
First Language
EN
Primarily Uses
RMMZ
You have something like this, right?

Transfer Player Set Move Route: Player Set Move Route: Event 1 Set Move Route: Event 2
The event move routes will do nothing in this setup, due to a specific check in the core scripts: the character to move must be on the same map as the event that is doing the moving. A reserved common event is treated as a member of the map on which it is reserved. See Game_Interpreter.prototype.character in rpg_objects.js for details.

Instead, I recommend using an Autorun event on the destination map to control the post-transfer cutscene.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,196
Reaction score
15,545
First Language
English
Primarily Uses
RMMV
Does your common event transfer the player to a new map and then do the character movements?

As far as I remember, XP is the last engine that would let you do that. With later engines, if it recognized that you had changed maps, it would no longer move any events. It doesn't matter if it all happens within the same event or within a common event. When I was making my game, I actually removed this check from the code because I wanted a single common event to be able to do this sort of thing over multiple maps.

So you should have the common event attached to the key item ONLY transfer the player to the new map. The cutscene should be an autorun event ON the new map.


edit: if only I typed a little faster :D
 

RePeat

Veteran
Veteran
Joined
Jul 24, 2021
Messages
32
Reaction score
11
First Language
German
Primarily Uses
RMMV
Thanks, guys. Good to know you are just not supposed to do that after all. I was wondering and wondering where things went wrong.

I ended up replacing the move command with a switch that activates a parallel event on the new map.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,196
Reaction score
15,545
First Language
English
Primarily Uses
RMMV
It should be autorun for a cutscene. Otherwise the player will be able to move around while the NPCs are moving.
 

RePeat

Veteran
Veteran
Joined
Jul 24, 2021
Messages
32
Reaction score
11
First Language
German
Primarily Uses
RMMV
In my case this works best, as the walking NPCs is more of a background thing and while that happens the dialogue is still going on that I put in the common event.
 

Latest Threads

Latest Profile Posts

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)
Just for the record you CAN use the "Exclude unused files" successfully to trim a project down seriously even if you're doing calls to various assets via plugins and such. BUT you need to do a full playtest of pretty much every option to ensure you did get every one of those other assets added in. Then I dumped the assets into a fresh copy of the project and yay it was like 400 Meg......

Forum statistics

Threads
117,269
Messages
1,106,000
Members
153,445
Latest member
sweetchi
Top