Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Understanding switchs
« previous next »
  • Print
Pages: [1]

Author Topic: Understanding switchs  (Read 6559 times)

Offline TheRebelMage

  • Newb!
  • Initiate
  • *
  • Posts: 5
  • Insert epic cacth pharse here
Understanding switchs
« on: July 01, 2010, 02:36:02 AM »
I need help understanding switchs. Can someone explain it in a way that Won't make my brain explode? ??? ???

(in other words a tutorial for beginners. If possible. If not I'll wait till I get more experance
Logged
OWNED!

Offline lilsniffs3

  • Exemplar
  • *
  • Posts: 1,573
Re: Understanding switchs
« Reply #1 on: July 01, 2010, 04:14:52 AM »
Here you go!
Logged

Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: Understanding switchs
« Reply #2 on: July 01, 2010, 07:20:35 AM »
A quick explaination would be:

You have 100 switches to begin with.
All 100 switches can be named for your comfort.
A switch can have the value ON or OFF.
All switches starts as OFF.

Switches can be used to check preconditions. Such as the preconditions of an Event Page or a Conditional Branch.

For example - If you take the chest behind bigevildeadguy's throne then leave that map and return - the chest will be back.
But that won't happen if you give the chest a second page with the precondition "switch [001: thronechest] is ON" as well as adding a switch operation to the first page (Where you reap your treasure) where you turn the switch ON.

Just think of it as a light switch. If the light is ON, the chest can't be opened. And when you open the chest the first time - the switch operation lights the thing.
Logged
Cool RPGM Project!
Sprite till you die

Oh my god, this was ...10 years ago...

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Understanding switchs
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum