• 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.

[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:
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
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
 
Level 11
Joined
Oct 20, 2007
Messages
342
Sorry , i forget to mention that, i want to made a AoS map.

e.g. DotA.

After cancel chasing the hero, the unit will back to it order and continue attack-move-to the specified location~
 
Level 12
Joined
Mar 16, 2006
Messages
992
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
 
Level 11
Joined
Oct 20, 2007
Messages
342
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:
 
Level 3
Joined
May 12, 2006
Messages
31
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.
Top