- Joined
- Mar 17, 2012
- Messages
- 582
Hi there! I have a problem: In my map hero pave to gain some stats and skills every 5 levels till 15 level.
here is the code:
Any ideas?
here is the code:
-
Demon lvlup
-
Events
-
Unit - A unit Gains a level
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Demon Fighter
-
-
Actions
-
-------- SKILLS --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of (Triggering unit)) Equal to 5
-
-
Then - Actions
-
Hero - Modify Strength of (Triggering unit): Add (41 / 10)
-
Hero - Modify Intelligence of (Triggering unit): Add (25 / 10)
-
Unit - Add Power Strike to (Triggering unit)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of (Triggering unit)) Equal to 10
-
-
Then - Actions
-
Hero - Modify Strength of (Triggering unit): Add (41 / 10)
-
Hero - Modify Intelligence of (Triggering unit): Add (25 / 10)
-
Unit - Add Power Strike to (Triggering unit)
-
Unit - Set level of Power Strike for (Triggering unit) to 2
-
Unit - Add Self Buffs demon fighter to (Triggering unit)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of (Triggering unit)) Equal to 15
-
-
Then - Actions
-
Hero - Modify Strength of (Triggering unit): Add (41 / 10)
-
Hero - Modify Intelligence of (Triggering unit): Add (25 / 10)
-
Unit - Add Power Strike to (Triggering unit)
-
Unit - Set level of Power Strike for (Triggering unit) to 3
-
Unit - Add Drain Health (demon fighter) to (Triggering unit)
-
-
Else - Actions
-
-
-
-
Any ideas?
