|
Gimli Beginner
Joined: 16 Oct 2005 Posts: 22 Location: Canada
|
Posted: Mon Aug 01, 2011 9:22 pm
Alias that doesn't sent to mud? |
Is it possible to create an alias and have it not send text to the MUD?
sorta like
setweapon knife
@weapon = $1
So I can set a local variable myself while I am playing without having to go into the variables and change them |
|
|
|
orphean Apprentice
Joined: 21 Oct 2008 Posts: 147 Location: Olympia, WA
|
Posted: Mon Aug 01, 2011 9:27 pm |
Sure there's a couple ways.
Code: |
<alias name="setweapon" id="24">
<value>// This works.
weapon = $weapon
// So does this.
#var weapon $weapon
// Or we can provide a path if you're using a module...
//MyCoolModule/Aliases/Weapon = $weapon</value>
<arglist>$weapon</arglist>
</alias> |
|
|
|
|
mandy Novice
Joined: 10 Jul 2007 Posts: 47
|
Posted: Sat Aug 06, 2011 8:41 pm |
I just type in the command line...
@weapon = 1 or whatever.
but thats because the variables i have set like that, are more or less long term variables - i set it and forget it when im using it. |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Sun Aug 07, 2011 3:19 am |
That should be weapon = 1, not @weapon = 1. You don't need the @ for setting variables.
|
|
|
|
mandy Novice
Joined: 10 Jul 2007 Posts: 47
|
Posted: Sun Aug 07, 2011 5:06 am |
You are correct, my apologizes. I can't read/think/type at the same time :D
|
|
|
|
|
|