![]() ‘mapId’ tells us which map the affected event is on, ‘eventId’ tells us the exact event we’re affecting, and 'A-D' is which self-switch is being changed. The part in the brackets is what we need to focus on, since it’s what tells the engine which event and which self-switch should be affected. The first one we’ll need is one that lets us set a self-switch On or Off, which is $tValue(, true/false). So before we can start setting up self-switch toggles, we need to learn a few script calls. The only issue with using self-switches is that by default, there isn’t an event command that lets us change a different event’s self-switch. Since each event has its own set of self-switches, if we know how to check and change them we don’t need to worry about running out of switches. The only major difference between the three events will be which switch is being turned on/off, in this case our first event uses Switch 17, our second uses Switch 18, and our third Switch 19.īut what if we wanted to have a lot of these types of puzzles in our games? While we could just use a different switch for every event (which would add up quickly) or have a set of switches that are reused for each puzzle (which means that the game can’t have more than one puzzle going on at the same time), there is another option: self-switches. ![]() Each switch event needs a page for when the lever is up and a page for when the lever is down, and interacting with the event will move the lever and turn the switch on or off so the other page will activate. There are a few ways we could check to make sure each lever is in the right position, but in this example we’ll keep it simple and assign each event a switch.įirst thing we’ll event is the movement. To solve this puzzle the player needs to have the first lever up, the second lever down, and the third lever up. But since we don’t want our players to be stuck too long during this puzzle, we can give them a very clear hint with the stone tablet guide. Levers can make for a good simple puzzle since there are only two positions for them to be in, up and down (or left and right), so even if the player doesn’t know the correct positions they can still succeed just by trying all the possibilities. ![]()
0 Comments
Leave a Reply. |