For
From LSWiki
Revision as of 13:20, 25 March 2008; Zyll (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Command: For
General-Use Command Usage: for <targets> do <command [each]>
Executes a command for each target in a multiple-target specification. The word 'each' in the command specification will be replaced with the targeting name of each target in turn. You cannot use this command to perform commands that would normally accept multiple targets; for those, simply specify the multiple targets to the command itself.
As a special case, you can use 'exits' as the target specification, which will cause the command to execute for each obvious exit in your environment.
Examples: for opponents do exa each for my darts do throw each at opponent for exits do l each
Development Information: The for command was created by Chaos; the source code was last updated Thu Sep 06 15:10:09 2007.