So, I'm trying to make a class in my game, called the Marksman. They use guns.
Their shtick from a gameplay standpoint is that their skills will add certain buffs to the user's next attack, and these buffs can stack. For example, use burstfire, scope, and incendiary round for an attack that attacks twice, is more likely to score critical hits, and catch their opponents on fire. These buffs go away once you use your attack skill.
Currently, I'm using states to make the thing work. When you attack, you put a state on yourself that removes the marksmanship states and then removes itself. The problem is that this removes the buffs before determining the effect on the enemy. For example, with incendiary round, it will remove the incendiary round effect before it can actually put a state on an enemy, which makes the skill useless.
Are there any plugins which make it possible for a state to be removed by the person with the state attacking after determining the attack's effect on the enemy?
Their shtick from a gameplay standpoint is that their skills will add certain buffs to the user's next attack, and these buffs can stack. For example, use burstfire, scope, and incendiary round for an attack that attacks twice, is more likely to score critical hits, and catch their opponents on fire. These buffs go away once you use your attack skill.
Currently, I'm using states to make the thing work. When you attack, you put a state on yourself that removes the marksmanship states and then removes itself. The problem is that this removes the buffs before determining the effect on the enemy. For example, with incendiary round, it will remove the incendiary round effect before it can actually put a state on an enemy, which makes the skill useless.
Are there any plugins which make it possible for a state to be removed by the person with the state attacking after determining the attack's effect on the enemy?