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


Joined: 25 May 2003
Posts: 4

PostPosted: Wed Aug 13, 2003 3:03 am   

Single character &Var
 
From what I understood of the help file for pattern matching,

&?OneChar

should match a single character and store it in the @OneChar variable. This doesn't work - anyone know what I am doing wrong, or if this is a bug? I have gotten around it, but I am surprised it doesn't work.

Thanks,
Selberhad
Reply with quote
SerpentDrago
Newbie


Joined: 10 Nov 2002
Posts: 8
Location: USA

PostPosted: Wed Aug 13, 2003 3:46 am   
 
From what i know and used theam its &whatever theres no ?

I belive you were adding a ? after & ... dont' know why ..
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Aug 13, 2003 4:44 am   
 
You're right, it doesn't work so I guess you can call it a bug. Use (?) instead, and make the variable assignment in the Value section (that's probably your workaround anyway).
#TR {(?)} {#VAR OneChar %1}
Reply with quote
selberhad
Newbie


Joined: 25 May 2003
Posts: 4

PostPosted: Wed Aug 13, 2003 5:11 am   
 
SerpentDrago: If you check out the help file, they say a wildcard character can be inserted between the & and the name of a &VarName style pattern, in order to restrict it to the type of the wildcard.

LightBulb: Thanks =). Yes, that was my workaround.
Reply with quote
SerpentDrago
Newbie


Joined: 10 Nov 2002
Posts: 8
Location: USA

PostPosted: Wed Aug 13, 2003 11:39 am   
 
selberhad .. Ohhhhhhh

Got ya , sorry , what little i know was trying to help :) s
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