|
blkno1 Novice
Joined: 26 May 2002 Posts: 30 Location: USA
|
Posted: Mon May 02, 2005 2:18 am
Repeating Trigger Question |
Ok I have a list of name I create with #ADDITEM
Im applying a command to every name in that list with
#FORALL @clannieslist {player %i}
This is the mud output of say
player kjelt
Name: Kjelt
Clan: The Amber Rose (59)
Days in Clan: 91
Class: Warrior (CT)
Level: 25 (87)
Sex: Male
PKs: Kills ( 0) Avg ( 0) Deaths ( 33)
CPKs: Kills ( 0) Avg ( 0) Deaths ( 0)
Alignment: 1000
Eggs: 0
My question is this, I know how to make triggers for each item but I want to apply it to all the names in the list. How do I increment them by say 1 so I dont overwrite the same variable each time the player <name> is executed.
-bk |
|
|
|
Pega Magician
Joined: 08 Jan 2001 Posts: 341 Location: Singapore
|
Posted: Mon May 02, 2005 4:04 am |
Looping commands like #FORALL, #LOOP etc. when used in a trigger do not normally complete their execution before other triggers are fired.
Here are 3 options:
A. Switch off triggers that work on critical variables for the duration of the activity of those commands. Other triggers will have the opportunity to be fired and executed concurrently.
B. Use other methods of working with those variables to avoid using the above commands.
C. Place those commands in a #PRIORITY command. In this case all triggering activity is frozen.
Ant farm = Dirt(Mud) + Ants(People) + Food(PK/RP) + Time |
|
|
|
|
|