|
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Mon Jul 21, 2003 2:47 am
Here is a doosie for you... |
Ok, in DR I am a dwarf! Got to love dwarves. And I just found out they have a language. Quite a big one in fact. Over 1600 words. Anywho. I was wanting to make a database with all the words in it. One field would be Dwarven and the other Common.
Now I would like to make an alias called C2D and D2C.
C2D I would use to do a word from common to dwarven
D2C I would use to do a word from Dwarven to Common
Now is there anyway to make it that if I type C2D Cat it would search the database for cat then echo to me the word in DWARVEN? and vice versa for D2C? |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Jul 21, 2003 12:56 pm |
Sure. You can use %query for this:
#ALIAS C2D {#SAY %1 in Dwarven is %db(%query(&Common = "%1"), Dwarven)}
#ALIAS D2C {#SAY %1 in Common is %db(%query(&Dwarven = "%1"), Common)} |
|
|
|
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Mon Jul 21, 2003 3:51 pm |
Wow! After seeing how easy those answers were it seems my question was actually kind of stupid! I am just learning how to use the database though and I thank you for all the help. Because of you I have written some pretty advanced scripts....well, advanced compared to the dragonrealms other clients and I am learning ZMUD at a fairly good rate. Without all of your help, that goes for everyone who answers on these boards, then I would be befuddled and lost. Thanks again
|
|
|
|
|
|