![](templates/Classic/images/spacer.gif) |
Michael Nelson Novice
Joined: 03 Oct 2005 Posts: 36
|
Posted: Sat Oct 11, 2008 8:48 pm
#TRIGGER {You get &%dGold coins} |
#TRIGGER {You get &%dGold coins}
This syntax is new to me but I like it as it seems much more semantic however here is the rub. This seems to assign the value to a global variable Gold. I don't really want to create a bunch of global variables is there a way to force these into local variable Gold in CMUD?
Thanks :) |
|
|
![](templates/Classic/images/spacer.gif) |
Fang Xianfu GURU
![](images/avatars/1763170544a2093e7e85da.gif)
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Oct 11, 2008 9:16 pm |
Yep:
You get ($gold:%d) coins
will do the same thing but for the local variable $gold. |
|
|
![](templates/Classic/images/spacer.gif) |
Michael Nelson Novice
Joined: 03 Oct 2005 Posts: 36
|
Posted: Sat Oct 11, 2008 10:13 pm |
Thanks
|
|
|
![](templates/Classic/images/spacer.gif) |
|
|