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
Hiryuu
Newbie


Joined: 27 Dec 2002
Posts: 9

PostPosted: Sat Dec 28, 2002 8:01 am   

Trigger Question
 
I have a trigger set to check if whoever I look at has all the eq slots filled or not (borried from some page and modified.) The only problem is that it triggers off: ^<*, ie to catch <primary wield>, but the who list's display for total people is as such:
< Max Number Of Players. Is there anyway to make it so that if there is a space after the <, it wont trigger, but if theres certain letters (~6 different ones) it will?

~Hiryuu
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Dec 28, 2002 11:47 am   
 
#TRIGGER {^<(*)>} {#IF (!%begins("%1", " ")) {this is the line that we want, do what needs to be done}}

Kjata
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Dec 28, 2002 6:13 pm   
 
Limit it to alphabetic characters using %w, to alphanumeric characters using %a, or to non-white-space using %x.
[b]#TR {^~<%a} {equipment check here}

LightBulb
Senior 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