Smell restrictions (ADRIFT 4 example)

From IFWiki

This mostly works, but I'm unhappy with the brute force approach. I'm a total novice with ADRIFT, so there's probably a better way to do this. -- David Welbourn 11:42, 21 April 2008 (PDT)

Options

  • Adventure title: Field begin.pngSmell RestrictionsField end.png
  • Author: Field begin.pngDavid WelbournField end.png

Introduction & Winning

  • (checked) Display first room
  • Start the adventure in room: Field begin.pngStreetField end.png

Rooms

Street

  • Short room description: Field begin.pngStreetField end.png
  • Long room description: Field begin.pngYou are in a street. The sewer is below you.Field end.png
  • Move Down to Field begin.pngSewerField end.png

Sewer

  • Short room description: Field begin.pngSewerField end.png
  • Long room description: Field begin.pngYou are in a sewer. The street is above you.Field end.png
  • Move Up to Field begin.pngStreetField end.png

Objects

a flower

  • Object Prefix: Field begin.pngaField end.png
  • Object Name: Field begin.pngflowerField end.png
  • Object Type: (selected) Dynamic
  • Initial position: Field begin.pngStreetField end.png
  • Description: Field begin.pngIt's just a nice flower. You don't know what type.Field end.png

a spacesuit

  • Object Prefix: Field begin.pngaField end.png
  • Object Name: Field begin.pngspacesuitField end.png
  • Aliases: Field begin.pngsuitField end.png
  • Object type: (selected) Dynamic
  • Initial position: Field begin.pngStreetField end.png
  • Description: Field begin.pngSpacesuits are wonderful things, but they make EVERYONE look fat.Field end.png
  • (checked) Object is wearable

some sewage

Note: Making the sewage dynamic instead of static is a kludge, but it's necessary for writing task restrictions involving the sewage.

  • Object Prefix: Field begin.pngsomeField end.png
  • Object Name: Field begin.pngsewageField end.png
  • Object type: (selected) Dynamic
  • Initial position: Field begin.pngSewerField end.png
  • Description: Field begin.pngHorrible smelly sewage is everywhere in the sewer.Field end.png
  • [_] Do NOT list object in room descriptions
  • When the object is listed in the room description, display this: Field begin.pngSewage is everywhere.Field end.png

Tasks

smell flower

  • What the user must type: Field begin.png[smell/sniff] {the/a} flowerField end.png
  • Message upon completion: Field begin.pngIt smells wonderful.Field end.png
  • Task can be completed in: (checked) All rooms
  • Restrictions:
    • a flower must be visible to Player else display Field begin.pngYou don't see that here.Field end.png AND
    • a spacesuit must NOT be worn by Player else display Field begin.pngYou can't smell anything while wearing the spacesuit.Field end.png AND
    • some sewage must NOT be visible to Player else display Field begin.pngThe disgusting reek of the sewage overwhelms your nose. You can't smell anything else.Field end.png
  • (checked) Repeatable task

smell sewage

  • What the user must type: Field begin.png[smell/sniff] {the/some} sewageField end.png
  • Message upon completion: Field begin.pngIt reeks.Field end.png
  • Task can be completed in: (checked) Sewer
  • Restrictions:
    • a spacesuit must NOT be worn by Player else display Field begin.pngYou can't smell anything while wearing the spacesuit.Field end.png
  • (checked) Repeatable task

smell me

Note: The player isn't included as an "%object%", so it needs its own task.

  • What the user must type: Field begin.png[smell/sniff] [me/myself]Field end.png
  • Message upon completion: Field begin.pngYou smell normal.Field end.png
  • Task can be completed in: (checked) All rooms
  • Restrictions:
    • a spacesuit must NOT be worn by Player else display Field begin.pngYou can't smell anything while wearing the spacesuit.Field end.png AND
    • some sewage must NOT be visible to Player else display Field begin.pngThe disgusting reek of the sewage overwhelms your nose. You can't smell anything else.Field end.png
  • (checked) Repeatable task

smell anything else

  • What the user must type: Field begin.png[smell/sniff] {the/a} %object%Field end.png
  • Message upon completion: Field begin.pngThat smells normal.Field end.png
  • Task can be completed in: (checked) All rooms
  • Restrictions:
    • a spacesuit must NOT be worn by Player else display Field begin.pngYou can't smell anything while wearing the spacesuit.Field end.png AND
    • some sewage must NOT be visible to Player else display Field begin.pngThe disgusting reek of the sewage overwhelms your nose. You can't smell anything else.Field end.png
  • (checked) Repeatable task

take sewage

  • What the user must type: Field begin.png[take/get/pick up] {the/some} sewageField end.png
  • Message upon completion: Field begin.pngYou can't take the sewage!Field end.png
  • Task can be completed in: (checked) Sewer
  • (checked) Repeatable task