Events that autorun every time Player enters the Map?

Markholla

Villager
Member
Joined
Sep 24, 2013
Messages
10
Reaction score
1
First Language
English
Primarily Uses
I want to create events that autorun a single time every time the player a map.
Turning off/on switches every time a player leaves/enters the map could be very hectic.

I was wondering If there was a Plugin to solve my problem.
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
497
Reaction score
193
First Language
thai
Primarily Uses
RMMV
erase event
it will come back in next visit
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
1,705
Reaction score
562
First Language
Dutch
Primarily Uses
RMMV
create an autorun event and on the bottom "erase event"

erase event make it normal when an auto run have activate the event on that map.
and re-run again when you go inside that map again.

the only issue here is that you enter a house or cave and enter that map again,
it will run again.
 

Markholla

Villager
Member
Joined
Sep 24, 2013
Messages
10
Reaction score
1
First Language
English
Primarily Uses
Thanks. I figured it out :p I am a little dumb.
 

LVGames

Welcome to Sword Swinging Super Slashers®
Veteran
Joined
Feb 26, 2020
Messages
105
Reaction score
237
First Language
English
Primarily Uses
RMMV
Would that work if you save the game and load it will the event come or will it be gone?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,032
Reaction score
7,027
First Language
German
Primarily Uses
RMMV
Would that work if you save the game and load it will the event come or will it be gone?
the current map is stored inside the savefile, so it would still be gone on loading a savefile - until you leave the map and come back to it, because then it would be reloaded from the default map, causing the autorun to work again.
 

LVGames

Welcome to Sword Swinging Super Slashers®
Veteran
Joined
Feb 26, 2020
Messages
105
Reaction score
237
First Language
English
Primarily Uses
RMMV
@Andar I was wondering what was a simple way to do a Start on Layout Code. This is it Thank You for the quick reply.
 

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

Latest Profile Posts

A mousefolk sprite I made, I think I did good.
Discovering math. functions for damage formulas was one of the greatest things for me.
It's very useful for balancing skills to work in a variety of possible circumstances.
For example if you have a skill that is supposed to work for both mages and warriors:
Code:
Math.max(a.atk * 2 - b.def, a.mat * 2 - b.mdf)
SpaceX: First-ever successful (manned) commercial spaceflight!! In these terrible and self-sabotaging times for the world, that's a ray of excitement and hope I needed badly.
GameDevJohn wrote on whtdragon's profile.
Hey I used you bunny and cat spritesheet for a game jam game. Thanks so much! You have really beautiful stuff here. I'll credit you at https://gamedevjohn.itch.io/bunny-boy

Forum statistics

Threads
98,018
Messages
948,574
Members
129,276
Latest member
abhikhurana
Top