ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Example for bug report 18958

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

Example for bug report 18958

Postby saabie » Tue Oct 21, 2014 1:34 am

If the key of a group is passed as a parameter to an executed task, the restrictions of that task are applied to the group key instead of to each of the members of that group:
Executing Actions...
Executing task '# check %location%'.
First Reference: (no output)
Attempting to execute task # check %location%...
Checking single reference task # check Cameras
Referenced Location must not be in group 'Broken cameras': Passed
"Cameras" is the location group name and "B", "C" and "D" are the locations in it.

If we apply a filter to the group key, eg. a property that is always true, then the restrictions are applied to each member of the group independantly:
Executing Actions...
Executing task '# check %location%'.
First Reference: , , (no output)
Attempting to execute task # check %location%...
Checking single reference task # check B
Referenced Location must not be in group 'Broken cameras': Passed
Passed Restrictions
Executing Actions...
Monitor %location%.Name show empty rooms.

Checking single reference task # check C
Referenced Location must not be in group 'Broken cameras': Failed
Failed Restrictions
The monitor for room %location%.Name is just showing snow.

First Reference: (no output)
Checking single reference task # check D
Referenced Location must not be in group 'Broken cameras': Passed
Passed Restrictions
Executing Actions...
Monitor %location%.Name show empty rooms.


GroupTest.taf
Example TAF
(12.92 KiB) Downloaded 46 times
saabie
 
Posts: 827
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia

Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 2 guests