Skip to main content

Posts

Most Recent Post

Recent posts

Sandbox RPG Week #4 - Action Commands

[Attacking Command] With the UI in place and the combat component carrying all the information a "Unit" character needs it's time to program some functionality into my project. To Start off I created a custom event which I will be calling again later, once this event is called I need the chosen unit character to move towards the selected enemy and back to its original battle position, then I added a variable containing an animation montage and told it to play the animation upon attacking. The animation that plays can be changed on a per character basis as each character will have a different skeleton which wouldn't immediately work with that last chosen animation. To apply damage to the chosen actor I created two functions that take values from the combat component stat structure and from the parent unit class stat modifiers then combine them together to create a single damage value and the second of these functions will take the single value result of the first funct...