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
mj_cole
Wanderer


Joined: 19 Apr 2001
Posts: 59
Location: USA

PostPosted: Thu Jul 24, 2003 10:20 pm   

Problems using #setprompt
 
Hi,

I have a multistate trigger that captures the items being used in the mudprompt, and have been trying to get them to use #setprompt to set the variables that I want to use, however, I have been unable to get it right.

I am creating a variable that contains the stuff that goes into setprompt, ie.

#var tmp "H: HP MV MA"

and then sending

#setprompt @tmp

My understanding is that it should be the equivelent of directly writing

#setprompt H: HP MV MA

I know that I am loading the variable correctly, but I imagine that there may be a different way to force the data into the #setprompt procedure

Any ideas where I'm going wrong
Regards
Marts
Reply with quote
mj_cole
Wanderer


Joined: 19 Apr 2001
Posts: 59
Location: USA

PostPosted: Fri Jul 25, 2003 2:57 am   
 
Haha, figured it out!!

I got the variable 'tmp' to contain '#setprompt %char(34)H:%char(34) HPCurrent MoveCurrent'

Then issued the command '#exe @tmp'

Awsome.

Regards
Marts
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