Armor Buffing Ability that stacks with itself

jedi8955

New Member
Reaction score
4
I need an armor buffing Ability that stacks with itself. I have a front-line unit that does little damage but is designed to take hits well. Basically, the more units that use this ability at the same time, the more effective it's supposed to be.

Here's the ability as designed:

"Dey Terk Er Jorbs!"

This unit's rage at being recently unemployed allows it and others nearby to ignore damage. Adds 2 Armor in 300 AoE, stacks with other units using "Dey Terk Er Jorbs!"


As you can see, it's not entirely serious :) I don't expect players to build too many of these, but that 2 armor will end up changing during testing, I'm sure of it. I'm not sure if there's something pre-made that I can kitbash into working and just missing it, or if I'll need to end up triggering this.

As always, thanks for any help :)
 

HydraRancher

Truth begins in lies
Reaction score
197
Trigger:
  • Initialization
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Hashtable - Create a Hashtable
      • Set Dey Terk Er Jorbs Hashtable to (Last Created Hashtable)


Trigger:
  • Dey Terk Er Jorbs!
    • Events
      • Unit - A Unit Starts the effect of an ability
    • Conditions
    • Actions
      • Set Temp_Int = 0
      • Set Temp_Group = Units in 300 Range of (Triggering Unit) matching (Owner of (Matching Unit)) is an ally of (Owner of (Triggering Unit))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Set Temp_Int = Temp_Int + 1
          • Hashtable - Save Unit (Picked Unit) as Temp_Int of (Key(Triggering Unit))
          • -----------Add Armor-----------
          • ----I recommend using EGUI's +armor system----
          • EGUI Unit - Add 2 Armor to (Picked Unit) as a Temporary Bonus
      • Hashtable - Save Integer Temp_Int as 0 of (Key(Triggering Unit))
      • Wait 10.00 seconds
      • For each (Integer A) from 1 to (Load Integer 0 (Key(Triggering Unit)) do (Actions)
        • Loop - Actions
          • EGUI Unit - Add -2 Armor to (Load Unit (Integer A) (Key(Triggering Unit)) as a Temporary Bonus
      • Hashtable - Clear all Child hashtables of type Child hashtables
      • Custom Script: call DestroyGroup (udg_Temp_Point)




1. If you want it to remove after 10 seconds, you need to make it in Vanilla WE (Normal) then get EGUI and use the armor bonus (Or download it from the thread made by Tom_Jones)


2.If you DONT want it to...

Trigger:
  • Dey Terk Er Jorbs!
    • Events
      • Unit - A Unit Starts the effect of an ability
    • Conditions
    • Actions
      • Set Temp_Group = Units in 300 Range of (Triggering Unit) matching (Owner of (Matching Unit)) is an ally of (Owner of (Triggering Unit))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • -----------Add Armor-----------
          • ----I recommend using EGUI's +armor system----
          • EGUI Unit - Add 2 Armor to (Picked Unit) as a Temporary Bonus
      • Hashtable - Clear all Child hashtables of type Child hashtables
      • Custom Script: call DestroyGroup (udg_Temp_Point)


You only need this trigger.
 

jedi8955

New Member
Reaction score
4
Awesome, thanks man. I just have one question on this, regarding this section here.

Trigger:
  • Actions
    • -----------Add Armor-----------
    • ----I recommend using EGUI's +armor system----
    • EGUI Unit - Add 2 Armor to (Picked Unit) as a Temporary Bonus
    • <lines removed for space>
      • EGUI Unit - Add -2 Armor to (Load Unit (Integer A) (Key(Triggering Unit)) as a Temporary Bonus

Is there a way to do this without EGUI? Unfortunatly, I work on this map a bunch of different places other than just my main machine (mostly at my old college), installing a bunch of mods isn't very feasible. If not, I'll just have to suck it up and deal, but I'd like to be able to work on it wherever I happen to be.

Thanks for your help!
 

HydraRancher

Truth begins in lies
Reaction score
197
Like I also said, I think Tom_Jones made a system for that, look it up in the Tutorial section.

EDIT: Oh sorry, I forgot this leaks, edited the above triggers.
 

jedi8955

New Member
Reaction score
4
Like I also said, I think Tom_Jones made a system for that, look it up in the Tutorial section.

EDIT: Oh sorry, I forgot this leaks, edited the above triggers.

Oh, my bad. I thought you were referencing EGUI again on that. I'll go take a look.

Thanks again for your help. :)
 

jedi8955

New Member
Reaction score
4
Well, I wasn't able to find the thread by Tom Jones, but I figured out a way to get it done without using EGUI.

I made a multi-level item ability.

Dey Terk Er Jorbs 1 (Armor Bonus)

Level 1: Adds 0 Armor.
Lv 2: Adds 2 Armor
Lv 3: Adds 4 Armor
etc, etc.

It allows me to put a theoretical maximum on how much armor units can gain.

All the units then had the item ability added.

Then this line:

Trigger:
  • EGUI Unit - Add 2 Armor to (Picked Unit) as a Temporary Bonus


Turned into:

Trigger:
  • Unit - Increase the level of Dey Terk Er Jorbs 1 (Armor Bonus)


Then when the duration expires, it reduces the level of the ability.


Thanks a bunch for the help with this, it was my first foray into hashtables. Super useful :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • 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 Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top