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: 4690
Location: Pensacola, FL, USA

PostPosted: Fri Jun 06, 2003 2:26 am   

%x
 
#TR {Imperial (%x)} {target = %1}

my problem is that some times it will come out possesive for the creature type...

an Imperal Man-at-arm's longsword got knocked to the ground!

normally i would use %w and be sone with it, cept it doesnt grab hyphenated words....

how can i remove the 's if it is the string?

Shalimar

AIM: shalimarwildcat
Reply with quote
CDS
Beginner


Joined: 31 May 2003
Posts: 15
Location: USA

PostPosted: Fri Jun 06, 2003 3:49 am   
 
This should remove any trailing 's from your target:

#TR {Imperial (%x)} {target = %if(%ends(%1,"'s"),%leftback(%1,2),%1)}
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