hi! im currently making a game where i want all enemies to have some kind of damage mitigation barrier that only gets depleted if hit by an element its weak to, otherwise simply reducing incoming damage without depleting.
if any of you are familiar with hoyoverse's Honkai: Star Rail, think of it in the sense of the Toughness bar above the enemy. thats basically how i want it to work.
i have no experience in javascript so i was wondering if it was even possible to pull off something like this. ideally, once the barrier is gone, the enemy should also take increased damage, and the enemy's next turn the barrier regenerates in full unless their AGI is reduced, allowing the players to make another move within the turn.
i get theres probably gonna be quite a few "if; else" branches in the coding for it but i dont have the experience or the time to figure it out myself.
if any of you are familiar with hoyoverse's Honkai: Star Rail, think of it in the sense of the Toughness bar above the enemy. thats basically how i want it to work.
i have no experience in javascript so i was wondering if it was even possible to pull off something like this. ideally, once the barrier is gone, the enemy should also take increased damage, and the enemy's next turn the barrier regenerates in full unless their AGI is reduced, allowing the players to make another move within the turn.
i get theres probably gonna be quite a few "if; else" branches in the coding for it but i dont have the experience or the time to figure it out myself.