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


Joined: 03 Jan 2016
Posts: 5

PostPosted: Sun Jan 03, 2016 4:16 am   

Help with variables and parenthesis
 
Hey folks, was hoping you all could help me figure something out that I've been scratching my head on for awhile. I'm trying to get a status bar (or gauge) going for Dawn. The string I'm trying to get my info off of is:

Hp: 3205(4104) Gp: 600(1000)

I can get it working fine if i just go by the current values on the left, but I'd like to get the max values working as well, but the built in parenthesis are messing with my variables. I was trying to use:

Hp: (%d)((%d)) Gp: (%d)((%d))

#var hp %1
#var mhp %2
#var gp %3
#var mgp %4


I'm hoping there is a simple solution. Thanks in advance folks.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Jan 03, 2016 7:51 am   
 
Hp: (%d)~((%d)~) Gp: (%d)~((%d)~)
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
megaerik00
Newbie


Joined: 03 Jan 2016
Posts: 5

PostPosted: Mon Jan 04, 2016 9:06 am   
 
Thank you kindly.
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