Increase unit's health to 150%?

Quakern

New Member
Reaction score
1
Hey there, I am making a TD map, but is there possible to increase a unit's health to more than their maximum health? So instead of making 100 new custom units each difficult, then just make a simple trigger?

I have been working on something like this, but it's not working.. :/

Trigger:
  • Mob health
    • Events
      • Unit - A unit enters Blue <gen>
      • Unit - A unit enters Green <gen>
      • Unit - A unit enters Purple <gen>
      • Unit - A unit enters Red <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 12 (Brown)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • vanskelighetsgrad Equal to 2
        • Then - Actions
          • Unit - Set life of (Entering unit) to ((Life of (Entering unit)) + 50.00)
        • Else - Actions
          • Do nothing


vanskelighetsgrad = difficult, and 2 = Medium.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Why u not just reasearch a upgrade that increase hp
 

Quakern

New Member
Reaction score
1
It's the unit's waves from the computer brown. Well if I choose "Easy", then the unit's in Wave 1 has 50 hp. But if I choose medium, then I want the unit in wave 1 to have 150% hp, and that makes it 75 hp.
Well it is possible to make the reasearch for the computer too, but that takes some more time :/ I want to just make a simple trigger like above if it is possible :)
 

Knight7770

Hippopotomonstrosesquiped aliophobia
Reaction score
187
Try it without the condition in the If/Then/Else statement.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
It wil be. If easy player set tech level for owner of entering unit of <ur upgrade> to 1 and medium to 2. Lvl 1 increase hp by 50 and 2 by 75
 

Quakern

New Member
Reaction score
1
Knight7770: The interger condition in if/then/else is working. when I choose "Medium" difficult, then "set variable - Vanskelighetsgrad to 2".

SharkBait87: Yup that works, but I dont want it to be +50 hp. I want it to be +150% hp. So I either have to make alot of upgrades or new custom units there. Unless there is possible to Increase the unit with 150% on a upgrade? and by the way, is there possible to do it with a trigger like the one above?
 

Quakern

New Member
Reaction score
1
That's what I asked you :p it must be with %, cos if the unit have 10 000 hp, and got a upgrade with +50 hp wont make much different :p so 10 000 hp = 100% right?
150% = 15 000 hp. 300%= 30 000hp... etc. You know how to do that in some way?:p
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
But im not tha fimiliar with what upgrades can do
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Ya hav many lvls. 1 25hp 2 50hp 3 75hp 4 100hp and so on them when unit entes set <new integer> to <new integer> + 1 and in the tech lvl set it to <new integer>
 

Quakern

New Member
Reaction score
1
Yup, but that still wont give me 150 % of the units health. I can do that, but I have to make alot of upgrades, lvl on upgrade. cos it works on the first wave with +25 hp. but not on the next wave that might be needing +47. so this means that I have to modify a upgrade with 100 levels like you said, 3 times with the exact +"number" of health I want the unit to have. and I want medium to be +150% hp on each unit, hard = +200% each unit, and Impossible difficult= +250% hp each unit.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
U just need 1 upgrade for each dificulty lvl. Then u hav to work out how much 150% of each unit is and put it in the lvls
 

Admit

New Member
Reaction score
25
Why not use
Trigger:
  • Player - Set Player 1 (Red) handicap to 150.00%
Trigger?

It will change all units for player red (can be changed to whatever player you want) so they have 150% hp.
Example: If they have 100hp they will have 150hp after the trigger.
 

Admit

New Member
Reaction score
25
Um no more that 100% handicap

Yes there is. I have made a td where i use this system.

Here is the trigger:

Trigger:
  • Diff
    • Events
      • Time - Elapsed game time is 0.50 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of Dialog to Mob Handicap
      • Dialog - Create a dialog button for Dialog labelled Easy
      • Set Dialog_Butt[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Normal
      • Set Dialog_Butt[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Hard
      • Set Dialog_Butt[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Insane
      • Set Dialog_Butt[4] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Epic Fail
      • Set Dialog_Butt[5] = (Last created dialog Button)
      • Dialog - Show Dialog for Player 1 (Red)


Trigger:
  • Buttoms
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Dialog_Butt[1]
        • Then - Actions
          • Player - Set Player 11 (Dark Green) handicap to 70.00%
          • Player - Set Player 12 (Brown) handicap to 70.00%
          • Player - Set the current research level of Middle Armor 1 to 1 for Player 11 (Dark Green)
          • Player - Set the current research level of Middle Armor 1 to 1 for Player 12 (Brown)
          • Game - Display to (All players) for 5.00 seconds the text: ((Name of Player 1 (Red)) + Has chosed: Easy!)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Dialog_Butt[2]
            • Then - Actions
              • Player - Set Player 11 (Dark Green) handicap to 100.00%
              • Player - Set Player 12 (Brown) handicap to 100.00%
              • Player - Set the current research level of Middle Armor 1 to 2 for Player 11 (Dark Green)
              • Player - Set the current research level of Middle Armor 1 to 2 for Player 12 (Brown)
              • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Player - Set (Picked player) Food max to 2)
              • Game - Display to (All players) for 5.00 seconds the text: ((Name of Player 1 (Red)) + Has chosed: Normal!)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to Dialog_Butt[3]
                • Then - Actions
                  • Player - Set Player 11 (Dark Green) handicap to 150.00%
                  • Player - Set Player 12 (Brown) handicap to 150.00%
                  • Player - Set the current research level of Middle Armor 1 to 3 for Player 11 (Dark Green)
                  • Player - Set the current research level of Middle Armor 1 to 3 for Player 12 (Brown)
                  • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Player - Make Gold Base Unavailable for training/construction by (Picked player))
                  • Game - Display to (All players) for 5.00 seconds the text: ((Name of Player 1 (Red)) + Has chosed: Hard!)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Clicked dialog button) Equal to Dialog_Butt[4]
                    • Then - Actions
                      • Player - Set Player 11 (Dark Green) handicap to 200.00%
                      • Player - Set Player 12 (Brown) handicap to 200.00%
                      • Player - Set the current research level of Middle Armor 1 to 4 for Player 11 (Dark Green)
                      • Player - Set the current research level of Middle Armor 1 to 4 for Player 12 (Brown)
                      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Player - Make Gold Base Unavailable for training/construction by (Picked player))
                      • Game - Display to (All players) for 5.00 seconds the text: ((Name of Player 1 (Red)) + Has chosed: Insane!)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Clicked dialog button) Equal to Dialog_Butt[5]
                        • Then - Actions
                          • Player - Set Player 11 (Dark Green) handicap to 500.00%
                          • Player - Set Player 12 (Brown) handicap to 500.00%
                          • Player - Set the current research level of Middle Armor 1 to 5 for Player 11 (Dark Green)
                          • Player - Set the current research level of Middle Armor 1 to 5 for Player 12 (Brown)
                          • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Player - Make Gold Base Unavailable for training/construction by (Picked player))
                          • Game - Display to (All players) for 5.00 seconds the text: ((Name of Player 1 (Red)) + Has chosed: Epic Fail! .... &gt;.&lt;)
                        • Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/
  • The Helper The Helper:
    I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!
  • The Helper The Helper:
    Happy Wednesday!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    Sticking with the desserts for now the latest recipe is Fried Apple Pies - https://www.thehelper.net/threads/recipe-fried-apple-pies.194297/
  • The Helper The Helper:
    Finally finding about some of the bots that are flooding the users online - bytespider apparently is a huge offender here - ignores robots.txt and comes in from a ton of different IPs

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top