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
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4718
Location: Pensacola, FL, USA

PostPosted: Sat Feb 15, 2003 9:35 pm   

{^string}
 
i used to remeber how to use this to preclude certain words from being in a certain variable but i forget how

^(%w) (*) promo

i want %1 {^You}

Shalimar

AIM: shalimarwildcat
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Feb 16, 2003 12:18 pm   
 
The pattern would be:
^({^You}) promo

and then you would have to extract the first word from whatever was matched. However, a current bug with this will make your task very difficult. So, until it is fixed, you should stick with your old pattern and have an #IF to check what was matched:
#IF ("%1" <> "You") {do stuff here}

Kjata
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4718
Location: Pensacola, FL, USA

PostPosted: Sun Feb 16, 2003 12:21 pm   
 
to make the pattern not match You is that difficult to do?

Shalimar

AIM: shalimarwildcat
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4718
Location: Pensacola, FL, USA

PostPosted: Sun Feb 16, 2003 12:24 pm   
 
#TR {^(%w) (*) promo} {#IF ("%1" <> "You") {} {stuff i really wanna do}

like this?

Shalimar

AIM: shalimarwildcat
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Feb 16, 2003 12:28 pm   
 
No, like this:
#TRIGGER {^(%w) (*) promo} {#IF ("%1" <> "You") {stuff you really wanna do}}

Kjata
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4718
Location: Pensacola, FL, USA

PostPosted: Sun Feb 16, 2003 12:51 pm   
 
ok i get it now, thanks

Shalimar

AIM: shalimarwildcat
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