Persistent Event Question

Status
Not open for further replies.

CapSpinzz

Warper
Member
Joined
Nov 13, 2013
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Hi all!

I'm new to the forums so forgive me if I've posted in the wrong thread.

I've looked around a bit and I've found something I believe to be what I'm looking for but am unsure if it's exactly what I want.

Basically, I want to be able to enter a map > activate an event that moves the event 1 space to the left > leave the map > re enter the map and have the event be in the same place as when I activated it (1 space to the left from where it was originally)

Now I was able to do this with a fire place I made, you can leave the house and re enter and the fire is still on, but it doesn't move, it only changes to event page 3 where it has an animation.

I found a script called Persistent Map Events 2.0 and that's what I think I need, however the description of "How to use" seems a little lacking or it may just not be for VX Ace. It says to "Paste anywhere in the Materials Section". I've looked around in resources but can't find a materials section?

So for VX Ace, is there just a box I can tick to make everything persistent or do I have to jump through some hoops?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,367
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
That section is in the script editor - the last section before the main function, and scripts usually all go below the materials header, but above main.

To save an event's position, you need scripts - otherwise all events will jump back to their original position upon reentering the map.

There are several scripts that can be used to save the event position, and in most cases you not only need to add the script in the script editor, but also add a save command to the event to save the position whenever you want it to be remembered.
 

Berylstone

Veteran
Veteran
Joined
Jun 3, 2013
Messages
642
Reaction score
62
First Language
English
Primarily Uses
Basically, I want to be able to enter a map > activate an event that moves the event 1 space to the left > leave the map > re enter the map and have the event be in the same place as when I activated it (1 space to the left from where it was originally)
You could turn ON a Switch after the player moves the event one space to the left of it's original position.

Then create an event that triggers when the player re-enters that map.  Have the event check if the Switch is ON and move the object one space to the left if it is.
 
Last edited by a moderator:

CapSpinzz

Warper
Member
Joined
Nov 13, 2013
Messages
2
Reaction score
0
First Language
English
Primarily Uses
You could turn ON a Switch after the player moves the event one space to the left of it's original position.

Then create an event that triggers when the player re-enters that map.  Have the event check if the Switch is ON and move the object one space to the left if it is.
I actually had that idea as well, however then the player would see the event move each time they re-entered and that was a problem for me. 

After a quick look (and some help from the first reply with the materials section of the script list) I was able to get it working. Thankfully the script author made a global persistent option. VERY useful for mu current project. Thanks for the help guys! :D
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Remember event position script


Install that, at the end of the move route that puts the event where you want it to stay add a Script: save_pos call (as part of the move route).


Edit: The player can see the event move because you've set it to autorun. Autorun events start AFTER the map is visible. If you want to do "setup" tasks on your map BEFORE the player can see it, put them in a Parallel Process event instead - they will be done before the screen fades in again and the player won't see it happen. And always, with autorun/parallel process events, either erase them (if you want them to run again next time) or use self switches to stop them running repeatedly on the map.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Last edited by a moderator:
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,083
Members
137,583
Latest member
write2dgray
Top