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

Eyes in the Forest Trigger

Status
Not open for further replies.
Level 2
Joined
Mar 4, 2016
Messages
14
Hi guys,

I'm a noob with triggers so any help is greatly appreciated! I'm trying to have my map so from the start of the game certain trees on the map (of my choosing) have the Huntresses' Sentinel ability placed on them. This will, as the normal ability functions, give unobstructed vision until the tree dies. How would I best go about this?

P.S On a side note, I have noticed that whenever I try to make a trigger that involves selecting a unit e.g When choosing the Event "Unit dies", I try to select the unit that I want to trigger and it immediately crashes the client. :S I may just need to reinstall but thought I would ask.

Thanks again!
 
Level 8
Joined
Jan 28, 2016
Messages
486
Assuming the trees are pre-placed this shouldn't be too hard to pull off. All you need from the Object Editor is a dummy with no cast time and a custom Sentinel ability with no manacost or cooldown. For the trigger, it gets a bit tricky. You'll need to create a new variable array of type Destructible and in the map initialisation trigger, add each tree you want into the array. In the same trigger, create the dummy unit, give it the custom ability and use a loop to order it to Night Elf Huntress - Sentinel on each tree in the array. If the custom Sentinel ability has a huge cast range, this method will work as you won't have to move the dummy up to the tree each time. And beware those pesky leaks! :p

I haven't got access to the Editor at the moment but I can come back soon with an example trigger. Better yet, you could try making it yourself in the meantime and I, or someone else, can help you fix it up if you run into any trouble.

And about that last thing you mentioned, I used to have that problem and managed to fix it but I don't remember how... :/
 

Chaosy

Tutorial Reviewer
Level 41
Joined
Jun 9, 2011
Messages
13,239
There are few ways to do this. The general concept is the same though.

Pick all destrutables in map
check if picked destructable is equal to x
create huntress at tree loc
add ability to unit
order huntress to cast the spell on the tree
remove the unit

This requires you to make a copy of the spell because the spell requires a certain upgrade which you need to remove on the copy.
 
Status
Not open for further replies.
Top