Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
blkno1
Novice


Joined: 26 May 2002
Posts: 30
Location: USA

PostPosted: 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
Reply with quote
Pega
Magician


Joined: 08 Jan 2001
Posts: 341
Location: Singapore

PostPosted: 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.





Smile Ant farm = Dirt(Mud) + Ants(People) + Food(PK/RP) + Time
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net