• 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] Stats Improve Spell Damage?

Status
Not open for further replies.
Level 2
Joined
Jun 24, 2013
Messages
6
How do i create this what variable do i need i feel so stupid for asking this but i have to >.<

someone mind showing me how to make the trigger :)
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Example:
  • Untitled Trigger 103
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Holy Light
    • Actions
      • Set realVariable = ((Real((Strength of (Triggering unit) (Include bonuses)))) x (Real((Level of (Ability being cast) for (Triggering unit)))))
      • Unit - Cause (Triggering unit) to damage (Target unit of (Ability being cast)), dealing realVariable damage of attack type...

Use Conversion - convert integer to real to be able to use the hero attribute and ability level. Hero attributes adn ability levels are integers and you need a real value. Use Arithmetic function to use +, -, x and /.
 
Status
Not open for further replies.
Top