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

Guards and Assassins

Status
Not open for further replies.
Level 5
Joined
Feb 2, 2007
Messages
135
Hi there,
I'm currently making a map where you play as an assassin, and obviously you have to go around killing people.
I want to make it so the guards only attack you if they see you kill or attack someone.
At this moment in time I have absolutley no idea how to do this but I;m currently looking aroudn the trigger menu

I would also like to point out I have absolutley NO knowledge of how to use jass at all.

Thanks for any help,

Mun'ki
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
use 3 different teams, you, the people you kill and the guards.
set following alliances at start.
you and killing people: hostile
you and guards: neutral
guards and people: neutral (or allied)

and then use the following trigger:
  • Events
    • Unit - A Unit is attacked (or killed)
  • Conditions
    • triggering Unit is within 800(choose any radius you like) of a unit owned by <guards>
  • Actions
    • make guards treat <owner of attacking Unit> as a hostile
    • make <owner of attacking Unit> treat guards as a hostile
 
Status
Not open for further replies.
Top