Smell restrictions (ADRIFT 5 example): Difference between revisions
(→Tasks) |
|||
Line 90: | Line 90: | ||
Actions: | Actions: | ||
* Execute task | * Execute task 'smell something' (%Player%.Location) | ||
=== Sewage Overwhelms === | === Sewage Overwhelms === | ||
Task Name: Smell Overwhelms | |||
Task Type: {{rx}}Specific | |||
Task should: {{rx}}Override {{rx}}Smell Something | |||
Message to display on completion: {{fq|The disgusting reek of the sewage overwhelms your nose. You can't smell anything else.}} | |||
Restrictions: | |||
* The PlayerCharacter must be in the same location as object 'some sewage' | |||
* The Player Character must not be wearing object 'a spacesuit' | |||
* Referenced item must not be object 'some sewage' | |||
=== Suit Blocks Smell === | === Suit Blocks Smell === | ||
Task Name: Suit Blocks Smell | |||
Task Type: {{rx}}Specific | |||
Task should: {{rx}}Override {{rx}}Smell Something | |||
Message to display on completion: {{fq|You can't smell anything while wearing the spacesuit.}} | |||
Restrictions: | |||
* The Player Character must be wearing object 'a spacesuit' | |||
* Referenced item must not be character 'Player' | |||
* Referenced item must not be object 'a spacesuit' | |||
[[Category:Smell restrictions (Example)]] [[Category:Examples of ADRIFT code]] | [[Category:Smell restrictions (Example)]] [[Category:Examples of ADRIFT code]] |
Revision as of 03:52, 9 October 2015
ADRIFT 5 is not written like a computer program, instead you click a button to create a new object and then fill in the details of that object on a form.
Where you see "Short description: Street
" this means that you should look for the line or text box labeled "Short description" and type in the text "Street".
" Dynamic" indicates that you should select this choice from a list.
" Object is wearable" indicates that you should click on this box to select it.
Properties
Odour
Locations
Street
Long description: You are in a street. The sewer is below you.
Odour:
You pick up a faint odour from below.
Sewer
Long description: You are in a sewer. The street is above you.
Objects
Flower
Initial Location: In Location
Street
Description: It's just a nice flower. You don't know what type.
Spacesuit
Initial Location: In Location
Street
Description: Spacesuits are wonderful things, but they make EVERYONE look fat.
Sewage
Initial Location: In Location
Sewer
Description: Horrible smelly sewage is everywhere in the sewer.
Specifically list object in location descriptions
Tasks
Smell Something
Task Name: Smell something
Enter any number of commands: [smell/sniff] %item%
Message to display on completion:
- Default Description:
%item%.Odour
- Referenced item must not have property odour:
You smell nothing unexpected.
Smell
Task Name: Smell
Enter any number of commands: [smell/sniff]
Actions:
- Execute task 'smell something' (%Player%.Location)
Sewage Overwhelms
Task Name: Smell Overwhelms
Task should: Override
Smell Something
Message to display on completion: The disgusting reek of the sewage overwhelms your nose. You can't smell anything else.
Restrictions:
- The PlayerCharacter must be in the same location as object 'some sewage'
- The Player Character must not be wearing object 'a spacesuit'
- Referenced item must not be object 'some sewage'
Suit Blocks Smell
Task Name: Suit Blocks Smell
Task should: Override
Smell Something
Message to display on completion: You can't smell anything while wearing the spacesuit.
Restrictions:
- The Player Character must be wearing object 'a spacesuit'
- Referenced item must not be character 'Player'
- Referenced item must not be object 'a spacesuit'