• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

power of troop

Status
Not open for further replies.
Level 4
Joined
May 29, 2008
Messages
92
Hi

People sorry but one more question: How to make that some units will boost their abilities if there are some more friendly units of this type in his vision field?

Example: a wolf(hp 120, damage 13-15, defense 0) see 4 other wolfs, and his stats boost(hp 170, damage 15-17, defense 1), but if wolf leave his field of vision(run out or die) his stats will return to normal.
 
Level 5
Joined
Mar 13, 2008
Messages
126
maybe unit within range(make range his vision field)
action-replace unit

and to make it normal another trigger with same action but i can think of an event of leaving...for dying is just unit dies :p

EDIT:
I know!
make a region anywhere on map and use periodic trigger to move that region and use unit enters/leaves region
=)
 
Level 9
Joined
May 27, 2006
Messages
498
Its quite simple but requires some work. You'll have to create custom abilities based off on the item abilites (increasing armor, damage, hp, etc). Each lvl means one friend that the unit sees. Rest is just triggering - every some period of time run a trigger that will pick up all friendly units of the same type, count them and then set the abilities lvl to number of the units picked.
And remember to remove leaks...
 
Status
Not open for further replies.
Top