Hi. I'm making a game in which everyone is wearing armour that needs to be broken through before any damage can be caused.
I have it set up using YEP_X_ItemDurability for the actors. They have armour and DEF set up so that it causes the damage to be 0, but after it is hit a number of times it breaks, and then the damage takes effect.
However, for the sake of game play, and having fun smashing the enemies stuff just like they smash yours, I also need this durability aspect to happen to the enemies.
The function would be:
You need to hit each individual enemy a number of times, causing 0 DMG, before a message comes up that says "enemy 1's armour breaks", and then the enemy's DEF will be lowered X amount, and this would result in the DMG being raised.
Ideally, it would be stackable, too. So you would continue to break off bits of armour with each attack, and then their DEF would get even lower after a certain amount of more attacks.
And it needs to be individual for each enemy. So that would mean using a variable that counts all hits and lowers all DEF wouldn't work. It needs to be like 'slime 1 has been hit 3 times, therefore slime 1 is affected by DEF lowered'
Perhaps the solution is creating invisible states that stack, but I can't figure out which ones they would be.
Thanks.
I have it set up using YEP_X_ItemDurability for the actors. They have armour and DEF set up so that it causes the damage to be 0, but after it is hit a number of times it breaks, and then the damage takes effect.
However, for the sake of game play, and having fun smashing the enemies stuff just like they smash yours, I also need this durability aspect to happen to the enemies.
The function would be:
You need to hit each individual enemy a number of times, causing 0 DMG, before a message comes up that says "enemy 1's armour breaks", and then the enemy's DEF will be lowered X amount, and this would result in the DMG being raised.
Ideally, it would be stackable, too. So you would continue to break off bits of armour with each attack, and then their DEF would get even lower after a certain amount of more attacks.
And it needs to be individual for each enemy. So that would mean using a variable that counts all hits and lowers all DEF wouldn't work. It needs to be like 'slime 1 has been hit 3 times, therefore slime 1 is affected by DEF lowered'
Perhaps the solution is creating invisible states that stack, but I can't figure out which ones they would be.
Thanks.