The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: NeoKage on October 01, 2006, 08:36:23 PM

Title: Switches?!
Post by: NeoKage on October 01, 2006, 08:36:23 PM
What is a switch used for and who do you use it?
Title: Re: Switches?!
Post by: Zeriab on October 01, 2006, 09:22:06 PM
Click on my sig. It leads to a tutorial on switches.
Title: Re: Switches?!
Post by: NeoKage on October 02, 2006, 12:03:50 AM
that helps a little, but i still don't get it
Title: Re: Switches?!
Post by: Arrow on October 02, 2006, 12:08:35 AM
Basucally it's like this:

A switch has two positions, on and off.

Now, say an event has a page that relies on a switch. Without the switch being turned ON, the page won't run.

It's like a light, the switch must be on for it to be active.
Title: Re: Switches?!
Post by: Tsunokiette on October 02, 2006, 12:09:47 AM
Zeriab's Tut Summed Up - (continuing arrow's point)

___________________

Switches -
Are global, they can be set to on or off, sort of like true or false. If a major event happens in a game use a switch, and through conditional branching, you can achieve different effects.

Local Switches -
Each event has its own set of local switches, (A, B, C, D). They do not affect anything besides the event in which they are used. These are used more for local events (hence their name), ex : Opening a treasure chest.
Title: Re: Switches?!
Post by: Winged on October 04, 2006, 02:09:34 PM
hmm...my way of understanding switches is like this...

Its like a trigger, when you make something like a treasure chest, you want the chest to stay opened after the player has taken what is inside for the rest of the game. You make the event and at the end, turn a switch on. Then, make a new page and have the picture of the chest opened and at the perconditions, tick the "Switch" box and find whatever switch you turned on in the previous page. Add a message like "Nothing Inside" and maybe some sound and your ready to go and test it out.

This should get you understanding switches a lil bit more (I hope) and don't sweat it cause it took me sometime to understand switches....and an even longer time to understand variables (still haven't mastered it yet).

~Winged

Title: Re: Switches?!
Post by: shiroun on October 04, 2006, 07:15:13 PM
With switches, don't try to do switches on the teleports, i.e. dont try to make it so when you go downstairs, the switch turns on because of the teleport, it wont work.
Title: Re: Switches?!
Post by: Ericmor on October 04, 2006, 08:17:43 PM
To control events like NPCs, chests, etc, you use variable or switches. They're numerical values that control all actions inside the game. Like: you haven't got the pass from the mayor to exit the city? You already got the treasure from a chest? Those are all numbers, inside the game.
Switches are like variables, only that it's only has two values: 1 or 0 (on/off). You control simple events with it, like chests. Switches are just a simple alternative to variables. Switches are used normally for simple chests: condition for being active? Switch A must be Off (the starting position off a switch), then, inside the chest event, you add:"Turn Self-switch A: On" after giving the character whatever was inside. Next time you return to that particular map, the chest won't be there.
The 'appearing' conditions of all events are checked every time a map is loaded.
WARNING: self-switches of events CAN'T be changed or measured by other events.
For that you must use global switches- they can be changed by remote events.
Title: Re: Switches?!
Post by: NeoKage on October 05, 2006, 01:25:14 AM
hee hee, i got it right after i posted the one when i said i didn't, they are really handy  :D
Title: Re: Switches?!
Post by: Chaos of Destruction on October 09, 2006, 06:14:19 PM
They are Very Handy for games. I knew how to use switches after i looked up on someone's game.