|
magezorekin Newbie
Joined: 08 Oct 2008 Posts: 1
|
Posted: Wed Oct 08, 2008 4:09 am
help with configuring an echo? |
The mud I play one can cast spells yet it looks like this when casting a spell:
Code: |
[HP: 86%] [ME: 13%] [PE: 100%] [Wealth: zero]
You utter the words, 'qcandusahz yaae'.
A large golden apple suddenly appears.
[HP: 86%] [ME: 8%] [PE: 100%] [Wealth: zero] |
The game I play the words I utter mean a certain spell and I'm trying to figure out how to get it to say the name of the spell without it being considered a command like it's doing here(notice the Huh? Type 'help' for a list of commands.):
Code: |
[HP: 86%] [ME: 13%] [PE: 100%] [Wealth: zero]
You utter the words, 'qcandusahz yaae'.
create food
A large golden apple suddenly appears.
[HP: 86%] [ME: 8%] [PE: 100%] [Wealth: zero]
Huh? Type 'help' for a list of commands.
[HP: 86%] [ME: 8%] [PE: 100%] [Wealth: zero] |
This is how I'm wanting it to look like:
Code: |
[HP: 86%] [ME: 13%] [PE: 100%] [Wealth: zero]
You utter the words, 'qcandusahz yaae'.
create food
A large golden apple suddenly appears.
[HP: 86%] [ME: 8%] [PE: 100%] [Wealth: zero] |
|
|
|
|
Dyron Apprentice
Joined: 08 Apr 2004 Posts: 103 Location: USA
|
Posted: Wed Oct 08, 2008 6:32 am |
just do a simple #say or #echo it looks like...
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Oct 08, 2008 6:51 am |
#SAY would probably work best.
#TRIGGER {Spell message here} {#SAY Spell here}
Or you could take it a step further and do:
#VAR spelldb {qcandusah yaae=create food|lerpeoskf deedka=create spring|etc...}
#TRIGGER {You utter the words, '({@spelldb})'} {#SUB {You utter the words, '%db(@spelldb, %1)'}}
Then, instead of the normal phrase, it'll say:
You utter the words, 'create food'
Anyway, just a couple solutions...
Charneus
Edited to correct the trigger pattern. Also corrected the trigger pattern, as it was wrong... |
|
Last edited by charneus on Wed Oct 08, 2008 2:18 pm; edited 3 times in total |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Oct 08, 2008 8:16 am |
I personally would go for
#trigger {(You utter the words '({@spelldb})')} {#sub {%concat(%1," ",%db(@spelldb,%2)}
Which will give you the result:
You chant the words 'aakjgja gakgjaskg' Create Food
or whatever.
Also, charneus' pattern above won't work - it needs {} inside the (), like mine. |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Wed Oct 08, 2008 1:41 pm |
You could also do it as a #SUB and then you'd be replacing the magical language with the plain words on your screen only. Instead of just tacking them onto the end like Fang did ;)
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Oct 08, 2008 2:05 pm |
Thanks Fang. I was posting from my phone and it was late at night, ugh. Didn't have a real chance to look over it before posting it.
Ralgith, that's exactly what mine does. :p
Charneus |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Wed Oct 08, 2008 6:03 pm |
Sorry Charn, I missed that somehow LOL!!! I think I skipped your post completely.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
|
|