Difference between revisions of ""How do I...?""

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
(Created page with "== Create a locked door that can be opened with a key? == * Make sure the two rooms that will be connected by the door are created and connected. * Create a '''group''' of type ...")
 
(Create a dark room that the player needs a light source to see?)
Line 24: Line 24:
  
 
== Create a dark room that the player needs a light source to see? ==
 
== Create a dark room that the player needs a light source to see? ==
TBC
+
Add any rooms that would be dark without a light source to the location group '''Dark Locations'''.
 +
 
 +
Add any objects that are light sources to the object group '''Light Sources'''.
 +
 
 +
The Dark Locations group should override the short location description, and the tasks should prevent looking and examining things whilst in a dark location without a light source.

Revision as of 18:48, 9 May 2011

Create a locked door that can be opened with a key?

  • Make sure the two rooms that will be connected by the door are created and connected.
  • Create a group of type location and make the two rooms part of this group. This will allow you to make the door visible from the locations at each side of the door.
  • Create a new object of type dynamic - This is your key.
  • Create a new object of type static - This is your door.
    • Select Location Group from the Location of Object dropdown.
    • Select the door location group from the At Location Group dropdown.
    • Select the following properties for your door:
      • Object can be opened and closed (Selecting this allows you to select the next two dependant properties).
      • Open status - Leave as open for now.
      • Object can be locked (This adds Locked to the Open Status selections, and the Key for lock property).
      • Change Open status to locked.
      • Select your key object from the Key for lock dropdown.
  • Edit one of your door locations and select the Directions tab.
  • Add a new restriction to the direction that leads to the otherside of the door. Make this restriction:
    • Object - your door - must - be in state - open
    • Depending on your settings this restriction may be copied to the second location. If not duplicate the restriction in the second location.
  • The door will now block progress unless it is open.
  • Note: As of version 5.0.16 there is no Lock command in the standard library. You will need to create this yourself.

Create a torch that will run out of batteries?

This really needs integer properties to work, so will do a writeup once that's done. It could be done using a variable of course...

Create a dark room that the player needs a light source to see?

Add any rooms that would be dark without a light source to the location group Dark Locations.

Add any objects that are light sources to the object group Light Sources.

The Dark Locations group should override the short location description, and the tasks should prevent looking and examining things whilst in a dark location without a light source.