Hi everyone
I have a little problem with a trigger here...
The trigger is supposed to give a random number of str between 8 and 12
also add 3 to agi if the hero is lvl below 35, and 2 if not...
The thing is that in the map, some units give much more exp than the required for the lvl of the hero...
assuming that the hero can kill that unit, it should lvl up like 2 or 3 lvls...
when this happens i need to do the same process for the number of lvls the hero gains..
i've come up with this, that works only fine for a 1 lvl gain...
if the hero gains 2, 3, 50 lvls it doesn't work...
hope you can give me a hand
I have a little problem with a trigger here...
The trigger is supposed to give a random number of str between 8 and 12
also add 3 to agi if the hero is lvl below 35, and 2 if not...
The thing is that in the map, some units give much more exp than the required for the lvl of the hero...
assuming that the hero can kill that unit, it should lvl up like 2 or 3 lvls...
when this happens i need to do the same process for the number of lvls the hero gains..
i've come up with this, that works only fine for a 1 lvl gain...
if the hero gains 2, 3, 50 lvls it doesn't work...
hope you can give me a hand
-
Stats del hero
-
Events
-
Unit - A unit Gains a level
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
-
Actions
-
Set level = (Hero level of (Leveling Hero))
-
Unit - Set life of (Leveling Hero) to 100.00%
-
Hero - Modify Strength of (Leveling Hero): Add (Random integer number between 8 and 12)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Hero level of (Triggering unit)) Less than or equal to 35
-
-
Then - Actions
-
Hero - Modify Agility of (Leveling Hero): Add 3
-
-
Else - Actions
-
Hero - Modify Agility of (Leveling Hero): Add 2
-
-
-
Set level = (Hero level of (Triggering unit))
-
-