hello...im EXTREMELY new to rpg maker and im wondering how to make an event like a piece of text only occur once
how to make events only happen once
RPG Maker VXAce SupportDepends 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.
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.
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).
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).
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!"
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!"
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.
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
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.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-events-only-happen-once.109753/