• 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] Ability that increases Stats as Percentage ?

Status
Not open for further replies.
Level 17
Joined
Nov 13, 2006
Messages
1,814
TwoVeno have right, also the fixed value not problem if u need percentage because hp too work that way, i mean when u use hp percentage actions then in background that check unit max hp and calculate the percentage from it, this work with stat too, like check hero str and set to a variable like i, then add to i/2 str to hero if u want + 50% str.
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
Like this?
  • Increase Strength
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Increase Strength
    • Actions
      • Set IncreaseStrength = ((Strength of (Triggering unit) (Include bonuses)) / 2)
      • Hero - Modify Strength of (Triggering unit): Add IncreaseStrength
 

Attachments

  • Increase Strength.w3x
    13 KB · Views: 94
Level 23
Joined
Apr 16, 2012
Messages
4,041
dont forget to deincrese it later on :D I would use hashtables for this to prevent complications like if he casts this 2 times before the first bonus got cleared out, you may get in trouble if you trigger it inproperly
unless you want it to be permament bonus :D then well, no need for anything I said
 
Level 4
Joined
Sep 6, 2012
Messages
88
Thanks for help guys !

The method everyone mentioned came into my mind. However, it lacked the visual part. You can't compare the stats before and after using this way since there's only one displayed at a time. That's why I asked about that certain ability, since I can use it to give heroes temporary buffs so players can know exactly how much bonus stats they gain. But so far I guess this is not possible.

Thank you anyway for all the help ~ I really appreciate it !
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
[...] since I can use it to give heroes temporary buffs so players can know exactly how much bonus stats they gain. But so far I guess this is not possible.
That's certainly possible. The system "Bonus Mod" (by Earth-Fury and weaaddar) does this (kind-of).

I was actually half-way with writing a GUI-version of that.
You could do something like "Set Hero Agi + 15" and then do "Remove hero agi bonuses" later on (simplified explanation :p).
 
Status
Not open for further replies.
Top