Sergio Rosendo
Member
- Joined
- Dec 13, 2015
- Messages
- 45
- Reaction score
- 13
So I wanted a 'chilled' condition that would reduce the player/creature base speed for its duration.
I tried but I was unable to do it on my own.
Distro Name: TFS 1.2
Script type: Script for a new condition that reduces player/creature base move speed for its duration.
Description of the script:
In conditions.cpp the script would define a new condition (here called 'chilled') that would reduce the player/creature base move speed. Becoming hasted, paralyzed or healed would not remove the 'chilled' condition. Instead, if a chilled player becomes hasted or paralyzed, it would keep both chilled and the haste/paralyze modifiers.
Math Example:
Player Base Speed = 1000
Haste = 70% speed buff
Paralyze = 70% speed debuff
Chilled = -25 Base Speed
Speed calculations:
Player Hasted = 1000 * (1 + 0,7) = 1700
Player Paralyzed = 1000 * (1 - 0,7) = 300
Player Chilled = 1000 - 25 = 975
Player Chilled + Hasted = (1000 - 25) * (1 + 0,7) = 1657,5 = 1657
Player Chiller + Paralyzed = (1000 - 25) * (1 - 0,7) = 292,5 = 292
I hope I was clear enough.
Thanks in advance for your time and effort.
I tried but I was unable to do it on my own.
Distro Name: TFS 1.2
Script type: Script for a new condition that reduces player/creature base move speed for its duration.
Description of the script:
In conditions.cpp the script would define a new condition (here called 'chilled') that would reduce the player/creature base move speed. Becoming hasted, paralyzed or healed would not remove the 'chilled' condition. Instead, if a chilled player becomes hasted or paralyzed, it would keep both chilled and the haste/paralyze modifiers.
Math Example:
Player Base Speed = 1000
Haste = 70% speed buff
Paralyze = 70% speed debuff
Chilled = -25 Base Speed
Speed calculations:
Player Hasted = 1000 * (1 + 0,7) = 1700
Player Paralyzed = 1000 * (1 - 0,7) = 300
Player Chilled = 1000 - 25 = 975
Player Chilled + Hasted = (1000 - 25) * (1 + 0,7) = 1657,5 = 1657
Player Chiller + Paralyzed = (1000 - 25) * (1 - 0,7) = 292,5 = 292
I hope I was clear enough.
Thanks in advance for your time and effort.
Last edited: