• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

stat effected abilitys, and item problems

Status
Not open for further replies.
Level 2
Joined
Mar 31, 2011
Messages
3
Im very lost in two different ways, first is, i know how to make an ability for a hero have 1 level but id like to make it so the ability is in a spell book type thing on a hero and the abilitys are all effected by stats strength, agility, and intelligence so it mulitples like this spell will heal for 5x your intelligence, or this one will do 2x your agility for damage and stun for 2 seconds. second problem i have is items id like to make it so u cant have 2 shields or types of items at once so u cant double up an item for the effects and cant carry more then one shield or sword ar anythign in the item group type.
 
Level 8
Joined
Mar 22, 2008
Messages
422
Well For Making Spell based on Int Etc You would need.
  • Holy Bolt
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Holy Bolt
    • Actions
      • Set HolyBolt = ((Real((Intelligence of (Casting unit) (Include bonuses)))) + (Life of (Target unit of ability being cast)))
      • Unit - Set life of (Target unit of ability being cast) to HolyBolt
Item limits would be more along the lines of http://www.hiveworkshop.com/forums/...ev=search=no%20same%20item%20type&d=list&r=20
That link should be the right trigger. dunno who made it ^_^
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • Unit - A unit Begins casting an ability
Use "A unit Starts the effect of an ability"

  • Set HolyBolt = ((Real((Intelligence of (Casting unit) (Include bonuses)))) + (Life of (Target unit of ability being cast)))
Use (Triggering unit) instead of (Casting unit)

If you love so much for less function call, perhaps you should also save Unit variables too like (Triggering unit) and (Target unit of ability being cast)
 
Status
Not open for further replies.
Top