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
riemer11
Beginner


Joined: 28 Oct 2003
Posts: 10

PostPosted: Wed Oct 29, 2003 11:16 am   

How to use #T-
 
When using the 'hunt' command in the mud i am playing, i always end up one room too far. To address this, i thought of setting up a simle IF-THEN statement, which triggers on 'You have found your prey" that would take the last command and reverse it.

My IF-THEN looks like this:
#TR {You have found your prey} {%IF (#H-=n,s, %IF (#H-=s,n, %IF (#H-=w,e, #IF (#H- = e, w,look))))}

But it gives a syntax error on the very first #H- command. What should be changed?

Thanks!
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Oct 29, 2003 12:32 pm   
 
Try using %lastinput. #H- is a command it does something. What you need is a function, or in this case a Predefined Varaible.
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