• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Summoned Unit DMG/HP based on hero stat

Status
Not open for further replies.
Level 3
Joined
May 2, 2014
Messages
28
Hey! I was wondering if it were possible to make the summoned unit's damage and health based on the heroes attributes. I have been trying to look on google for answers, but the only links I found were dead.
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
Attributes shouldn't be too hard.. hp however is rather tricky to say the least.

basically you make a unit with 0 str 0 agi 0 int and once it's summoned add str/agi/int * 0.6 (or any number) to the minion.
  • Untitled Trigger 001
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Water Elemental (Level 1)
    • Actions
      • Hero - Modify Strength of (Summoned unit): Add ((Strength of (Summoning unit) (Include bonuses)) x (Integer(0.60)))
 
Level 3
Joined
May 2, 2014
Messages
28
Attributes shouldn't be too hard.. hp however is rather tricky to say the least.

basically you make a unit with 0 str 0 agi 0 int and once it's summoned add str/agi/int * 0.6 (or any number) to the minion.

The unit is a regular bear. What I mean is, can I summon a bear with damage = to STR and health = to INT of the summoning hero?
 
Level 3
Joined
May 2, 2014
Messages
28
I tried that trigger with no luck. Are you saying to make a hero unit with 0 STR/AGI and INT? Can a regular unit get attribute bonuses?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
To raise health and damage use the item modifier level exploit. The item abilities for maximum health, mana and damage are bugged and do not increment levels correctly. When you add them as a unit ability to a unit it will give them the level 1 bonus of the ability. If you raise the ability to level 2 (must be multi level) then they will still have the level 1 bonus for the ability. However if you then remove the ability from the unit it will remove the level 2 bonus of the ability leaving you with the difference between level 2 and level 1.

Level 1: +1 HP +1 Damage etc...
Level 2: 0 HP 0 Damage etc...

Give ability, raise level and remove. This should leave the unit with a permanent stat increase.

Alternatively you can use tomes but the above is faster.
 
Status
Not open for further replies.
Top