|
Xeleine Newbie
Joined: 19 Nov 2009 Posts: 5
|
Posted: 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. |
|
|
|
Erasmus Wanderer
Joined: 04 Aug 2004 Posts: 82 Location: Philadelphia
|
Posted: 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 |
|
|
|
Xeleine Newbie
Joined: 19 Nov 2009 Posts: 5
|
Posted: 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? |
|
|
|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Wed Nov 25, 2009 6:13 pm |
search pattern matching in the help files
|
|
|
|
Xeleine Newbie
Joined: 19 Nov 2009 Posts: 5
|
Posted: Wed Nov 25, 2009 6:27 pm |
Much appreciated. =]
|
|
|
|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: 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 |
|
|
|
Xeleine Newbie
Joined: 19 Nov 2009 Posts: 5
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|