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


Joined: 15 Sep 2003
Posts: 4
Location: Bhutan

PostPosted: Sat Dec 11, 2004 3:55 am   

Trouble with wild cards and variables
 
Ok this is kind of basic but...


How does one store a wild card into a variable and then call it?

e.g.

Mud outputs

You sense a trail <direction> from here...


I then want the client to output the direction.

I have tried using

You sense a trail %w from here...

Which works fine to trigger it but doesn't seem to store it as a variable for me to output. Any help would be incredibly appreciated.
_________________
Reply with quote
DustyShouri
Novice


Joined: 29 Oct 2004
Posts: 34

PostPosted: Sat Dec 11, 2004 4:28 am   
 
Put ()'s around any wildcards you want to store as variables.

You sense a trail (%w) from here...

Which in return, the variable for it would be %1
Reply with quote
demonachizer
Newbie


Joined: 15 Sep 2003
Posts: 4
Location: Bhutan

PostPosted: Sat Dec 11, 2004 5:25 am   
 
Thanks a bunch!
_________________
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