How to make an event reoccur every time a certain map is entered?

hiddenrock44

Warper
Member
Joined
Jun 14, 2015
Messages
2
Reaction score
0
Primarily Uses
Hello.

I've got no experience with codes or anything of the sort, but I decided I wanted to try to make a game.

My problem is I want this same event to occur every time someone enters a certain area, but I run into one of two problems no matter what I try to do.

Basically, I want an object to act as a music player and I'd like for it to change the music playing in that area. I want the music to be changed every time it is approached whether I leave the area or not. When I try to make that happen I am either able to change the music one time only ((despite leaving and reentering the map)) or I am caught in an infinite loop of some sort.

And since I really have no idea what I'm doing I need advice from someone who does.

I'm probably making it a lot harder than it should be.

I will provide pictures of all the things I've got for my event in hopes it'll help.

And if you do help me, please try to explain things as simply as possible. I honestly don't know what I'm doing.









I don't know if this counts as too many pages or not.

I'm just trying anything I can think of.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Set it to autorun, last command should be erase event. That way it runs once every time you go to that map.


If you want it changeable everytime you activate the event, just make it Action triggered
 
Last edited by a moderator:

hiddenrock44

Warper
Member
Joined
Jun 14, 2015
Messages
2
Reaction score
0
Primarily Uses
Set it to autorun, last command should be erase event. That way it runs once every time you go to that map.

If you want it changeable everytime you activate the event, just make it Action triggered
I ((think I)) tried  what you said to do accurately.

Either I'm not doing it right or I am but I've also messed up elsewhere, too?

I am stuck in an infinite loop of "Music has been changed!" and I don't know why.
 

Watcules

Villager
Member
Joined
Apr 20, 2015
Messages
25
Reaction score
3
First Language
Indonesian
Primarily Uses
If you can't understand what Adiktuzmiko means :

Automatically start when the player is entering the map

Check_1.png

Need to press action button in some object/NPC to make the event start

Check_1.png
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,367
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
I am stuck in an infinite loop of "Music has been changed!" and I don't know why.
Your mistake is to have used "exit event processing" when the advice above was to use "erase event".
Those are two different commands
 
Last edited by a moderator:

Andromus

Warper
Member
Joined
Jun 17, 2015
Messages
2
Reaction score
0
First Language
English
Primarily Uses
My way might be sloppy but it works. I've made a conditional script to display the name of your town based on players name and class type when you enter. 

I set page 1 to autorun, and use a switch. The reason is because I don't want the event to go off the very first time you enter that zone, but every other time after that i do, so when you want it to start happening whenever you enter that zone, just turn on that event page.

So at the end of the event, set switch to page 2 on parallel process.

This way when you walk into the room, it can automatically ask you if you want to change the song or not.

Then on your events used to exit the town or enter town from leaving a building, I turn off that events second page, and turn on page 1 again.

Take note on my text commands used to auto finish the messages without button press so the event doesn't freeze.

Those commands are here:

\V[x] Variable
\N[x] Name of Actor x
\P[x] Name of Party member x
\G Gold display
\C[x] Colour change
\i[x] Icon display
\{ Text size increase
\} Text size decrease
\. Wait 0.25 seconds
\| Wait full second
\! Wait until confirm button
\> Instant Text
\< End Instant Text
\^ Auto next page  <-------------------
\\ Display "\"
I use the \^ command at the end of my text message that displays the towns name, so that the message ends itself.

I would post my images for my scripts but I'm not allowed yet, as this is my first forum post.
 

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

Latest Threads

Latest Posts

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,085
Members
137,583
Latest member
write2dgray
Top