Boss grow stronger each time he spawn

Status
Not open for further replies.
Level 8
Joined
Jul 14, 2010
Messages
235
I made a charger boss, that you have to kill with your heroes before he reach the gate. He spawns every 6th minute. But every 6th minute he gets +1000 HP, so I made this: MeatballSpawn
  • Events
    • Time - Every 360.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Mystic Energy Source 0158 <gen> is alive) Equal to True) or ((Mystic Energy Source 0157 <gen> is alive) Equal to True)
        • Then - Actions
          • Set MeatballHP = (MeatballHP + 1000.00)
          • Unit - Create 1 Meatball for Player 11 (Dark Green) at (Center of Boss Spawn <gen>) facing (Position of Slaughterhouse (Black Citadel) 0079 <gen>)
          • Set Meatball = (Last created unit)
          • Unit - Set life of Meatball to ((Life of Meatball) + MeatballHP)
          • Special Effect - Create a special effect at (Center of Boss Spawn <gen>) using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
          • Special Effect - Destroy (Last created special effect)
          • Trigger - Turn on Meatball Order <gen>
        • Else - Actions
          • Trigger - Turn off (This trigger)
But it seems that he doesnt get anything of HP each time he respawn, whats wrong?
 
Yes, you must have an infinite/endless of Upgrades (well, maybe till the end of the game)
Because if you play DotA, everytime Roshan respawns, he will get a new HP and Armor, etc etc
Roshan uses an Upgrade increasing his max HP by using Animal War Training Upgrade as the base Upgrade
Just make it to 50~100 Upgrades, I'm sure your game won't last that long
 
Wow, checked the https://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/ and see I have a lot to do now :P Anyway, I get error when saving. It's the "Custom script: call RemoveLocation(udg_BossSpawn)"
  • MeatballSpawn
    • Events
      • Time - Every 360.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Mystic Energy Source 0158 <gen> is alive) Equal to True) or ((Mystic Energy Source 0157 <gen> is alive) Equal to True)
        • Then - Actions
          • Set BossSpawn = Boss Spawn <gen>
          • Unit - Create 1 Meatball for Player 11 (Dark Green) at (Center of BossSpawn) facing 340.00 degrees
          • Custom script: call RemoveLocation(udg_BossSpawn)
          • Set Meatball = (Last created unit)
          • Player - Set the current research level of Meatball HP Increase to ((Current research level of Meatball HP Increase for Player 11 (Dark Green)) + 1) for Player 11 (Dark Green)
          • Special Effect - Create a special effect at (Center of Boss Spawn <gen>) using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
          • Special Effect - Destroy (Last created special effect)
          • Trigger - Turn on Meatball Order <gen>
        • Else - Actions
          • Trigger - Turn off (This trigger)
          • Trigger - Turn on DeadeyeSpawn <gen>
 
Last edited:
Nice! Everything is working. Thanks to all of you:
  • MeatballSpawn
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Mystic Energy Source 0158 <gen> is alive) Equal to True) or ((Mystic Energy Source 0157 <gen> is alive) Equal to True)
        • Then - Actions
          • Set BossSpawn = (Center of Boss Spawn <gen>)
          • Unit - Create 1 Meatball for Player 11 (Dark Green) at BossSpawn facing 340.00 degrees
          • Set Meatball = (Last created unit)
          • Custom script: call RemoveLocation(udg_BossSpawn)
          • Player - Set the current research level of Meatball HP Increase to ((Current research level of Meatball HP Increase for Player 11 (Dark Green)) + NumberOfPlayersActive) for Player 11 (Dark Green)
          • Set BossSpawnPosition = (Position of Meatball)
          • Special Effect - Create a special effect at BossSpawnPosition using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_BossSpawnPosition)
          • Trigger - Turn on Meatball Order <gen>
        • Else - Actions
          • Trigger - Turn off (This trigger)
          • Trigger - Turn on DeadeyeSpawn <gen>
 
Status
Not open for further replies.
Back
Top