SonOfStone Posted March 31, 2018 Share Posted March 31, 2018 I've been studying the animation system for some time and it got me to thinking. Would it be possible to implement a simple system where a melee unit has a chance to hit or miss their opponent, and if they hit or miss have the appropriate animation play? obviously it would be very difficult for animations like this, so it would be much easier just to have the other swordsman dodge the hit if the enemy misses. I think you would have to designate the hit or miss ratio in the UnitAI script, and have each unit perform their calculations, and then the animation after it decides if it hits or misses. is this possible? Link to comment Share on other sites More sharing options...
Stan` Posted March 31, 2018 Share Posted March 31, 2018 Hello @SonOfStone and welcome to the forums, That's the good thing with open-source software, everything is doable. It would be a bit tricky to implement, but anyone with patience and some c++ and JavaScript knowledge should be able to pull this off. It might include significant work on xml files as well but since we use an inheritance system, shouldn't be more than 50 files to tweak to do what you want. You'll likely have to tweak UniAI.js. You might even not need c++ after all. 1 Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted March 31, 2018 Share Posted March 31, 2018 (edited) @wowgetoffyourcellphoneV @Alexandermb Edited March 31, 2018 by Lion.Kanzen Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now