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

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