TPOX
New Member
- Reaction score
- 10
This is real hard I cant figure it out.
I have 13 lvls for an ability and i want the abilities lvl to depend on the value of something. The value goes from 0 to 300.
When the value of something is 0 i want it to be lvl 1, when value is 25 i want it to be lvl 2, value 50 i want lvl 3, it goes up by 25. The thing is though, i want to create a trigger with something like this.
I know its not right but what im wanting to do is to change the lvl of ability depending on the height value.
I have 13 lvls for an ability and i want the abilities lvl to depend on the value of something. The value goes from 0 to 300.
When the value of something is 0 i want it to be lvl 1, when value is 25 i want it to be lvl 2, value 50 i want lvl 3, it goes up by 25. The thing is though, i want to create a trigger with something like this.
Code:
Ascend
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Ascend
Actions
Set CastingUnit_Ascend = (Casting unit)
Animation - Change CastingUnit_Ascend flying height to ((Current flying height of CastingUnit_Ascend) + 25.00) at 100.00
Unit - Set Level of Flight Altitude (Evade) for CastingUnit_Ascend to ((Integer((Current flying height of CastingUnit_Ascend))) / (Integer(23.07)))
I know its not right but what im wanting to do is to change the lvl of ability depending on the height value.


