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
Xinphinity
Newbie


Joined: 08 Jan 2005
Posts: 1

PostPosted: Sat Jan 08, 2005 11:31 pm   

What am I doing wrong? (Help with delays and triggers)
 
#VAR DevicesState 1
take @CambrinthItem from my @CambrinthLocation
#WA 2000
#TEMP {mind lock} {#VAR DevicesState 0}
Charge @CambrinthItem @CamMana
#ALARM +10000 {focus @CambrinthItem}
#ALARM +10000 {cast}
Mana
Exp devices
#IF (@CamInHand = 1) {put @CambrinthItem in my @CambrinthLocation}
#WA 2000

This just executes over and over, no delay no nothing. I've tried #WA, #CONDITION etc. Ideally this would delay based on a var.

~X
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jan 08, 2005 11:56 pm   
 
Don't use #WAIT in triggers.
http://www.zuggsoft.com/zmud/timers.htm

I'm assuming from your post title that this is a trigger. If it is, you left out the pattern along with all the other details we would need to actually understand what you are doing and have any idea of why it doesn't work the way you want.

The only variable I see you changing is @DevicesState, which is never tested in this script.
The only variable I see you test is @CamInHand, which is never changed by this script.
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
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