Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Gimli
Beginner


Joined: 16 Oct 2005
Posts: 22
Location: Canada

PostPosted: 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
Reply with quote
orphean
Apprentice


Joined: 21 Oct 2008
Posts: 147
Location: Olympia, WA

PostPosted: 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>
Reply with quote
mandy
Novice


Joined: 10 Jul 2007
Posts: 47

PostPosted: 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.
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sun Aug 07, 2011 3:19 am   
 
That should be weapon = 1, not @weapon = 1. You don't need the @ for setting variables.
Reply with quote
mandy
Novice


Joined: 10 Jul 2007
Posts: 47

PostPosted: Sun Aug 07, 2011 5:06 am   
 
You are correct, my apologizes. I can't read/think/type at the same time :D
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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