Smell restrictions (ADRIFT 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)

Contents

Options

  • Adventure title: Image:Field begin.pngSmell RestrictionsImage:Field end.png
  • Author: Image:Field begin.pngDavid WelbournImage:Field end.png

Introduction & Winning

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

Rooms

Street

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

Sewer

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

Objects

a flower

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

a spacesuit

  • Object Prefix: Image:Field begin.pngaImage:Field end.png
  • Object Name: Image:Field begin.pngspacesuitImage:Field end.png
  • Aliases: Image:Field begin.pngsuitImage:Field end.png
  • Object type: (selected) Dynamic
  • Initial position: Image:Field begin.pngStreetImage:Field end.png
  • Description: Image:Field begin.pngSpacesuits are wonderful things, but they make EVERYONE look fat.Image: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: Image:Field begin.pngsomeImage:Field end.png
  • Object Name: Image:Field begin.pngsewageImage:Field end.png
  • Object type: (selected) Dynamic
  • Initial position: Image:Field begin.pngSewerImage:Field end.png
  • Description: Image:Field begin.pngHorrible smelly sewage is everywhere in the sewer.Image:Field end.png
  • [_] Do NOT list object in room descriptions
  • When the object is listed in the room description, display this: Image:Field begin.pngSewage is everywhere.Image:Field end.png

Tasks

smell flower

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

smell sewage

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

smell anything else

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

take sewage

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