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


Joined: 21 Sep 2003
Posts: 2
Location: Netherlands

PostPosted: Sun Sep 21, 2003 6:53 pm   

variable help
 
This is probably an easy problem, but I can't seem to figure out how to do this:

I have a variable called 'moneytest' that has no default value and is currently at 1000. I have it showing on my status line, but what I want is to make it go down as I pick up golden items, so I made a trigger like this:
#trigger {take %d golden *} {#add moneytest -%1} | I want to add the negative %d value in the trigger.

Xilian

P.S. Sorry if this is a really REALLY stupid question, but I just can't get this to work.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Sep 21, 2003 7:12 pm   
 
the problem you're having is that %1 currently is empty. You need to surround the %d with parentheses, like this:

#trigger {take (%d) golden *} {#add moneytest -%1}
Reply with quote
Xilian
Newbie


Joined: 21 Sep 2003
Posts: 2
Location: Netherlands

PostPosted: Sun Sep 21, 2003 9:53 pm   
 
thanks a lot, problem solved

Xilian
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