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

Atribute-based-spell-damage

Status
Not open for further replies.
Level 2
Joined
Feb 18, 2009
Messages
3
Hey Guys,
I really didn't know how to call it so I gave it the name "Atribute-based-spell-damage". The Thing Im talking about is, that you for example have 45 Intelligence, and your Spell does 50 Damage + 1x Your Intelligence, so your Spell does 95 damage. I searched wether there is already a topic about it but I didn't find anything, if I've overseen something please post the link. If not, I would be happy if somebody could explain me how to implement this in my spell.

My problem: If I try to regulate the damage of my Spell, an aura that damages all enemys in range, I can create a Variable for the Int of my Hero , but that Variable isn't "Real", and I do need a Variable of class "Real" to use it in my skill.

Sorry for my bad English, Im not a native speaker and its my 5th schoolyear, learning it. Thank you for your Help.
Jocky1992
 
Last edited:
Level 6
Joined
Dec 28, 2006
Messages
102
Hey. For attribute based spell damage, you would need to make triggered or scripted spell, and it doesn't need any global variables.

This one below is an example for instant hit ability

  • <Trigger Name Here>
    • Events
      • Unit - A unit begins effect of a spell
    • Conditions
      • (Ability being cast) equal to <Your Ability Here>
    • Actions
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (1.00 x (Real((Intelligence of (Triggering unit) (Include bonuses))))) damage of attack type Spell and damage type Universal
Real((Intelligence of (Triggering unit) (Include bonuses))) converts integer to real.

BTW, I think you posted in wrong section, it should be in World-Editor Helper Zone.
 
Status
Not open for further replies.
Top