how to make events only happen once

Vaal

Warper
Member
Joined
Jun 6, 2019
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMVXA
hello...im EXTREMELY new to rpg maker and im wondering how to make an event like a piece of text only occur once
 

Hero_Claive

(Phoenix Ember)
Veteran
Joined
Jan 5, 2016
Messages
149
Reaction score
88
First Language
English
Primarily Uses
RMVXA
Depends how you want that event to activate.

If it's by interaction (press "Enter" on the event): Change the Trigger in the bottom-left corner of the window to Action Button.

If you want the event to happen automatically, set it to Autorun. After your event is over, use a Self Switch on the first event page that sets Self Switch A to ON. Create a new event page on the same event (at the top of the window) and under conditions, put Self Switch A is ON.

What this does is automatically switch the event to its second page after the first page is done running. If you leave the second page blank, it's basically the same thing as making it run only once. You can also turn the Self Switch OFF any time you want in case you want to run that event again.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ
Rules of events:
1) An event page will only run if all of its conditions (top left section) are fulfilled.
2) If there are many event pages that can run (so their conditions are fulfilled), the event page with the higher number will have the priority.

So if you want an event to run only once, activate a switch or a self switch at the end of that event page (page 1 for instance), and create another page with a higher number (page 2 for instance) with that same switch or self switch as a condition. So basically before it runs, the page 1 has no conditions and can run, but the page 2 can't run since the switch it needs to fulfill its condition isn't active. At the end of page end, that switch is activated, making both page 1 and 2 active, but page 2 has the priority (because of rule #2 of events).
 

Harosata

Dramatic Lightning's BFF
Veteran
Joined
Aug 20, 2015
Messages
246
Reaction score
70
First Language
English
Primarily Uses
RMVXA
The simplest answer is a Switch or a Self-Switch depending on how you access it. That is, a car can change where it goes just by the Self-Switch driving it and by a Switch sitting in the middle of the road.

You can also right-click on the map maker and pull up a treasure chest, an example of an event that works once (You can even remove the item and change the included textbox).

---

Basic Level: Say you want to have a Rock blocking your path until you punch it.

From scratch, make a New Page on your Rock Event so you have two pages. Make the left page have an image of a rock and have the empty right page require a condition of a Switch being on (page priorities are usually right to left). Now, first page, you can have the switch turn on, and if the event requires an Action Button, what happens is that you punch the rock, it runs that page which turns on the switch, and with the switch on, that other page goes on.

aka:
Page 0-
.Text: "I am Rock!"
Switch 1 ON
Page 1-(Switch 1 == ON)
Text: "I shall Rock your World!"

---

Basic Level 2: Or perhaps you have the rock introduce himself and have normal text later.

From scratch, you only need one page. Give the event a face of a rock, then use a Conditional Branch of a switch being OFF (in event page, not the corner). And in that page, have a bit of text and turn the switch on. That way, you touch it the first time and it runs, but the second time and with the switch being on, that portion in the branch doesn't run.

aka:
Page 0-
Conditional Branch: IF Switch 1 == OFF
.Text: "I am Rock!"
.Switch 1 ON
END
Text: "I shall Rock your World!"
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
I am honestly surprised nobody said it so far, but since you are new to the engine and this is a very basic question, you should really spend a bit of your time going around the tutorials. There is a good one made by Andar in my signature. Spending time learning all the necessary stuffs might look like a waste of time, but it really speeds up things later on, giving you enough knowledge to at least achieve basic things. On top of it, it gives you solid basis to understand complex things.

This is very beneficial because there are times when something that looks very simple is, in reality, much more complex. When that happens you want that basic knowledge to be able to understand what other people are saying. Having to look for the required knowledge only when you need it might look appealing but, in reality, requires more time than spending around a month learning from the tutorials.
 

Vaal

Warper
Member
Joined
Jun 6, 2019
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMVXA
I am honestly surprised nobody said it so far, but since you are new to the engine and this is a very basic question, you should really spend a bit of your time going around the tutorials. There is a good one made by Andar in my signature. Spending time learning all the necessary stuffs might look like a waste of time, but it really speeds up things later on, giving you enough knowledge to at least achieve basic things. On top of it, it gives you solid basis to understand complex things.

This is very beneficial because there are times when something that looks very simple is, in reality, much more complex. When that happens you want that basic knowledge to be able to understand what other people are saying. Having to look for the required knowledge only when you need it might look appealing but, in reality, requires more time than spending around a month learning from the tutorials.
thank you. i figured it out but advice will come in handy...ill look though it
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ
I'm a big believer of learning by practicing making a game. Do a small dummy project to discover how the engine works, that's my best advice.
 

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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top