Deleted member 231919
D
Deleted member 231919
I have a trigger which makes a hero lose -1 skill point for each level that hero gains. The hero only gains +1 skill points at levels 10, 20, 30, 40, 50, and up to 100 by going by tens. The hero is meant to keep the skill point at level 1, and the next skill points should be at 10, 20, etc.
The thing I am having trouble with, is that when the hero levels more than once at the same time, so for example, the hero kills a unit and then that hero gains enough EXP to go from level 1 to level 4, that hero will gain additional skill points.
I am looking for something that will make it so if that hero levels more than once from a single enemy, he will only get skill points at levels 1, 10, 20, and up to 100 by tens.
The trigger doesn't reoccur more than once from multiple levels gained at the same time, unfortunately.
The thing I am having trouble with, is that when the hero levels more than once at the same time, so for example, the hero kills a unit and then that hero gains enough EXP to go from level 1 to level 4, that hero will gain additional skill points.
I am looking for something that will make it so if that hero levels more than once from a single enemy, he will only get skill points at levels 1, 10, 20, and up to 100 by tens.
The trigger doesn't reoccur more than once from multiple levels gained at the same time, unfortunately.
-
Hero Leveling
-
Events
-
Unit - A unit Gains a level
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to /w Nothing
-
(Unit-type of (Triggering unit)) Equal to /w Broadsword
-
(Unit-type of (Triggering unit)) Equal to /w Aqua Sword
-
(Unit-type of (Triggering unit)) Equal to /w Claymore
-
(Unit-type of (Triggering unit)) Equal to /w Flame Saber
-
(Unit-type of (Triggering unit)) Equal to /w Battle Axe
-
(Unit-type of (Triggering unit)) Equal to /w Thunder Axe
-
(Unit-type of (Triggering unit)) Equal to /w Boulder Hammer
-
-
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Hero level of (Triggering unit)) Greater than or equal to 1
-
-
Then - Actions
-
Hero - Modify unspent skill points of (Triggering unit): Subtract 1 points
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Hero level of (Triggering unit)) Equal to 10
-
-
Then - Actions
-
Hero - Modify unspent skill points of (Triggering unit): Add 1 points
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Hero level of (Triggering unit)) Equal to 20
-
-
Then - Actions
-
Hero - Modify unspent skill points of (Triggering unit): Add 1 points
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Hero level of (Triggering unit)) Equal to 30
-
-
Then - Actions
-
Hero - Modify unspent skill points of (Triggering unit): Add 1 points
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Hero level of (Triggering unit)) Equal to 40
-
-
Then - Actions
-
Hero - Modify unspent skill points of (Triggering unit): Add 1 points
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Hero level of (Triggering unit)) Equal to 50
-
-
Then - Actions
-
Hero - Modify unspent skill points of (Triggering unit): Add 1 points
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
-
-