RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Need help with switches

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 85
November has come when it's gone away...
I don't understand how to use switches and variables, can someone help me?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
You could try reading tutorials on this board. Such as this one:

http://rmrk.net/index.php/topic,14159.0.html

Please use search engine. You can also look at tutorials for RMXP that cover switches and variables, as they are almost unchanged. The one big difference is that self-switches do not exist in 2k/3

**
Rep: +0/-0Level 85
November has come when it's gone away...
thanks a lot!

**
Rep: +0/-0Level 85
November has come when it's gone away...
Still need a little help with switches (thnx for variables though)

**
Rep: +0/-0Level 85
Switches are easy to understand.  Think of them as a switch to a light bulb.  A switch, unlike a variable, can only be turned on or off.  Switches are excellent for opening up custom menus, changing NPC dialogue, sparking events, and so forth.  Under SWITCH operations, you can change switches to ON, OFF, and even a TOGGLE ON/OFF command.

Variables are different from switches because they store values instead of just turning on or off.  Variables are useful for many miscellaneous events in the game like a bestiary for storing monster data and displaying the number slain.  Nevertheless  variables are useful when dealing with certain value of game play elements than binary elements.

*
Rep: +0/-0Level 84
ROFL, when I didn't understand switches (most of my RPG maker life) I copied the map when something changed and changed the events accordingly. It was irritating  :P

*
Resident Cloud
Rep:
Level 91
look on the back of your computer youll see a switch with 1/0 on it. what happens if its on 0. Thats how a switch in rpgmaker works.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Perhaps easier, think of a switch as a light switch, and a variable as a dimmer switch. Switches have two positions and you can set things accordingly, while variables have many positions for if your object needs them.