DARK SOULS in Unity – Ep. 110

In this episode we create functionality to “Roll” for a chance for an action to occur during our A.I’s combat stance state. We do this by creating an int value from 0 – 100 for each action’s likely hood. 0 being 0% of the time this action will occur. 100 being 100% of the time this action will occur. We then set up the functionality decide if the action is to take place during the current state. We then begin refactoring our Item Based Actions to support AI along with the Player. This will allow our A.I to use weapon move sets, changing their attacks as their weapon changes, just like the player.

Sebastian Graves