- Joined
- Jul 30, 2006
- Messages
- 3
I'm trying to configure an ability to have an inconsitant lvl skip requirement:
Levels 1-10 of the ability will have a 2 lvl skip requirement.
Levels 11-15 will have a 3 lvl skip req.
Levels 16-20 will have a 4 lvl skip req.
I tried doing this through triggers and did not prevail correctly. I did several things that made since, but yet did not so my friends told me to turn to JASS. Please Help, here is my code that is not JASS based.
Note: all 3 versions have 20 levels in them, when i replace the older version of an ability, i set the level of the new one to w/e lvl necessary (ex: when 11-15 replaces 1-10, i set the lvl of the new one to 10)
The abilities are the same ability in object editor essentially, the only difference in them is their lvl skip requirement and editor suffix (1-10, etc)
Levels 1-10 of the ability will have a 2 lvl skip requirement.
Levels 11-15 will have a 3 lvl skip req.
Levels 16-20 will have a 4 lvl skip req.
I tried doing this through triggers and did not prevail correctly. I did several things that made since, but yet did not so my friends told me to turn to JASS. Please Help, here is my code that is not JASS based.
Code:
Unit - A unit Learns a skill
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of (ability 1-10) for (Learning Hero)) Equal to 10
Then - Actions
Unit - Remove(ability 1-10) from (Learning Hero)
Unit - Add (ability 11-15) to (Learning Hero)
Unit - Set level of (ability 11-15) for (Learning Hero) to 10
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of (ability 11-15) for (Learning Hero)) Equal to 15
Then - Actions
Unit - Remove (ability 11-15) from (Learning Hero)
Unit - Add (ability 16-20) to (Learning Hero)
Unit - Set level of (ability 16-20) for (Learning Hero) to 15
Else - Actions
Do nothing
Note: all 3 versions have 20 levels in them, when i replace the older version of an ability, i set the level of the new one to w/e lvl necessary (ex: when 11-15 replaces 1-10, i set the lvl of the new one to 10)
The abilities are the same ability in object editor essentially, the only difference in them is their lvl skip requirement and editor suffix (1-10, etc)