make neutral hostile not agressive

Status
Not open for further replies.
Level 2
Joined
May 3, 2013
Messages
8
i wonder how do i make hostile units not aggressive?

i mean when i attack hostile 1, a nearby hostile 2 wont attack me..

i know its in gameplay constants(maybe) but i dont know where..
 
@xchan
  • Untitled Trigger 001
    • Events
      • Unit - A unit owned by Neutral Passive Is attacked
    • Conditions
      • (Unit-type of (Attacked unit)) Equal to Forest Troll
    • Actions
      • Unit - Change ownership of (Attacked unit) to Player 2 (Blue) and Change color
Try this trigger for the converting of Neutrals to Enemy when attacked but there is a disadvantage to this one like when they are targeted by spells, they dot convert but this might help you!
 
@xchan
  • Untitled Trigger 001
    • Events
      • Unit - A unit owned by Neutral Passive Is attacked
    • Conditions
      • (Unit-type of (Attacked unit)) Equal to Forest Troll
    • Actions
      • Unit - Change ownership of (Attacked unit) to Player 2 (Blue) and Change color
Try this trigger for the converting of Neutrals to Enemy when attacked but there is a disadvantage to this one like when they are targeted by spells, they dot convert but this might help you!

But that's means he has to make Neutral Passive as enemy for all players.
 
Try changing these in the gameplay constants...
Combat - Call for help, creeps - 0
Creeps - Guard Distance - 0
Creeps - Guard Return Distance - 300
Creeps - Return time - 2 seconds

still didnt work but i think i can make use of this ill just tweak it a little


EDIT: Id like to know an event where a unit takes damage.. but in gui there is only specific unit i dont know how to put the damaged unit into a variable
 
Status
Not open for further replies.
Back
Top