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
Ren
Beginner


Joined: 04 Apr 2003
Posts: 27

PostPosted: Fri May 30, 2003 9:29 am   

capturing with & in lowercase
 

> Balwog II pings you.

Pattern: &%wping *pings you.

This captures 'Balwog' into my 'ping' variable. I want it to be captured as 'balwog' though. I messed around with %lower but can't seem to get it right.

Any ideas? :)

- Ren
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri May 30, 2003 12:37 pm   
 
#TRIGGER {&%wping *pings you.} {#VAR ping %lower(@ping)}

Kjata
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri May 30, 2003 4:47 pm   
 
Or
#TR {(%w) *pings you} {#VAR ping {%lower( %1)}}

This ensures you'll never put a capital letter into the variable. If you capture the variable in the pattern, then modify it, you'll have a capital in there for at least a few nanoseconds.

LightBulb
Advanced Member
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