• 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] what is worng

Status
Not open for further replies.
Level 5
Joined
Nov 6, 2008
Messages
150
hey i have make a TD and that is soo cool but
you cant losse life in that.
i have made the trigger but is will dont work can you help me.
this is my trigger

events
unit-A unit enters end<gen>
con
(owner of(entering unit)) equal to neutral hostile
action
set life-1
unit-remove (entering unit) from game
game-Display to (all players) the text: you losse a life
trun trigger won

the last trigger i have make but what is wrong whits that?
 
This should work (and you really should work on your english a little bit. (Jeg er norsk, men jeg skriver da engelsk for det :p)):
  • Life
    • Events
      • Unit - A unit enters Goal <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Neutral Hostile
    • Actions
      • Set Lives = (Lives - 1)
      • Unit - Kill (Triggering unit)
      • Game - Display to (All players) the text: You have lost a lif...
 
Level 5
Joined
Nov 6, 2008
Messages
150
to xXmephistoXx.
Yes what you think i have do hole my life???
im never had english on my shcool so only one year can you see my problem?
but ty for the trigger that will i try when i can get my daddys pc.
 
Level 5
Joined
Nov 6, 2008
Messages
150
a leaderbord
but are that not my life var i inport or is the trigger on that leader bord
edit i = is
 
Last edited:
  • Lives
    • Events
      • Unit - A unit enters Goal <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Neutral Hostile
    • Actions
      • Set Lives = (Lives - 1)
      • Unit - Kill (Entering unit)
      • Game - Display to (All players) the text: You've lost a life.
      • Leaderboard - Change the value for Player 1 (Red) in YourLeaderboard to Lives
Might work..
Just replace some values with what you need, like the player and the variables.
 
Level 5
Joined
Nov 6, 2008
Messages
150
are the YourLeaderbord a Variable?

edit and if that are so how to make that?
 
Last edited:
You create it here: untitled.JPG
And use this trigger to set it (after having created the leaderboard):
  • Set Trigger
    • Events
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled "Whatever you want"
      • Set YourLeaderboard = (Last created leaderboard)
Here's a tutorial for Leaderboards: Tutorial
 
Level 5
Joined
Nov 6, 2008
Messages
150
yeah that i know but i cant understand the varables
so how sould the varable see you know...
are that a inger or what this is?
 
Level 5
Joined
Nov 6, 2008
Messages
150
Yeah but your is better to engish
but can you do that i need to do if i make a downlad file?
and if you can so how do i do that?
edit im so srry for double port
 
Last edited:
Status
Not open for further replies.
Top