Create your own Interactive Fiction

ADRIFT - Interactive Fiction  
Home   |   News ADRIFT News RSS   |   Screenshots   |   Download   |   Games ADRIFT Reviews RSS   |   Forum   |   Help   |   Links
Welcome Guest Register | Login
Popular Games
The Axe of Kolt
Skybreak v. 1.4
Skybreak v 1.2
The Fortress of Fear
Lost Coastlines
Trick or Treat
Magnetic Moon
All Hallows Eve
Ectocomp 2011 Compilation
Adventures of Thumper - Wonder Wombat
 
Latest Forum Posts
Simplifying my game
Items and Conditional descriptions in Room description
D-Day
Teleporter that sends player to specific room based on a setting
Character swapping and Combi-Lib
Embedding Adrift 4 online play on itch.io
Viewer and command control
Just Another Christmas Day - ADRIFT 5 game
HAPPY BIRTHDAY Daza
How to output full array variable?
 
Latest Reviews
Wumpus Hunt
Lost Coastlines
The Lost Labyrinth of Lazaitch
October 31st (Post comp.)
The Euripides Enigma
AI
Hint System Library - Release 1
The Dead of Winter
The Odd Competition
Grandpa's Ranch - Play Online Version

Make a donation

Cursor  Group function

Issue Type: Status: Priority: Date Submitted: Votes:
Enhancement Completed Medium Thu 28th Feb 2013 2 votes Vote Up Vote Down
 
Found in version: Last Updated: Completed in version: Date Completed: Track Changes:
5.0.29 Fri 29th Mar 2013 5.0.30 Fri 29th Mar 2013 Log In
 
saabieThu 28th Feb 2013 04:25
The key "Group1" should return a list of the objects, characters or locations that are in that group.

Group1 should return Object4|Object6|Object397 so that it can be used as a parameter when an action executes a task with an %object% reference, causing the task to be run for each object in the group.

Group1.List should print the group members, eg:
The torch, the lantern and the glow worm.

Group1.Count should return the current number of items in the group.

One minor niggle is that "Group1" by itself is not a valid OO function when embedded directly into text, but, as there is no reason to use it outside of an execute task parameter, it should not be a problem.
If you did want to print the group then you could just use the embedded expression <#Group1#>
 
CampbellFri 29th Mar 2013 11:42
Groups added to Item functions.
© 2013 Campbell Wild. All rights reserved. | Contact the Webmaster