Akiwoofer Posted August 29, 2020 Share Posted August 29, 2020 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 More sharing options...
DecDuck Posted August 29, 2020 Share Posted August 29, 2020 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 More sharing options...
penguin0616 Posted August 30, 2020 Share Posted August 30, 2020 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" 1 Link to comment Share on other sites More sharing options...
Akiwoofer Posted August 30, 2020 Author Share Posted August 30, 2020 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 More sharing options...
DecDuck Posted August 31, 2020 Share Posted August 31, 2020 You could use a healthtrigger. That’s what makes Klaus transform. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now