can some one help me
springo
14 Aug 2004, 19:32i want to make my airlock only accessable when you have the object suit and the radion flag has been set. but it wont get in to the airlock even if you have those things. the code is
thanks i really need it
'
"Space Escape"
' Created with QDK 3.52 - UNREGISTERED VERSION
define game <Space Escape>
asl-version <350>
gametype singleplayer
start <bay>
game author <Spring Mywell (MaDbRiT for the airlock code 1.00)>
game version <2.00>
game info <Created with QDK 3.52 - UNREGISTERED EVALUATION VERSION.>
startscript {
flag on <outer_closed>
flag off <inner_closed>
flag off <radion>
flag off <lock>
flag on <suitlock>
}
nodebug
end define
define synonyms
end define
define room <bay>
alias <cargo bay>
prefix <the>
look <A cavernous, empty hold, unlit except for the light spilling in from the open airlock. >
place <the; airlock> if flag <lock> and flag <suitlock> then goto <airlock>
place <the; cockpit>
place <the; rocket room>
end define
define room <airlock>
prefix <the>
out <the; bay>
script msg <|nThe airlock has simple controls, allowing the user to seal or unseal the inner or outer hatches. Someone has scrawled a warning and taped it to the wall. It says; |cr|b|s18|nBE CAREFUL - SAFETY INTERLOCK FAULTY!|s00|cb|xb>
description {
msg <a small, almost featureless room. |nThe inner hatch is |xn>
if flag <inner_closed> then msg <sealed shut.> else msg <open.>
msg <The outer hatch is |xn>
if flag <outer_closed> then msg <sealed shut.> else msg <open.>
}
afterturn override if not flag <outer_closed> and not flag <inner_closed> then {
msg <There is a huge explosion as the ship instantly depressurises - blasting you and most of the ship's contents into space in lots of little pieces...|n|n(You must NEVER have both hatches of an airlock open at the same time)>
playerlose
}
command <seal inner door;seal inner hatch;close inner;close inner hatch> {
if flag <inner_closed> then msg <The hatch is already sealed shut.> else {
msg <The hatch door hisses as it seals shut.>
flag on <inner_closed>
create exit out <airlock;>
}
}
command <seal outer door;seal outer hatch;close outer;close outer hatch> {
if flag <outer_closed> then msg <The hatch is already sealed shut.> else {
msg <The hatch door hisses as it seals shut.>
flag on <outer_closed>
create exit out <airlock;>
}
}
command <unseal outer door;unseal outer hatch;open outer;open outer hatch> {
if not flag <outer_closed> then msg <The hatch is already unsealed.> else {
msg <The hatch door unseals with a loud hiss.>
flag off <outer_closed>
create exit out <airlock;space>
}
}
command <unseal inner door;unseal inner hatch;open inner;open inner hatch> {
if not flag <inner_closed> then msg <The hatch is already unsealed.> else {
msg <The hatch door unseals with a loud hiss.>
flag off <inner_closed>
create exit out <airlock;bay>
}
}
command <seal all> {
flag on <outer_closed>
flag on <inner_closed>
msg <You Did the Auto Lock Setting On The Airlock>
}
end define
define room <space>
look <floating weightless outside the ship. Beneath you a dull red glow emanates from the open airlock.>
north stop
north stop
north msg <>
down <airlock>
end define
define room <Cockpit>
alias <cockpit>
out <the; bay>
define object <radio>
look <It is a radio, which has a special card to>
speak {
if flag <radion> then msg <The person at the end of the line says to exit the ship as soon as u have the code.> else msg <You need the access card to use this radio>
flag on <lock>
msg <|cr|b|s18|nWARNING! WARNING!- 1 MINUTE TIL IMPACT!|s00|cb|xb>
}
examine <It is broken.>
end define
define object <cupboard>
look <It is the escape suit cupboard.>
take {
msg <You open the Cupboard. You Take Out The Space Suit>
flag on <suitlock>
give <suit>
}
speak <It cant talk.>
examine <It is the escape suit cupboard.>
prefix <the>
end define
define object <suit>
drop {
flag off <suitlock>
move <suit; Cockpit>
}
end define
end define
define room <rocket room>
out <the; bay>
define object <card>
take {
flag on <radion>
give <card>
}
end define
end define
define text <intro>
You stand on a Abandoned Ship Heading Towards The Sun and the ships rockets have been disabled. You Mission Is To Open the Airlock somehow and escape.
end define
define text <win>
end define
define text <lose>
end define
thanks i really need it
Farvardin
14 Aug 2004, 22:54you can code something like that :
if flag <suit_on> then {
create exit northeast <bay; airlock>
}
or create a command :
command <wear #@suit#> {
create exit northeast <bay; airlock>
}
(untested, but it's something like that)
if flag <suit_on> then {
create exit northeast <bay; airlock>
}
or create a command :
command <wear #@suit#> {
create exit northeast <bay; airlock>
}
(untested, but it's something like that)
springo
15 Aug 2004, 10:29could you do me a favour and test it for me since u have the code so can u put it those corrections and send that code to me 
davidw
15 Aug 2004, 10:53In the time it took you to type that, you could have copied the code into your game and tested it yourself.
springo
15 Aug 2004, 10:57i just want someone else apart from me testing my games since i think all my games are good when some times there not
davidw
15 Aug 2004, 13:10You're not asking him to test it, just check the code is correct. Which is something you could have done far quicker on your own.
springo
15 Aug 2004, 13:11oh well then i guess ur right