• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Solved] Summon health-damage based of hero.

Status
Not open for further replies.
Level 11
Joined
Dec 16, 2017
Messages
437
Hi guys,i want to make a spell for unholy death knight for my map that is just a simple ghoul summon, but i want to make the ghoul HP be based of my hero STR and the ghoul DMG to be based of my hero AGI, does anyone have any idea of how i can do that in GUI? Thanks !
 
  • Ghoul
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Ghoul
    • Actions
      • Set VariableSet summoningHero = (Triggering unit)
      • Set VariableSet summonedGhoul = (Summoned unit)
      • -------- Max life --------
      • Unit - Set Max HP of summonedGhoul to (9999999 x (Unit: summoningHero's Integer Field: Strength (with Bonus) ('ustb')))
      • -------- Damage --------
      • -------- WC3 damage formula: --------
      • -------- MinDmg = Base + Dice --------
      • -------- MaxDmg = Base + Dice x Sides --------
      • Unit - Set Base Damage of summonedGhoul to (999 x (Unit: summoningHero's Integer Field: Agility (with Bonus) ('uagb'))) for weapon index: 0
      • Unit - Set Dice Number of summonedGhoul to (99 x (Unit: summoningHero's Integer Field: Agility (with Bonus) ('uagb'))) for weapon index: 0
      • Unit - Set Dice Sides of summonedGhoul to (9 x (Unit: summoningHero's Integer Field: Agility (with Bonus) ('uagb'))) for weapon index: 0
 
Oof, these triggers were introduced much later, your best bet now is to give the unit a hero inventory and give them modifed tomes of health and damage.
There's a better best then that for health, your probably right for damage, it'd likely be best to use powers of 2 or 1, 10, 100, 1000 if ones concerned with speed/object editor. Tome spam can lead to some issues, make sure to clean them up as well.
 
Status
Not open for further replies.
Back
Top