Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
New forum theme up and running!
Charas-Project
»
Game Creation
»
Requests
»
Tutorials
»
Combination Lock Tutorial
« previous
next »
Print
Pages: [
1
]
Author
Topic: Combination Lock Tutorial (Read 2923 times)
fusiondragon2099@yahoo.ca
Member
Initiate
Posts: 12
Combination Lock Tutorial
«
on:
January 25, 2005, 04:31:57 PM »
Ever wanted to have a combination lock for a door/locker/chest/whatever but didn't know how? Well, now you can.
To start, have a Push-Key event trigger where you want your lock.
Step 1: Have an Input Number command for the first number of your combination. Store this in the variable "Comb1".
Step 2: Have another Input Number command for the second number of your command. Store this in the variable "Comb2".
Step 3: Repeat Step 2 for the last numbers of your combination. Store it in the variable "Comb3", "Comb4", etc.
Step 4: Have a Fork Condition Variable like this:
<>FORK Optn Varbl "Comb1"-x
<>FORK Optn Varbl "Comb2"-y
<>FORK Optn Varbl "Comb3"-z
<>Insert event for locker opening here
:ELSE CASE
<>
:END CASE
<>
:ELSE CASE
<>
:END CASE
<>
:ELSE CASE
<>Insert event for failing to open locker here. Don't bother with the other ELSE CASE events; the game doesn't check those.
:END CASE
<>
Logged
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
Tutorials
»
Combination Lock Tutorial