|
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 :) |
|
|
|
Fang Xianfu GURU
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. |
|
|
|
Michael Nelson Novice
Joined: 03 Oct 2005 Posts: 36
|
Posted: Sat Oct 11, 2008 10:13 pm |
Thanks
|
|
|
|
|
|