Difference between revisions of "Animation"

From Basin Wiki
Jump to navigation Jump to search
(more text to introduce sub pages)
 
Line 11: Line 11:
 
'''FramesPerDirection''' - number of frames in the animation<br>
 
'''FramesPerDirection''' - number of frames in the animation<br>
 
'''AnimationSpeed''' - how quickly to advance through the animation (in 256ths of a frame)<br>
 
'''AnimationSpeed''' - how quickly to advance through the animation (in 256ths of a frame)<br>
'''StartingFrame''' - frame number to start at<br>
+
'''StartingFrame''' - frame number to start the counter at<br>
 
'''ActionFlagFrames''' - frame numbers that have an action flag set<br>
 
'''ActionFlagFrames''' - frame numbers that have an action flag set<br>
  
FramesPerDirection denotes the number of frames in the animation. The place in the animation is tracked by an animation counter where every frame has a set of 256 counts where it is the displayed frame. The currently active frame can be found by dividing the counter by 256 and taking the integer portion of the result.<br>
+
FramesPerDirection denotes the number of frames in the animation. The place in the animation is tracked by an animation counter where every frame has a set of 256 counts where it is the displayed frame. The currently active frame can be found by dividing the counter by 256 and taking the integer portion of the result. The game updates at a rate of 25 times per second.
  
Every game simulation cycle, the counter is incremented at a certain amount. The standard amount is AnimationSpeed and can be modified by game conditions. Having an AnimationSpeed of 256 will advance the counter to the next frame every game cycle while an AnimationSpeed of 128 will require two game cycles to advance the counter to indicate the next frame.
+
Every game update cycle, animation counters are incremented a certain amount. The standard amount is AnimationSpeed of the active animation. Having an AnimationSpeed of 256 will advance the counter to the next frame every game cycle while an AnimationSpeed of 128 will require two game cycles to advance the counter to indicate the next frame.
  
 
The animations are categorized by unit code, animation mode, and type of weapon held by the unit. The unit code denotes the type of unit, whether it be one of the player character types or a monster. The animation mode corresponds with the type of action the unit is performing. wclass corresponds weapon class of the equipped weapons. Without a weapon, the wclass is HTH. The base item class can be found in weapons.txt and dual wielding has its own type depending on the items equipped in each hand.
 
The animations are categorized by unit code, animation mode, and type of weapon held by the unit. The unit code denotes the type of unit, whether it be one of the player character types or a monster. The animation mode corresponds with the type of action the unit is performing. wclass corresponds weapon class of the equipped weapons. Without a weapon, the wclass is HTH. The base item class can be found in weapons.txt and dual wielding has its own type depending on the items equipped in each hand.
Line 61: Line 61:
 
1SS = both hand swing<br>
 
1SS = both hand swing<br>
 
1ST = left hand stab, right hand swing<br>
 
1ST = left hand stab, right hand swing<br>
 +
 +
There are stats in the game that affect the speed of animations. The standard rate is the AnimationSpeed of the animation. Modifications to the rate are added together as percentage modifications. The general process is as follows:
 +
 +
Add the rate modifiers together. Speed increases are positive while speed decreases are negative.<br>
 +
The sum of rate modifiers is limited to being between -85 and +75<br>
 +
AnimRate = AnimationSpeed * (100 + Sum of rate modifiers) / 100<br>
 +
AnimRate is used to increment the animation counter
 +
 +
The mathematics of percentage modifiers means that a having a skill that increases attack speed by 40% gives an AnimRate that is 140% of AnimationSpeed. Having a slows target by 40% gives an AnimRate that is 60% of AnimationSpeed.
 +
 +
Stats that apply animation speed changes are limited to specific types of animations rather than all animations.<br>
 +
 +
Skills such as [[Fanaticism]], [[Burst of Speed]], [[Frenzy]], and [[Werewolf]] provide attack animation speed increases. The [[Holy Freeze]] aura and the [[Decrepify]] curse apply attack animation speed decreases.
 +
 +
[[Slows Target]] slows the speed of attack animations and movement speed based on the value of the stat.
 +
 +
Chilling applies a -50 to the attack animation rate. This is capped by chill effectiveness stat.
 +
 +
[[Freezes Target|Freeze target]]
 +
[[Freeze length]]
 +
[[Half Freeze Duration|Half Freeze]]
 +
[[Cannot be Frozen|Not Frozen]]
 +
Freezing keeps the current animation from advancing.
 +
 +
Getting stunned cancels the current action/animation and puts them into a neutral animation. [[Stun length]]
 +
 +
[[Walk/run speed|Walk/run]]
 +
[[Faster Run/Walk]]
 +
The animation is scaled depending on how far a character moves per update cycle.
 +
 +
[[Hit recovery]]
 +
[[Faster Hit Recovery]] is a stat found on gear that increases the speed of get hit animations. It is subject to a diminishing returns formula. [[Knockback]] puts the affected unit into a get hit animation.
 +
 +
[[Attack speed]]
 +
[[Weapon speed]] is a property of weapons equipped. Some weapon types are inherently faster or slower than others.
 +
 +
[[Increased Attack Speed]] is a stat found on gear that increases the speed of attack animations. It is subject to diminishing returns formula.
 +
 +
[[Block rate]]
 +
[[Faster Block Rate]] is a stat found on gear that increases the speed of block animations. It is subject to diminishing returns formula.
 +
 +
[[Cast rate]]
 +
[[Faster Cast Rate]] is a stat found on gear that increases the speed of casting animations. It is subject to diminishing returns formula.
  
 
===10===
 
===10===

Latest revision as of 19:41, 26 November 2021