HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Tracking Hero Levels...

05-21-2006, 10:20 PM#1
Ignitedstar
Okay, I made this trigger to make it so that the summoned hero is always on the same level as the caster hero.

Trigger:
Tracking Levels
Collapse Events
Unit - A unit Gains a level
Collapse Conditions
(Unit-type of (Triggering unit)) Equal to Summoner
Collapse Actions
Collapse Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is Summoned) Equal to True)) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of (Matching unit)) Not equal to (Hero level of (Triggering unit))
Collapse Then - Actions
Hero - Set (Matching unit) Hero-level to (Hero level of (Triggering unit)), Show level-up graphics
Collapse Else - Actions
Do nothing

It doesn't work! I know something is missing, but I can't figure out(My heads also hurts becuase I've been thinking about it for too long). Can someone find a solution?
05-21-2006, 10:23 PM#2
Mezzer
In the condition of the loop it should be Level of (picked unit) and not matching unit, same for the set level
05-22-2006, 02:01 AM#3
Ignitedstar
... Man, I've been stressing out for no reason. @_@

Oh well. Thanks a lot, though.

EDIT: Eh, it's not working. X_X

Now I'm really stumped... anyone else have a solution?
05-22-2006, 12:17 PM#4
Thunder_Eye
(Level of (Matching unit)) Not equal to (Hero level of (Triggering unit))

Is one of the units a hero and the other isnt? if so you cant set its level, and if they both are heros it should be "Hero level of " instead of "Level of "
05-22-2006, 02:20 PM#5
Ignitedstar
Oh, just noticed that. Oops. I'll have to try it later. It's funny, because it looks as if it should still work, but I guess not.