• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Lurker AI

Status
Not open for further replies.
Level 5
Joined
Jun 3, 2010
Messages
100
a regional trigger? set/create your region with the brush, then add a trigger that gives the command to burrow when X enters area. im newb at triggers so i cant actually write one out, but that should cover the first half of your request. im sure someone will be able to help you more throughly, but if you know triggers you can prob do it. :p
 
Level 9
Joined
Nov 4, 2007
Messages
931
This shouldn't be too difficult (I hope). I'll try to walk you through it.
First create Validators of type Enumerate Area, and set the Target Location + to Caster Unit and set the Search filter to whichever units you want the Lurker to burrow for, and set the Validator Compare to Equal to. Next set its Search Count to 0 and Search Area field to Less than Or Equal to whichever range you want the Lurker to burrow when detecting a unit that passes the Search Filter. This will give us a Validator that will come back true if a unit that a lurker can or can't attack is not in range or not present. Next set your Lurker's burrow ability Stats - Flags field to have Auto-cast enabled, and set the Autocast range to whatever Range we used in the Validator Search Area, the Auto Cast Minimum to 1 and the Auto - Cast Filter to the Filters used in the Enumerate Area Validator. This will make the ability Auto-cast whenever a unit that passes through the filter is in range of the Lurker. For the Unburrow ability, set the Autocast flag on, and this time add the Enumerate Area Validator to its Ability - Autocast Validator. This will make its Unburrow able to activate when no units that pass through the Validator's filter are present. I think that covers most if not all of what you would have to do.
 
Right now i made 2 triggers, one makes the lurker burrow when a unit attacks him, if the attacking unit is visible to the lurker player and a second which unburrows an idle lurker.

But i like yours more, because it makes the lurker burrow before he gets attacked and he will attack buildings that do not attack the lurker. Going to try to make it.
 
I tryed it, but it didn't work:
pic2xsf.jpg

This is the burrow ability.
pic1zw.jpg

This is the validator.

The lurker didn't do anything at all ?
 
Status
Not open for further replies.
Top