• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Unsolved Aggro Problem

Status
Not open for further replies.
Level 8
Joined
Aug 16, 2009
Messages
65
I need creeps (Player 12 (Brown)) to not aggro everything around them when one is attacked. Just the one target to return fire when attacked (or whatever is REALLY close to them)

I've tried (in Game Constants):
-Attack Notification - Mininum Range = 1.00 (not exactly sure wat this is...)
-Combat - Call For Help Range = 1.00
-Combat - Call For Help Range, Creeps = 1.00
-Creeps - Guard Distance = 1.00
-Creeps - Guard Return Distance = 1.00

(In Object Editor)
-Combat - Acquisition Range = 1.00

Result: I can move really, really close to them without aggro'ing, but once I attack, EVERYTHING comes
 
Level 7
Joined
May 21, 2009
Messages
289
how about...
Event
Unit is attacked
Actions
If/Then/Else
-Conditions
Attacked unit is equal to (unit) OR unit-type of attacked unit equal to (unit)
Then
Order (attacked unit) to attack (attacking unit)
Else
Do nothing

and then you can maybe reduce the units sight range? And then you would just need a way to stop the unit from attacking everything (like making it an ally or something)
 
Level 3
Joined
Oct 9, 2008
Messages
61
If/Then/Else
-Conditions
Attacked unit is equal to (unit) OR unit-type of attacked unit equal to (unit)
Then
Order (attacked unit) to attack (attacking unit)
Else
Do nothing
Why If/Then/Else? Why not just set the condition as a normal condition?
 
Status
Not open for further replies.
Top