- Joined
- Jan 25, 2011
- Messages
- 64
I have noticed that on hive isn't any spell/tutorial/system.... that uses "haste"
if you play WoW you know what i mean.
Haste is something that increases casting speed of a spell or reduces it's time between ticks by %.
I have made a simple trigger to show what i mean:
I used this in my map, i think it is useful but don't know if already someone made this (maybe ), The formula for haste calculation is this:
Base Casting Time / (1 + (% Spell Haste / 100))
Base Casting Time = means the casting time that has the spell (or time between ticks)
1 = it is the same as the casting time (in this case Base Casting time was too 1)
% Spell Haste = It is the ammount of haste that the caster has (I calculated the haste as Intelligence of the hero / 7.5(in my map(but you can use whatever))
100 = the number 100 makes from it % (if you write 50 instead, the haste will be doubled, 25 = 4x, 12.5 = 8x .....)
Note that the Event must be inserted through another trigger (through init or others....) and only then can be used variables!!!
Edit: One final thing, if the haste is 100% the casting speed will not be reduced to 0, because the formula is:
1 / (1+Haste/100)
That means it will just decrease the casting speed by half ---> 1/2
200% equal to a 1/3 reduction, 300% = 1/4 so it is:
1/((%Haste/100)+1)
if you play WoW you know what i mean.
Haste is something that increases casting speed of a spell or reduces it's time between ticks by %.
I have made a simple trigger to show what i mean:
-
Haste
-
Events
- Time - Every (1.00 / (1.00 + ((%Haste) / 100.00))) seconds of game time
- Conditions
-
Actions
- Unit - Cause CASTER to damage TARGET, dealing 100.00 damage of attack type Spells and damage type Normal
-
Events
Base Casting Time / (1 + (% Spell Haste / 100))
Base Casting Time = means the casting time that has the spell (or time between ticks)
1 = it is the same as the casting time (in this case Base Casting time was too 1)
% Spell Haste = It is the ammount of haste that the caster has (I calculated the haste as Intelligence of the hero / 7.5(in my map(but you can use whatever))
100 = the number 100 makes from it % (if you write 50 instead, the haste will be doubled, 25 = 4x, 12.5 = 8x .....)
Note that the Event must be inserted through another trigger (through init or others....) and only then can be used variables!!!
Edit: One final thing, if the haste is 100% the casting speed will not be reduced to 0, because the formula is:
1 / (1+Haste/100)
That means it will just decrease the casting speed by half ---> 1/2
200% equal to a 1/3 reduction, 300% = 1/4 so it is:
1/((%Haste/100)+1)
Last edited: