For

From LSWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:44, 10 November 2007 (edit)
Ryal (Talk | contribs)

← Previous diff
Current revision (14:20, 25 March 2008) (edit)
Zyll (Talk | contribs)

 
Line 16: Line 16:
Development Information: The for command was created by Chaos; the source code Development Information: The for command was created by Chaos; the source code
was last updated Thu Sep 06 15:10:09 2007. was last updated Thu Sep 06 15:10:09 2007.
 +
 +[[Category: Commands]]

Current revision

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.

Personal tools