Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
McGravin
Beginner


Joined: 30 May 2002
Posts: 25
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: 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
Reply with quote
McGravin
Beginner


Joined: 30 May 2002
Posts: 25
Location: USA

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Jun 03, 2002 9:56 pm   
 
If (!%bgins("%2","Ero>")) {#SPEAK %trigger}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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