Bulilding Live variable problem

Status
Not open for further replies.

bia

bia

Level 3
Joined
Jun 3, 2007
Messages
39
hi guys i have problem with live variable
  • SpaceShip1 Lives
    • Events
      • Unit - HQ 0014 <gen> Is attacked
    • Actions
      • Set INT_Lives1 = (INT_Lives1 - 1)
      • Leaderboard - Change the value for Player 9 (Gray) in (Last created leaderboard) to INT_Lives1
      • Game - Display to (All allies of Player 1 (Red)) for 3.00 seconds the text: (* You have lost a life. Lives left: + (String(INT_Lives1)))
      • If (INT_Lives1 Equal to 0) then do (Trigger - Run Initialize Rematch <gen> (checking conditions)) else do (Do nothing)
Set INT_Lives1 = (INT_Lives1 - 1)

thats the problem i dont wanna -1 live but - the damage of monsters deal to budiling
 
Last edited:
omg ... no you dont

on multiboard hp of building moves down by 1 everytime it get attacked but at real its more way more


how do i fix it?
 
change:
Leaderboard - Change the value for Player 9 (Gray) in (Last created leaderboard) to INT_Lives1

to this:

Leaderboard - Change the value for Player 9 (Gray) in (Last created leaderboard) to (<max hp of building> - <hp of building now>) this indicates the damage done to the building and increases every time the building is attacked
 
Status
Not open for further replies.
Back
Top