Custom Creeps with custom buffs.

Ishida

New Member
Reaction score
1
I would like to make a creep which you can upgrade with items, but i'm completely stumped.

Lets say, i purchase a tome of attack +1, or tome of health +5

I want it to make all of my creeps get +1 attack bonus, or +5 health

These creeps will spawn every (x) seconds with the new stats (if changed)

How will i go about doing this?... I'm completely lost.

Do i need to make a different custom creep for EVERY scenario?
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
you could do it with research or via something like this:
Trigger:
  • Unit Stats
    • Events
      • A unit enters the playable map area
    • Conditions
      • Or - Any Conditions
        • Conditions
          • Unit type of (Triggering unit) is equal to creep type 1
          • Unit type of (Triggering unit) is equal to creep type 2
          • ... etc
      • OR you could do this if the creeps are all owned by one player:
      • Owner of (Triggering unit) is equal to Player X
      • (Triggering unit) is a structure is equal to false
    • Actions
      • If Then Else
        • If (Conditions)
          • Item_Level is greather than or equal to 1
        • Then
          • Loop for integer A from 1 to Item_Level do actions: (Item_Level refers to the ammount of items added, it is an integer variable with the base value 1)
            • Loop - Actions
              • Item - Give (Triggering unit) tome of health or tome of attack
              • Item - Give (Triggering unit) the other items you want to add
        • Else


then you can set Item_Level = Item_Level + 1 to increase how many of the item are added on an event of your choosing

Units that get upgraded must have a hero type inventory ability, even if it adds 0 item slots you can still add tomes to a hero type inventory, but without it the tome is just dropped on the ground
 

Ishida

New Member
Reaction score
1
So pretty much, give the unit a hero type inventory, then just add a tome to the inventory of the unit that increased the damage/health automaticly on obtain. Kind-of like the Tome of Strength does for a hero?

EDIT: I thought of having a main unit you buff up, and then it makes duplicates of that unit, removing all of the need for applying bonuses to each unit separately.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
then instead do this in the loop index A instead of what i have:
Trigger:
  • Loop for Index A from 1 to Level of (Ability) for Main_Unit do actions
where Main_Unit is a unit variable pointing to the main unit for that player
 

Inflicted

Currently inactive
Reaction score
63
As suggested above, research/upgrades could be used and applied to all of your units you want affected.

Alternatively you could do what you suggested with tomes. (i think, make sure not to add like Str/Agi/Int tomes tho - i've had fatal errors from that in the past lol)

How would i create duplicates of a unit?

Erm, just create a new unit? Or did you want like a clone so that they are linked and die at the same time?
You could make a dummy unit cast wand of illusion if you want a clone/illusion.

I think you mean that you want a spawn system.

Basically just use the create function, but have variables to configure what and where they spawn.

Basically everything resolves around this trigger:
Trigger:
  • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees


To make it a copy but different unit that is unrelated. Do something simple like this:
Trigger:
  • Unit - Create 1 (Unit-type of (Original unit)) for (Owner of (Original unit)) at (Location for new unit) facing Default building facing degrees


If you want to spawn multiple units, use a loop:
Trigger:
  • For each (Integer A) from 1 to YourLimit, do (Actions)
    • Loop - Actions
      • Unit - Create 1 (Unit-type of (Original unit)) for (Owner of (Original unit)) at (Location for new unit) facing Default building facing degrees


Hope that helps.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
You could make the tomes research for auras, which would then grant the necessary bonuses.
 

Inflicted

Currently inactive
Reaction score
63
You could make the tomes research for auras, which would then grant the necessary bonuses.

I also considered that, however not everybody likes the "+#" shown.
Most methods unfortunately will have to uses a method that shows it like that, however I suppose it could be avoided by using Multiple units or upgrades/tomes.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Chaos abilities could be used, with each tome increasing the level of the research and every new Chaos abilities requiring a higher level of the research. But then there would be a finite number of times you could upgrade the creeps.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
if you wanted attack speed as the buff, you could use tornado aura, buffless aura that adjusts attack/movespeed (you would need to use negative values though as this is meant to slow not buff speed)
 
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