Jump to content

Health trigger code for transformation?


Recommended Posts

So I'm trying to code a "Panic mode" for my character and I can't seem to find a code that would trigger a transformation based off the character's health,
such as when the character is at 50% hp it starts panicking. Therefore it's transformation

Link to comment
Share on other sites

You have a two options (I can think of. There may be more):

1. Constantly check their health, and if below 50%, then change.

2. Every time their health gets affected, check for 50%, then change. 

I would advise going with 2.

Link to comment
Share on other sites

2 hours ago, penguin0616 said:

Yeah, what decduck said is a good idea. If you want a reference, you can look at Klaus. When he reaches 50% health, he summons krampii. All you would have to do is replace "summon krampii" with "panick"

Thanks for this one, but im a noob in coding so im not able to find out whats the trigger and the stat changes haha-

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...