How to make event commands start working only after we left the map?

Patryk

Best in the World
Member
Joined
Jan 15, 2015
Messages
21
Reaction score
3
First Language
Polish
Primarily Uses
Hello everyone, I've been trying to google this question in multiple ways, but it's just to complex to find it, so I created this thread to ask it.

Here's where I am now. I'm doing a quest, there's a choice to get into a fight, and after that fight, the npc is standing in a different place than normal, and it's alright, I want to leave him there, but after I leave the map and come back he stands in his default position again, and I would like to either leave him where he stands or maybe send him somewhere else after I leave the map and come back.

I know that we could put variables to every individual teleport, but I have lots of unique maps I can go to, and it would be a lot of work, so it would be great if there's an easier way to do it.

It's probably so easy to do, but I can't figure it out haha.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
The way I've done this in my game is I have a variable that stores the progress on that quest. Once you do that fight, increase the variable by one (let's say for example it was variable 101 and you set it to 1).

Then, go back to your events on the map, and set it so that the old location shows nothing when variable 101 is >= 1, and the new location shows the event when variable 101 is >= 1.

Replace 101 with the variable you chose, and 1 with whatever your progress counter really is.
 

Patryk

Best in the World
Member
Joined
Jan 15, 2015
Messages
21
Reaction score
3
First Language
Polish
Primarily Uses
It was just what I was looking for, now that npc will be standing there just like I want, even when I return to the map later.

The way I've done this in my game is I have a variable that stores the progress on that quest. Once you do that fight, increase the variable by one (let's say for example it was variable 101 and you set it to 1).

Then, go back to your events on the map, and set it so that the old location shows nothing when variable 101 is >= 1, and the new location shows the event when variable 101 is >= 1.

Replace 101 with the variable you chose, and 1 with whatever your progress counter really is.
Also a great method, thanks!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I also have a Remember Event Position script that just keeps track of where the event is on the map and puts them back there when you return, without actually storing the event in your save file. Might be worth considering if "position" is the only extra thing you want it to remember and you find your save files are becoming too big.
 

Patryk

Best in the World
Member
Joined
Jan 15, 2015
Messages
21
Reaction score
3
First Language
Polish
Primarily Uses
I also have a Remember Event Position script that just keeps track of where the event is on the map and puts them back there when you return, without actually storing the event in your save file. Might be worth considering if "position" is the only extra thing you want it to remember and you find your save files are becoming too big.
Previous answer provided me with everything I need, but thanks anyway.  :)

Just for the record, I'm using bgillisp's method. Very easy to do, without the need for custom scripts.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top