Hey.
Of course, I am a complete stranger to javascript but when it comes to game design, I tend to have a lot of ambitious ideas brewing
so you could say I bite off more than I can chew.
Anyway, I'm working on some states in my game which are "Wound states" that occur as actors lose HP - inspired from the Long War mod for XCOM: Enemy Unknown (or Enemy Within, take your pick).
Here's how it goes.
Actors would gradually lose their stats (ATK, DEF, AGI, etc.) as he/she loses HP.
Rather than apply a different state for each increment of HP an actor loses, I'd like the state penalty to be applies dynamically
according to the current HP level - do you see where I'm getting at?
In addition to this kind of state, I'm also working on more permanent states that decrease an actors Max HP according to how much damage he/she takes. For example, take damage that amount to around 25% of an actors Max HP, he/she suffers a light wound state that reduces that stat to 75%. Finally, if an actor suffers damage that is at least 75% of his/her Max HP, he/she gets a wound state that reduces it to 25%.
So I'm wondering if anyone knows how to write these triggers in javascript.
Thanks.
Of course, I am a complete stranger to javascript but when it comes to game design, I tend to have a lot of ambitious ideas brewing
so you could say I bite off more than I can chew.
Anyway, I'm working on some states in my game which are "Wound states" that occur as actors lose HP - inspired from the Long War mod for XCOM: Enemy Unknown (or Enemy Within, take your pick).
Here's how it goes.
Actors would gradually lose their stats (ATK, DEF, AGI, etc.) as he/she loses HP.
Rather than apply a different state for each increment of HP an actor loses, I'd like the state penalty to be applies dynamically
according to the current HP level - do you see where I'm getting at?
In addition to this kind of state, I'm also working on more permanent states that decrease an actors Max HP according to how much damage he/she takes. For example, take damage that amount to around 25% of an actors Max HP, he/she suffers a light wound state that reduces that stat to 75%. Finally, if an actor suffers damage that is at least 75% of his/her Max HP, he/she gets a wound state that reduces it to 25%.
So I'm wondering if anyone knows how to write these triggers in javascript.
Thanks.