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.

      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