- Joined
- Sep 22, 2011
- Messages
- 70
Ok, so I made a Holy Nova type spell (if u've played wow u know what it is)
Bascially, the hero casts it, it has no target unit/location, and all friendly targets within x distance are to get healed by x amount.
I'm having problems with this part..
i'm using the following trigger to make the spell's effect:
THIS is where the problem starts, the first two levels are perfect.. however, using the object editor on a basic healing spell (Holy Light for example) Using the lvl 1 base of 56, and setting the level factor as 21, it comes out, 56, 98, 161, 245 but using it mathmatically, it comes out as 56, 98, 119, 140
Why is this? and what can I do to fix this? because I like the numbers for the 10 levels of the baility for the heal, they fit in perfectly with the Level Factor as 21, starting at 56, (Yes i know the first level of the spell will actually heal for 77(21 more then 56) because of how the trigger is set up, that is fine)
Basically, since there is no mass-aoe instant-heal spell already in the game, that is casted by a unit, rather then passive, I need to create one.
Healing wave wont work, one because another hero already has one like it, and two i want the heal to be instant to everyone around, not take a few seconds to jump around.
I thought using the algortithim of the *Ability Level* times 21(level factor) +56(base value) would equal *Heal desired*, however it equals far lower then that, on the GUI object editor, the level 10 heal is 1190, but using the mathmatical algorithim for it is 10*21=210+56=266 which is far from 1190 infact its 4.47 times lower.. and obviously I cant just take the number and multiply the current total by 4.47, it woudl work for the max level, but at lvls 1-9 it would make the heal higher then desired, as at lvl 9 the heal is only 4.0times lower, and ect.8 is 3.53, ect.
I need to know why I'm runnign into this error, is my math wrong somewhere? Did I fubar my own equations? or am I simply using the wrong values in the equation? is the way the object editor is figureing the numbers somehow diffrent then: <ability level>*<level factor>+<base value>=<total value> ??
and I already tried <ability level>+<Base value>*<level factor> that comes out way higher then the object editor says.. sooo.. help..plz..
Bascially, the hero casts it, it has no target unit/location, and all friendly targets within x distance are to get healed by x amount.
I'm having problems with this part..
i'm using the following trigger to make the spell's effect:
- Holy Nova
-
Events
- Unit - A units begins the effect of an ability
-
Conditions
- (Ability being cast) Equal to Holy Nova
-
Actions
- Set HolyNova_Caster = (Triggering unit)
- Set HolyNova_Targets = (Units within 350.00 of (Position of (HolyNova_Caster)))
- Unit Group - Pick every unit in HolyNova_Targets and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (((Real((Level of Holy Nova for (Triggering unit)))) x 21.00 + 56.00)))
- Custom Script: call DestroyGroup(udg_HolyNova_Targets)
THIS is where the problem starts, the first two levels are perfect.. however, using the object editor on a basic healing spell (Holy Light for example) Using the lvl 1 base of 56, and setting the level factor as 21, it comes out, 56, 98, 161, 245 but using it mathmatically, it comes out as 56, 98, 119, 140
Why is this? and what can I do to fix this? because I like the numbers for the 10 levels of the baility for the heal, they fit in perfectly with the Level Factor as 21, starting at 56, (Yes i know the first level of the spell will actually heal for 77(21 more then 56) because of how the trigger is set up, that is fine)
Basically, since there is no mass-aoe instant-heal spell already in the game, that is casted by a unit, rather then passive, I need to create one.
Healing wave wont work, one because another hero already has one like it, and two i want the heal to be instant to everyone around, not take a few seconds to jump around.
I thought using the algortithim of the *Ability Level* times 21(level factor) +56(base value) would equal *Heal desired*, however it equals far lower then that, on the GUI object editor, the level 10 heal is 1190, but using the mathmatical algorithim for it is 10*21=210+56=266 which is far from 1190 infact its 4.47 times lower.. and obviously I cant just take the number and multiply the current total by 4.47, it woudl work for the max level, but at lvls 1-9 it would make the heal higher then desired, as at lvl 9 the heal is only 4.0times lower, and ect.8 is 3.53, ect.
I need to know why I'm runnign into this error, is my math wrong somewhere? Did I fubar my own equations? or am I simply using the wrong values in the equation? is the way the object editor is figureing the numbers somehow diffrent then: <ability level>*<level factor>+<base value>=<total value> ??
and I already tried <ability level>+<Base value>*<level factor> that comes out way higher then the object editor says.. sooo.. help..plz..