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


Joined: 26 Jan 2007
Posts: 4

PostPosted: Fri Jan 26, 2007 5:37 pm   

Hp Gauge and class folder triggers
 
Hello I have two problems.

The first one is that i'm looking to make a hp and mp gauge

The prompt looks like

Hp: 1524/1524 Mp: 1232/1232
I know it'll be extremely simple. I tried the plugin way but i couldn't figure that out either.

The second problem i'm haivng is about scripts. I use a script to kill a monster and turn off a class folder and turns on another one. The problem i'm having is that when it turns on the class folder is automatically fires off the set of triggers in that class. Even if there has not been any text to set off the triggers.

Thank you in advance.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Jan 26, 2007 6:47 pm   
 
#trig "Prompt" {Hp: (%d)/(%d) Mp: (%d)/(%d)} {#var CurrentHp %1;#var MaxHp %2;#var CurrentMp %3;#var MaxMp %4} "" {prompt|nocr}

Then set the gauge value as @CurrentHp, the max as @MaxHp, and the low value as @CurrentHp/4 or something.

What are you using to deactivate the class? I prefer #T- and #T+ since they'll never change any of the settings of the class. If you're using #class it's possible you're using the syntax wrong.

EDIT: I realise I didn't explain myself very well. The gauge is a type of button. Create a button and choose gauge from the type menu. Then you'll get the options I mentioned above, as well as being able to resize and move it if you uncheck autosize and autoposition.
Reply with quote
Deranoon
Newbie


Joined: 26 Jan 2007
Posts: 4

PostPosted: Fri Jan 26, 2007 7:10 pm   
 
Hi, thank you the gauge works!

What i'm trying to do is when a monster dies it #t- class1;#wait 500;#t+ class2 but once it enables the next class it sets it off even if no text appears to trigger it.
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Fri Jan 26, 2007 7:23 pm   
 
Hrm, ignoring the obvious question of why the wait between turning off one and turning on the next I'm going to suggest you use

Code:
#t- class1
#alarm +.5 {#t+ class2}


instead of using the

Code:
#t- class1
#wait 500
#t- class2


Both wait the half a second, which you want. But the #wait command has a lot of side effects that you probably do not want.

I can't say why your triggers are firing without more information, so I can't give more advice.
Still though make that change and let us know if it keeps firing when it isn't supposed to.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Deranoon
Newbie


Joined: 26 Jan 2007
Posts: 4

PostPosted: Fri Jan 26, 2007 8:11 pm   
 
Sweet, #ALARM works a lot better. Thank you for the help!
Reply with quote
Deranoon
Newbie


Joined: 26 Jan 2007
Posts: 4

PostPosted: Fri Jan 26, 2007 10:38 pm   
 
Nevermi I figured it out.
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Sat Jan 27, 2007 1:47 am   
 
Well what -was- it? Other people may have the same problem some time and how can we snobbily tell them to use the Search feature if the Search feature doesn't actually give answers?

(Sorry, hasn't that ever happened to anyone? You find someone who outlines the exact problem you're having, and then they post saying "solved it" but no mention of how and the post is about 90 years old with no mailing address or anything?)
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