|
McGravin Beginner
Joined: 30 May 2002 Posts: 25 Location: USA
|
Posted: Mon Jun 03, 2002 6:11 pm
Script troubleshooting... |
On one MUD, I use group tells to control a bot.
The bot's name is Erots, and to control him you simply tell the group "Ero> (command)". The general output is something like:
McGravin tells the group 'Ero> give mushroom McGravin'
However, I also use a trigger in combination with the MUD Reader text-to-speech converter that reads numerous important things to me, such as tells and racetalk, including group tells. It's useful to hear things reported back from Erots through group tells (Erots tells the group 'Warning. I am low on health.'), but it's annoying to hear "You tell the group Ero is greater than give mushroom McGravin."
I'm trying to get the trigger set up so that if the first word of the group tell is NOT "Ero>", to read it to me, but if it is, do nothing. I can't seem to find a way to get an #IF to match the first word of a (*) variable.
The current pattern is:
^(%w) tells the group '(*)'
And the command is:
#SPEAK {%1 tells the group %2}
Thanks for any suggestions.
-McGravin
Space Station Earth MUD |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Jun 03, 2002 6:56 pm |
Pattern:
^(%w) tells the group '(%x) (*)'
Command:
#IF ("%2" <> "Ero>") {#SPEAK {%1 tells the group %2 %3}
You'll need another trigger to pick up one-word group tells.
LightBulb
Vague questions get vague answers |
|
|
|
dacheeba Adept
Joined: 29 Oct 2001 Posts: 250
|
Posted: Mon Jun 03, 2002 7:09 pm |
quote:
Pattern:
^(%w) tells the group '(%x) (*)'
Command:
#IF ("%2" <> "Ero>") {#SPEAK {%1 tells the group %2 %3}
You'll need another trigger to pick up one-word group tells.
LightBulb
Vague questions get vague answers
I may be missing something here, but wouldnt it be simpler just to have the trigger match on 'Ero>'? IE:
Pattern:
^(%w) tells the group 'Ero~> (*)
Command:
#SPEAK {%1 tells the group 'Eros> %2}
Seems simpler to me |
|
|
|
McGravin Beginner
Joined: 30 May 2002 Posts: 25 Location: USA
|
Posted: Mon Jun 03, 2002 9:39 pm |
Except I *don't* want it to read anything with "Ero>" at the beginning of it.
-McGravin
Space Station Earth MUD |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Mon Jun 03, 2002 9:56 pm |
If (!%bgins("%2","Ero>")) {#SPEAK %trigger}
|
|
|
|
|
|