|
Xilian Newbie
Joined: 21 Sep 2003 Posts: 2 Location: Netherlands
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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} |
|
|
|
Xilian Newbie
Joined: 21 Sep 2003 Posts: 2 Location: Netherlands
|
Posted: Sun Sep 21, 2003 9:53 pm |
thanks a lot, problem solved
Xilian |
|
|
|
|
|