Td please help!!

Hosc2410

New Member
Reaction score
2
Me = :banghead:
Well anyway i need to make one special mob remove 50 lives from my Leaderboard so i lose and its only hat special mob that should do that so i lose... can anyone help me with that?
 

Knight7770

Hippopotomonstrosesquiped aliophobia
Reaction score
187
We need to see your leaderboard trigger(s) first.
 

Hosc2410

New Member
Reaction score
2
ok here they come....


i don't know if its this one

Leaderboard
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Tower Defense Life
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Player 1 lives Left... and value LifeInteger[1]
Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label Player 2 lives Left... and value LifeInteger[1]
Set Leaderboard = (Last created leaderboard)



or this one




losing a life
Events
Unit - A unit enters unit run 2 <gen>
Conditions
Actions
Set LifeInteger[1] = (LifeInteger[1] - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
LifeInteger[1] Equal to 0
Then - Actions
Game - Defeat Player 1 (Red) with the message: Defeat!
Game - Defeat Player 2 (Blue) with the message: Defeat!
Else - Actions
Quest - Display to Player Group - Player 1 (Red) the Warning message: ONE LIFE LOST!!!!!
Quest - Display to Player Group - Player 2 (Blue) the Warning message: ONE LIFE LOST!!!!!
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to LifeInteger[1]
Leaderboard - Change the value for Player 2 (Blue) in (Last created leaderboard) to LifeInteger[1]
 
Z

ZaThRaK

Guest
We need to see your leaderboard trigger(s) first.
It isnt a must but...

Anyway
Use this:

Code:
Boss
    Events
        Unit - A unit enters <region>
    Conditions
        (Unit-type of (Entering unit)) Equal to <unit>
    Actions
        Set Lives = (Lives - 50)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Lives Equal to 0
            Then - Actions
                Player Group - Pick every player in (All players) and do (Game - Defeat (Picked player) with the message: Defeated!  )
            Else - Actions
                Do nothing

That would be a easy way to do it

If you got a leaderboard use this:

Code:
Boss
    Events
        Unit - A unit enters <region>
    Conditions
        (Unit-type of (Entering unit)) Equal to <unit>
    Actions
        Set Lives = (Lives - 50)
        Leaderboard - Change the title of (Last created leaderboard) to (Lives back:  + (String(Lives)))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Lives Equal to 50
            Then - Actions
                Player Group - Pick every player in (All players) and do (Game - Defeat (Picked player) with the message: Defeated!  )
            Else - Actions
                Do nothing
 

Hosc2410

New Member
Reaction score
2
ok so i should create a new variable and then what what hsould the variable be?

It doestn seem to work
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top