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

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:
Level 19
Joined
Aug 24, 2007
Messages
2,888
umm... WUT ?

If I understood correctly just put a condition liek
if INT_Lives greater than 0
 

bia

bia

Level 3
Joined
Jun 3, 2007
Messages
39
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?
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
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.
Top