For
From LSWiki
(Difference between revisions)
Revision as of 15:44, 10 November 2007
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.