I guess that you call the function player_animations in a while-loop already, right? Then, you should replace all the whiles with ifs and remove the waits - just to get proper reliable code.
What is odd, too, are the different skills used for counting up the percents for the animations, maybe, there's something mixed up.