top of page

Impulse: Enemy Attack AI and Bleed Effect

I have added functionality to the manager and base character scripts to allow the enemy characters to also use the Bloody Slash ability, allowing them to attack player characters, dealing damage to them.

Here is the new Bloody Slash function which can be used by both enemy and friendly characters:

I added a string list variable to the base character script called Effects. This will be used to track buffs and debuffs applied to the character. This list is read by the manager on a character's turn and the effects are then applied before being removed. The Bleed effect applied by Bloody Slash simply deals 1 damage to the target on their next turn. This was important to implement as it will interact with our vampire character's Impulse mechanic.

Here is a video showing both friendly and enemy characters using Bloody Slash to deal instant damage followed by Bleed damage on their target's next turn:


Comments


bottom of page