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

[AI] I need help...

Status
Not open for further replies.
Level 9
Joined
Oct 12, 2005
Messages
281
I need help making a trigger for 3 different things all involving the same unit. Also I'll need one more to make my campaign go to the next level. Ok, so here's my request... I need a trigger to make a little dialog box with text in it once i kill the end boss, it also needs to make my main hero die and finally, it needs to make me win when he's dead.
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
u can do all of that in 1 trigger, but just for help, u set things to variables (save) so the computer recognizes it in other triggers. anywo, the trigger:

events: unit dies
conditions: unit = boss (unit comparison)
actions:
unit - kill 'main hero'
game - display text
player - victory player X

u set next campaign lvls by using 'game - set next level' and there fill in the name of the map (of the next lvl) (must be exact the same or the computer wont recognize it)
 
Status
Not open for further replies.
Top