EwarwoowarIntergalactic Janitor


Posts : 8 Joined: 25 JUL 2008
Status : Online | Originally Posted By kingwtch (8 SEP 2008 10:51am) How would you write a statement that prevents the user from leaving a room unless he has picked up certain items?
Try this:
"The Laboratory " by PaulDV
The player is in a room called The Lab. North of the Lab is Out the Back.
In the Lab is a stethoscope, some mysterious goo and a bunsen burner.
Before going from the Lab while the stethoscope is in the Lab: if the player is not carrying the stethoscope: say "You can't go just yet! You seem to have left something important behind..." instead.
|
Regards, Paul.
[url=www.mudii.co.uk][img]http://www.logicshopltd.co.uk/blbanner.gif[/img][/url]&&[url=http://www.shopjoy.co.uk/free-money/?ref=pauldv]FREE MONEY for YOU![/url]
|
EwarwoowarIntergalactic Janitor


Posts : 8 Joined: 25 JUL 2008
Status : Online | Originally Posted By kingwtch (8 SEP 2008 10:51am) The other question I have is for using objects. I have an elevator button in the hall. The user will want to press it. I do not want them to press it though, as it will lead them nowhere. How can I tell inform I want it to say "on't push that button." when the user attempts to push it?
This seems like an instead statement as well, but there is no command for pushing an object I place in a room called an elevator button. For example,
Instead of pressing the elevator button, say "on't push that."
does not work because Inform doesn't understand the action of pushing the button.
Hmm... Looking at the actions built into I7, both press and push (they are considered the same thing) are listed. I think you may have something else amiss, because this works for me:
"The Laboratory " by PaulDV
There is a room called The Lab. "This is a somewhat stark laboratory. A doorway to the north leads to a room out the back. On the wall next to the doorway is a button with a label which reads 'Do Not Push'". North of the Lab is Out the Back.
The button is scenery in the lab. "It[']s a button - the kind you push, not the kind you do fasten thing with - and appears very worn and probably doesn[']t work any more. It[']s function is unclear, but the sign makes it perfectly clear that it shouldn[']t be pushed."
Instead of pushing the button: say "on[']t push that! The sign says not to...".
|
Regards, Paul.
[url=www.mudii.co.uk][img]http://www.logicshopltd.co.uk/blbanner.gif[/img][/url]&&[url=http://www.shopjoy.co.uk/free-money/?ref=pauldv]FREE MONEY for YOU![/url]
|