- Joined
- Dec 12, 2012
- Messages
- 96
Okay, so I made a search on how to create a trigger making AI heroes select additional skills with their unused skill points and the trigger I applied on it doesn't really work and I can barely analyze how this trigger would work.
So here's the thing, a hero in W3 has a max level of 10 normally with 4 Hero Abilities. Three of which can be learned up to level 3 and one ability can only be learned once, which is its ultimate. So I upgraded all these Hero Abilities up to level 5 while the ultimate up to level 3. In addition, I added an attribute bonuses (like in Dota) that can be learned up to level 31. Level of all Heroes are up to 500 (Edited Game Constants).
The problem is, I can't get these AI Heroes learn the added skills, once they reach level 10, they'll stop learning skills.
So here's the trigger I made for AI Heroes selecting attribute bonuses.
So here's the thing, a hero in W3 has a max level of 10 normally with 4 Hero Abilities. Three of which can be learned up to level 3 and one ability can only be learned once, which is its ultimate. So I upgraded all these Hero Abilities up to level 5 while the ultimate up to level 3. In addition, I added an attribute bonuses (like in Dota) that can be learned up to level 31. Level of all Heroes are up to 500 (Edited Game Constants).
The problem is, I can't get these AI Heroes learn the added skills, once they reach level 10, they'll stop learning skills.
So here's the trigger I made for AI Heroes selecting attribute bonuses.
-
Ai Heroes Custom skill
-
Events
- Unit - A unit Gains a level
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Owner of (Triggering unit)) Equal to Player 2 (Blue)
- (Owner of (Triggering unit)) Equal to Player 6 (Orange)
- (Owner of (Triggering unit)) Equal to Player 7 (Green)
- (Owner of (Triggering unit)) Equal to Player 8 (Pink)
-
Conditions
- (Triggering unit) Equal to (Leveling Hero)
- (Hero level of (Triggering unit)) Greater than 3
-
Or - Any (Conditions) are true
-
Actions
-
For each (Integer A) from 1 to (Unspent skill points of (Triggering unit)), do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Death Knight
-
Then - Actions
- Hero - Learn skill for (Triggering unit): Attribute Bonus (Upto 50)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Paladin
- (Unit-type of (Triggering unit)) Equal to Archmage
- (Unit-type of (Triggering unit)) Equal to Mountain King
- (Unit-type of (Triggering unit)) Equal to Blood Mage
- (Unit-type of (Triggering unit)) Equal to Blademaster
- (Unit-type of (Triggering unit)) Equal to Far Seer
- (Unit-type of (Triggering unit)) Equal to Tauren Chieftain
- (Unit-type of (Triggering unit)) Equal to Shadow Hunter
- (Unit-type of (Triggering unit)) Equal to Death Knight
- (Unit-type of (Triggering unit)) Equal to Lich
- (Unit-type of (Triggering unit)) Equal to Dreadlord
- (Unit-type of (Triggering unit)) Equal to Crypt Lord
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Unit - Set level of Attribute Bonus (Upto 50) for (Triggering unit) to 31
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer A) from 1 to (Unspent skill points of (Triggering unit)), do (Actions)
-
Events