Topic: set up "Damage on Hit" in the run time

I tried to change the value on "Damage on Hit" in the run time.  Depended on what users selected from screen, it will change the strength of character, punch, kick, etc..
so I tried to change the Move's "Damage on Hit".  So far, I have changed the "ControlsScript.cs"  "GetHit" function,in order to change the Damage value I have checked the "BasicMoveInfo" name and add/minus some extra value to "hit.damageOnHit"
I'm just wondering if there is other ways to do this.

Thanks!

Share

Thumbs up Thumbs down

Re: set up "Damage on Hit" in the run time

When it comes to code, the possibilities are many. This approach is by far the simplest/easiest one, I believe.

Share

Thumbs up Thumbs down

Re: set up "Damage on Hit" in the run time

Thank you for replying, yes, I think I will stick with this approach.

Share

Thumbs up Thumbs down