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


Joined: 20 Nov 2005
Posts: 2
Location: Orlando

PostPosted: Mon Dec 05, 2005 12:50 am   

Max Health Variable in Achaea
 
I'm trying to set up health Guages in Achaea and the layout looks like this

1000h, 1000m, 1000e, 1000w


I have this so far for the current health (thanks to Lighbulb)

#tr {(%d)h, (%d)m, (%d)e, (%d)w} {
#Var hp %1
#Var mp %2
#var ep %3
#var wp %4
} {} {Nocr|prompt}

I'm still very lost, but I'm thinking that the Nocr|prompt is a subclass, so I guess I can rename it.

But this is just for the current health, right?

So I need to create another Variable for my max health/stat (@maxhp)

Because I have the Max as @maxhp and the low as @maxhp/4

Basicly I need to know what will represent my max health
_________________
A good way to threaten somebody is to light a stick of dynamite. Then you call the guy and hold the burning fuse up to the phone. "Hear that?" you say. "That's dynamite, baby."
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Mon Dec 05, 2005 7:49 am   
 
See #TRIGGER for more info on triggers. {nocr|prompt} are trigger options.

As for your maxhp #VARIABLE, you will either set it manually or from another #TRIGGER.

Manually (type in command line replacing # with the maxhp amount):

maxhp=#

Auto (from your status/score command which shows your hp/maxhp, adjust pattern to match actual display, this will match "HP: 123/123"):

#TR {HP: %d~/&%d{maxhp}} {}
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Mon Dec 05, 2005 2:53 pm   
 
I remember a long time ago someone wanted to know how to do the trigger options from the command line at a time when they were only specified by numbers, I wrote an interesting post stating what they were after I had worked them out. This was in the days when the forum was Cold Fusion and that post has long since gone and of course is no longer needed :(

I might see if I can find it using the Wayback Machine.
_________________
Taz :)
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