Page 1 of 1

Different health bars?

Posted: Thu Jul 24, 2008 4:39 pm
by Kiji8989
I dunno, but is it possible to make another health bar that goes down over time? I want to use it for my hunting feature.

Re: Different health bars?

Posted: Thu Jul 24, 2008 5:21 pm
by metal_head
make another health bar that goes down over time
What will this be used for?You want to have another health attribute or something else?
Tell me,I'm a newbie ,but I might be able to help you.

Re: Different health bars?

Posted: Sat Jul 26, 2008 9:55 am
by steven8
I think this is what you are looking for. From The manual on Entity References:
ChangeAttribute
The ChangeAttribute entity causes an attribute of the player to change over time.
It is triggered to start and will change the amount of the specified attribute over a
specified amount of time. The change can either be a percentage of the initial
amount or a fixed value.

Re: Different health bars?

Posted: Sat Jul 26, 2008 2:47 pm
by Kiji8989
metal_head wrote:
make another health bar that goes down over time
What will this be used for?You want to have another health attribute or something else?
Tell me,I'm a newbie ,but I might be able to help you.

For my hunting feature in Twist of the Moon. A hunger bar that goes down over time. And if you dont take care of yourself, you die. XP like that. Thank you.

Re: Different health bars?

Posted: Sat Jul 26, 2008 2:48 pm
by Kiji8989
steven8 wrote:I think this is what you are looking for. From The manual on Entity References:
ChangeAttribute
The ChangeAttribute entity causes an attribute of the player to change over time.
It is triggered to start and will change the amount of the specified attribute over a
specified amount of time. The change can either be a percentage of the initial
amount or a fixed value.

Thanks! :3

Re: Different health bars?

Posted: Sat Jul 26, 2008 8:20 pm
by steven8
You're welcome. Let us know if you have any trouble getting it to work.

Re: Different health bars?

Posted: Sat Jul 26, 2008 8:31 pm
by Kiji8989
steven8 wrote:You're welcome. Let us know if you have any trouble getting it to work.
I will. :3