Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Event repeated after entering the same room

help, I made an event in a room, I already made sure that Those events are erased after they finish. After I tried it out, I exited the room and entered it again, when I came back in, those events returned! pls help me..
 

Xilefian

Adventurer
Xy$
0.00
Erase event will remove it from the map, but it will not erase it from the game, so when you leave and re-enter the game will reload the map as normal and see that the event should be there and place it back.

It's the same reason why events don't remember their move-routes after you've moved them, exited and reentered a map.


To remove (disable) an event you need to use a self switch, which are saved to the game. Instead of erase event, turn on a self-switch and then make a new page for the event; you then need to set the new, empty page to depend on the self-switch that you turn on in the first page, which is done with the top-left conditions in the events editor.

Making the event reappear again is a bit more complicated as you'll either have to use a script to go inside and switch the self switch off or use a global switch.
 
Erase event will remove it from the map, but it will not erase it from the game, so when you leave and re-enter the game will reload the map as normal and see that the event should be there and place it back.

It's the same reason why events don't remember their move-routes after you've moved them, exited and reentered a map.


To remove (disable) an event you need to use a self switch, which are saved to the game. Instead of erase event, turn on a self-switch and then make a new page for the event; you then need to set the new, empty page to depend on the self-switch that you turn on in the first page, which is done with the top-left conditions in the events editor.

Making the event reappear again is a bit more complicated as you'll either have to use a script to go inside and switch the self switch off or use a global switch.
great, now I'm gonna study about self switches, thx^^
[doublepost=1483851657,1483841001][/doublepost]
Erase event will remove it from the map, but it will not erase it from the game, so when you leave and re-enter the game will reload the map as normal and see that the event should be there and place it back.

It's the same reason why events don't remember their move-routes after you've moved them, exited and reentered a map.


To remove (disable) an event you need to use a self switch, which are saved to the game. Instead of erase event, turn on a self-switch and then make a new page for the event; you then need to set the new, empty page to depend on the self-switch that you turn on in the first page, which is done with the top-left conditions in the events editor.

Making the event reappear again is a bit more complicated as you'll either have to use a script to go inside and switch the self switch off or use a global switch.
just tried it now and it works, thanks^^

but I have another question.. what are self switch b etc. for if I'm just using A? does it matter?
 

JanSnow

Villager
Xy$
0.00
Self switches aren't just for "erasing" events. A lot of more complicated eventing requires multiple self-switches. Self-switches can also function as switches that aren't global, if you're trying to cut down on the number of switches in your game.
 

Xilefian

Adventurer
Xy$
0.00
Building on what JanSnow says, you can use self-switches to add treasure chests for items that stay empty once you grab the item and leave the map or permanently unlock a door with a key item without using up a global switch.

The additional self-switches could then be used to make the door completely damaged and unable to be used if you've gone through the door more than 20 times, or something. It's entirely up to you what you use them for, but they're not explicitly designed for "erasing" events, after-all, the event is still there; you're just showing a blank page.
 
Self switches aren't just for "erasing" events. A lot of more complicated eventing requires multiple self-switches. Self-switches can also function as switches that aren't global, if you're trying to cut down on the number of switches in your game.
"Welcome to the world of programming scarlett, welcome to the world of programming"
thx for explaining, this is gonna be complicated the more I do it >w<
 
Top