Smell restrictions (ADRIFT 5 example): Difference between revisions
(Rewrite in correct format as per IFWiki:ADRIFT project) |
m (→Street) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
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. | 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 | Where you see "Short description: {{fq|Street}}" this means that you should look for the line or text box labeled "Short description" and type in the text "Street". | ||
this means that you should look for the line labeled "Short | |||
"{{rx}} Dynamic" indicates that you should select this choice from a list. | "{{rx}} Dynamic" indicates that you should select this choice from a list. | ||
Line 12: | Line 10: | ||
=== Odour === | === Odour === | ||
Name: {{fq|Odour}} | Name: {{fq|Odour}} | ||
Property of: {{rx | |||
Type: {{rx | Property of: {{rx}}Any Item | ||
Type: {{rx}}Text | |||
== Locations == | == Locations == | ||
=== Street === | === Street === | ||
Short description: {{fq|Street}} | Short description: {{fq|Street}} | ||
Long description: {{fq|You are in a street. The sewer is below you.}} | Long description: {{fq|You are in a street. The sewer is below you.}} | ||
Move Down to: {{fq|Sewer}} (You need to create the Sewer location first!) | |||
{{cx}}Odour: {{fq|You pick up a faint odour from below.}} | |||
=== Sewer === | |||
Short description: {{fq|Sewer}} | |||
Long description: {{fq|You are in a sewer. The street is above you.}} | |||
Move Up to: {{fq|Street}} | |||
== Objects == | |||
=== Flower === | |||
Name/Noun(s): {{fq|flower}} | |||
Object type: {{rx}}Dynamic | |||
Initial Location: {{rx}}In Location {{rx}}Street | |||
Description: {{fq|It's just a nice flower. You don't know what type.}} | |||
{{cx}}Odour: {{fq|It smells wonderful.}} | |||
=== Spacesuit === | |||
Name/Noun(s): {{fq|spacesuit}} {{fq|suit}} | |||
Object type: {{rx}}Dynamic | |||
Initial Location: {{rx}}In Location {{rx}}Street | |||
Description: {{fq|Spacesuits are wonderful things, but they make EVERYONE look fat.}} | |||
{{cx}}Object is wearable | |||
=== Sewage === | |||
Article: {{fq|some}} | |||
Name/Noun(s): {{fq|sewage}} | |||
Object type: {{rx}}Static | |||
Initial Location: {{rx}}In Location {{rx}}Sewer | |||
Description: {{fq|Horrible smelly sewage is everywhere in the sewer.}} | |||
{{cx}}Specifically list object in location descriptions | |||
{{cx}}Odour: {{fq|It reeks.}} | |||
== Tasks == | |||
=== Smell Something === | |||
Task Name: Smell something | |||
Task Type: {{rx}}General | |||
Enter any number of commands: {{fq|[smell/sniff] %item%}} | |||
Message to display on completion: | |||
*Default Description: {{fq|%item%.Odour}} | |||
*Referenced item must not have property odour: {{fq|You smell nothing unexpected.}} | |||
=== Smell === | |||
Task Name: Smell | |||
Task Type: {{rx}}General | |||
Enter any number of commands: {{fq|[smell/sniff]}} | |||
Actions: | |||
* Execute task 'smell something' (%Player%.Location) | |||
=== 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 === | |||
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]] |
Latest revision as of 04:19, 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.
Move Down to: Sewer
(You need to create the Sewer location first!)
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'