• 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.

Spell help

Status
Not open for further replies.
Level 6
Joined
Sep 27, 2008
Messages
258
how i take a upgrade like Long Rifle from humans and make it a spell for a hero so that when i learn the spell it increases that heroes range
 
Level 13
Joined
Mar 24, 2010
Messages
950
you can make it another custom upgrade if your already using that upgrade for other units as well.
Just make a trigger that (when a hero learns a skill/levels it up upgrade that upgrade to number of hero skills level)
Make sure the hero also has that upgrade in the obj editor for units.

  • Untitled Trigger 001
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Blizzard
    • Actions
      • Player - Set the current research level of Long Rifles to (Level of Blizzard for (Triggering unit)) for (Owner of (Triggering unit))
somethin similar to that, hope you only allow 1 of those hero types per player though or it wont work right per hero with that skill.
 
Level 6
Joined
Sep 27, 2008
Messages
258
  • Improve Gun
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Improve Gun
    • Actions
      • Player - Set the current research level of Improve Gun (upgrade) to (Level of Improve Gun for (Triggering unit)) for (Owner of (Triggering unit))
But then how does it work like if i have level 6 improve gun then how do i know how much range i gain.
 
Level 13
Joined
Mar 24, 2010
Messages
950
well you set that all up in the upgrade, theres a base, and a increment, both at 200 by default just make it whatever you want. if you want the Heros range to increase by 100 range each ability level then set both those 200 values to 100 and your good to go.
 
Level 6
Joined
Sep 27, 2008
Messages
258
so with a base range of lets say 100 then i have the upgrade set to 100 at level 6 my range will be 700 cuz it is 100+600 right?
 
Status
Not open for further replies.
Top