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


Joined: 18 Apr 2003
Posts: 4

PostPosted: Fri Apr 18, 2003 3:51 am   

Varible question
 
Okay, I have on my prompt

&rSeferoph {level 23}&z|&g<%h/%Hhp &G%v/%Vmv>&z|&b<Gold: %g>&z|&x<Aling: %a>

When I level, I want the 23 to go up by 1, how would you do this? I heard it was for a varible...
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Apr 18, 2003 5:53 am   
 
#VAR MyLevel 23

Then update the variable MyLevel with some mud output. Ficticious example:

#TRIGGER {You are now level (%d).} {#VAR MyLevel %1;#EXEC {prompt %concat("&rSeferoph {level ",@MyLevel,"}&z|&g<%h/%Hhp &G%v/%Vmv>&z|&b<Gold: %g>&z|&x<Aling: %a>")}}

Ton Diening
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