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
Xeleine
Newbie


Joined: 19 Nov 2009
Posts: 5

PostPosted: Wed Nov 25, 2009 5:21 pm   

Newbie Question about Aliases
 
Hi, everyone. This is probably something really basic, but I've got little knowledge of these things, so any help would be very appreciated.

What I'm trying to do is make an alias that puts a specified item in a backpack. The command I'm aiming to produce is "put item backpack" from an alias called "bk" or something. So, when I enter "bk sword", it enters "put sword backpack". I've tried wildcards, but they don't seem to work quite the way I'm trying them.

Thanks in advance.
Reply with quote
Erasmus
Wanderer


Joined: 04 Aug 2004
Posts: 82
Location: Philadelphia

PostPosted: Wed Nov 25, 2009 5:29 pm   
 
#ALIAS bk {~put %-1 backpack}

The %-1 will allow you to use multilple word items. I.e. "green sword" or "sword".
The ~ will signify that you are not trying to call a "put" alias. Just in case you ever wanted to create one.
_________________
Erasmus
Reply with quote
Xeleine
Newbie


Joined: 19 Nov 2009
Posts: 5

PostPosted: Wed Nov 25, 2009 6:02 pm   
 
Ah, great, thank you very much!

I actually spent some time looking through the documentation for this, is there someplace where I can read about topics of this kind?
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Wed Nov 25, 2009 6:13 pm   
 
search pattern matching in the help files
Reply with quote
Xeleine
Newbie


Joined: 19 Nov 2009
Posts: 5

PostPosted: Wed Nov 25, 2009 6:27 pm   
 
Much appreciated. =]
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Wed Nov 25, 2009 6:32 pm   
 
also you can search the forum for pattern matching, theres guaps or variations and usage syntax available

and if all else fails, the Guru's are always around to assist
Reply with quote
Xeleine
Newbie


Joined: 19 Nov 2009
Posts: 5

PostPosted: Wed Nov 25, 2009 7:08 pm   
 
Great, thanks again.

I'm actually really interested in learning how to do this properly and getting the most out of CMUD, so I've started learning 1 command and 1 function every day since I got cMUD a few days ago. It'll take a while, but I'll master it sooner or later. I've got so many ideas for big projects, I just really need to get my skills to a workable level.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Nov 26, 2009 1:42 am   
 
good approach. One thing I noticed when doing that myself, however, is that I had a TON of big ideas and whenever I managed to go back to them I really didn't remember any of it. May want to keep a notebook of idea outlines. That way, as new things occur to you you can add them to the outline.
_________________
EDIT: I didn't like my old signature
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