- Joined
- Apr 4, 2011
- Messages
- 995
Is there a more efficient/better way of doing this?
Basically the skill adds +3 armor for each nearby ally (along with some base armor and hp from a research)
Basically the skill adds +3 armor for each nearby ally (along with some base armor and hp from a research)
-
Herd
-
Events
- Unit - A unit Learns a skill
-
Conditions
- (Learned Hero Skill) Equal to Herd Mentality
-
Actions
- Set caster = (Triggering unit)
- Player - Set the current research level of Herd Mentality to (Level of Herd Mentality for caster) for (Owner of caster)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (caster is in HerdGroup) Equal to False
-
Then - Actions
- Trigger - Turn on Herd Check <gen>
- Unit - Add Herd (+3) to caster
- Unit - Set level of Herd (+3) for caster to 1
- Unit Group - Add caster to HerdGroup
- Else - Actions
-
If - Conditions
-
Events
-
Herd Check
-
Events
- Time - Every 1.50 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in HerdGroup and do (Actions)
-
Loop - Actions
- Set caster = (Picked unit)
- Set point1 = (Position of caster)
- Set i = 1
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 400.00 of point1 matching ((((Matching unit) is A Hero) Equal to True) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an ally of (Owner of caster)) Equal to True) and (((Matching unit) is in HerdGroup) Equal to and do (Actions)
-
Loop - Actions
- Set i = (i + 1)
-
Loop - Actions
- Unit - Set level of Herd (+3) for caster to i
- Custom script: call RemoveLocation(udg_point1)
-
Loop - Actions
-
Unit Group - Pick every unit in HerdGroup and do (Actions)
-
Events