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

[Trigger] Can ya help me out?

Status
Not open for further replies.
Level 4
Joined
Jan 6, 2008
Messages
83
I want to make a tower defence, but I need to know the triggers that govern unit moving, like how to make it so they go only on the straight line. Any tips?:grin:
 
Level 4
Joined
Jan 6, 2008
Messages
83
Ok, so I've gotten up to the part here where it talks about losing lives, but I can't figure out how to show how many lives are left. I can't find the function for "'blank' lives left"
 
Level 11
Joined
Dec 11, 2007
Messages
888
make an integer (named Var) with the default value of your lives
  • Events:
  • A unit enters Region
  • Actions:
  • Set Var = Var - 1
  • Leaderboard - Change value of Player x to Var
    • If\Then\Else multiple functions
      • Conditions:
        • Var becomes equal to 0
        • Then do actions:
          • Game - Defeat player x with message defeat!
you will need to make a variable for each player
 
Status
Not open for further replies.
Top