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:
    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 The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top