Page 1 of 1
Script for locking and unlocking a door.
Posted: June 10th, 2010, 3:56 am
by davidjanet73
Is there a script for us to lock and unlock the door? Let's say the door is locked, we'll need a key to open it. If you got the key, you can unlock the door, if you got nothing the door won't open.
Is it possible? Thanks for solutions.
Re: Script for locking and unlocking a door.
Posted: June 10th, 2010, 8:46 am
by arcones
I believe this would help:
Code: Select all
key1 = 0
level_trigger_1 = [
if (> $key1 0) [
trigger 1 1
echo "You unlock the door with the key."
] [
trigger 1 0
echo "The door is locked."
]
]
level_trigger_2 = [
key1 = (+ $key1 1)
echo "You picked up a key."
]
Here's the topic, Venima's post's are the ones you need

:
Some Questions
Hope that helps!
Arcones 