• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Inquiry] How to Let Creep help Hero (Prefer GUI)

Status
Not open for further replies.
Level 11
Joined
Oct 20, 2007
Messages
342
The problem comes to, how to let the Creeps attack the one who attacking ur hero?

Mean, when ur hero and enemy hero are fighting/farming in a brunch of creeps.
Then the enemy hero attack ur hero, then your creep will chase the enemy hero until he cancel attacking ur unit.

The range of helping is about 1000.

It is a Constant or any object value to make this?

THANKZ :gg:
 
Event
a unit is attack
Condtions
attacking unit is a hero and attacked unit is a hero
Actions
make neutral treat <owner of attacked unit> as a neutral

you could either use sth like pick all units in range 500 owned by neutral and change ownership to an ally of owner of attacked unit for some seconds
 
Basically what you're asking for is for a

Unit is attacked
Attacking unit is a hero
Attacked unit is a hero

Order creeps within range to attack the attacker
 
Basically what you're asking for is for a

Unit is attacked
Attacking unit is a hero
Attacked unit is a hero

Order creeps within range to attack the attacker

Not that simple. But after your hero cancel the attack of the enemy hero, the creep will back to there last order(attack-move-to a specified point)

thats y i headche

I though Alarm skill will works, but it wont!! (dont noe what happen)
I though i go to game constant to set the Guard distance to 1000 will work. (but still no respond)

then i already no idea... :bored:
 
Not that simple. But after your hero cancel the attack of the enemy hero, the creep will back to there last order(attack-move-to a specified point)

thats y i headche

I though Alarm skill will works, but it wont!! (dont noe what happen)
I though i go to game constant to set the Guard distance to 1000 will work. (but still no respond)

then i already no idea... :bored:

Maybe a taunt spell? Add it to the attacker hero, use it, then the creeps will attack him... The problem with this is if there are normal units around, they will attack him/her/it too...

Or

Set the unit's custom value to 1.
Then use pick every unit in region or somethling like this, then check their custom value. Then let the creeps attack that unit which has custom value 1.
And you can remove that "1" whenever you want, to be a normal unit again... You might make some conditions for these triggers...
 
Status
Not open for further replies.
Back
Top