O.A
Quantum physics rules
- Reaction score
- 29
Edit: Solved
Trying to make a damage script based on hero level, thus:
Unit - Cause (X unit) to damage (Y unit), dealing ((Real((Level of (Casting unit)))) x 5.00) damage of attack type Spells and damage type Normal. This is not working.
Also tried to make Creep Heroes lose 10% of their level amount when reviving them, thus:
Hero - Set (Revived Hero) Hero-level to ((Level of (Dead Hero)) x (Integer(0.90))). This is not working either.
I'm just thinking of these as numbers (Y x 0.9 = 90% of Y), but clearly something is going wrong in the conversion. Any replies appreciated.
Edit: Ok, seems after all the damage script is working, but the Hero still revives as level 1, and i tried it with / 2 and that one worked alright. The Hero´s level was divided by 2 every time.
Trying to make a damage script based on hero level, thus:
Unit - Cause (X unit) to damage (Y unit), dealing ((Real((Level of (Casting unit)))) x 5.00) damage of attack type Spells and damage type Normal. This is not working.
Also tried to make Creep Heroes lose 10% of their level amount when reviving them, thus:
Hero - Set (Revived Hero) Hero-level to ((Level of (Dead Hero)) x (Integer(0.90))). This is not working either.
I'm just thinking of these as numbers (Y x 0.9 = 90% of Y), but clearly something is going wrong in the conversion. Any replies appreciated.
Edit: Ok, seems after all the damage script is working, but the Hero still revives as level 1, and i tried it with / 2 and that one worked alright. The Hero´s level was divided by 2 every time.