Main Menu
  • Welcome to The RPG Maker Resource Kit.

Switches?!

Started by NeoKage, October 01, 2006, 08:36:23 PM

0 Members and 1 Guest are viewing this topic.

NeoKage

What is a switch used for and who do you use it?

Zeriab

Click on my sig. It leads to a tutorial on switches.

NeoKage

that helps a little, but i still don't get it

Arrow

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.

Tsunokiette

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.
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They're bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I'm the only one, I'm the only one."

Winged

#5
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




shiroun

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.

Ericmor

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.
I need some real WORKING AVI script in RMXP!
3D ANIMATIONS:
http://www.youtube.com/profile?user=Ericmor
3D and 2D anime ART:
http://ericmor.deviantart.com/gallery/

NeoKage

hee hee, i got it right after i posted the one when i said i didn't, they are really handy  :D

Chaos of Destruction

They are Very Handy for games. I knew how to use switches after i looked up on someone's game.

Dungeons and Dragons Dawn of Darkness: 3% (ON HOLD!)
Dark Lands: 7%