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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
forren
Novice


Joined: 26 Apr 2007
Posts: 44

PostPosted: Fri Jul 27, 2007 5:48 pm   

Specifying wildcard type with & syntax
 
Here's my prompt trigger:

^(&currentHealth)h, (&currentMana)m, (&currentEgo)e, (&currentPower)p, (&currentEndurance)en, (&currentWillpower)w (&promptCharacters)-$

Is there a way to specifiy wildcard type for this syntax such as...

^(&currentHealth:%d)h, (&currentMana:%d)m, (&currentEgo:%d)e, (&currentPower:%d)p, (&currentEndurance:%d)en, (&currentWillpower:%d)w (&promptCharacters:%w)-$ ?

I'm running into issues on other triggers where I'm going to have to use %w instead of the &variablename because matching to * is triggering it unnecessarily. Is there a way to specify currently?
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Fri Jul 27, 2007 6:27 pm   
 
Yes.. you want something like

^&%d{currentHealth}h, &%d{currentMana}m, &%d{currentEgo}e, &%d{currentPower}p, &%d{currentEndurance}en, &%d{currentWillpower}w &%w{promptCharacters}-$
_________________
Asati di tempari!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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