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

How to make boss cast spells in determined times?

Status
Not open for further replies.
Level 7
Joined
Dec 5, 2013
Messages
280
I have been trying to figure this out for days now, and i can honestly say that none of the guides here have shed any light on this issue and I cant make it work by myself.

I want boss to cast ability when player enter in certain distance from boss, and also cast abilities in general when I want to create working and interesting boss fight.

Also I couldnt find way to change aggro range for neutral hostile, so I had to set npc to be just neutral and then change it hostile when player enters region but it looks silly because then boss is yellow at first

Thanks in advance
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
You can periodically pick nearby units around the boss, filter them through conditions. If something remains in the group, issue the cast order.

You can change the color of players and units without setting the owner. The aggro range of creeps should be in gameplay constants.
 
Level 7
Joined
Dec 5, 2013
Messages
280
But i cant find the command for spell casting. I have tried options like spesific unit event and begin spell casting but it doesnt work, npc keeps autoattacking

I would appreciate some concrete example of how to make a boss fight so I can start making my own encounters.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
Events are only supposed to listen to specific occurences in the game and then fire the trigger they were registered for. You have to run a "Unit - Issue Order"-action. Each active ability comes with an associated order. Often you can just pick the similarly named (your ability bases on) option from the pulldown menu.

A concrete example serves only a very concrete scenario. If you cannot differ events from actions yet, you should look into some basic triggering, i.e. thoroughly experimenting with the trigger editor in general without doing something conrete.
 
Status
Not open for further replies.
Top