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.
  • Varine Varine:
    I ordered like five blocks for 15 dollars. They're just little aluminum blocks with holes drilled into them
  • Varine Varine:
    They are pretty much disposable. I have shitty nozzles though, and I don't think these were designed for how hot I've run them
  • Varine Varine:
    I tried to extract it but the thing is pretty stuck. Idk what else I can use this for
  • Varine Varine:
    I'll throw it into my scrap stuff box, I'm sure can be used for something
  • Varine Varine:
    I have spare parts for like, everything BUT that block lol. Oh well, I'll print this shit next week I guess. Hopefully it fits
  • Varine Varine:
    I see that, despite your insistence to the contrary, we are becoming a recipe website
  • Varine Varine:
    Which is unique I guess.
  • The Helper The Helper:
    Actually I was just playing with having some kind of mention of the food forum and recipes on the main page to test and see if it would engage some of those people to post something. It is just weird to get so much traffic and no engagement
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air

      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