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

Stat Based Spells

Status
Not open for further replies.
Level 4
Joined
Aug 12, 2007
Messages
91
Hello and I could need some help :sad: I know the main look for the x9 inteligence spells, but the small parts i cant understand! Please can anyone Give me an Easy For Noobs description? Please and thank u^^:smile:
 
Level 4
Joined
Aug 12, 2007
Messages
91
Okay, Like My Hero Got 50 intelligence and the spell is x5.00 Inteligence So i make on the Enemy 50x5 = 250 Damage. Understand it now? Or like agillity x4.00 Damage = My agillity x4.00 And i deal x4.00 Damage to enemy its popular Like in Defiance Rpg.
 
Level 4
Joined
Aug 12, 2007
Messages
91
Uhm that i didn't understanded Its just In triggers that All dmg is removed on normal abillity and The trigger makes the damage like x4 Agillity = Your Damage to enemy if u casted.
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
What you're looking for is easy to do, Finallegacy. The example below deals damage equal to the caster's Strength, including bonuses.

[TRIGGER=GUI Trigger]Stat Damage
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to (Your Ability)
Actions
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (Real((Strength of (Casting unit) (Include bonuses)))) damage of attack type Spells and damage type Normal
[/TRIGGER]

To get to the event, search for Unit - Generic Unit Event in the list.
The action is a bit more complicated. I use the Unit - Damage Target action.
Explanation
(Casting Unit), which is the caster, will deal damage to (Target Unit Of Ability Being Cast), which is the target.
NOTE: Make sure it's TARGET UNIT OF ABILITY BEING CAST, as TARGETED UNIT will not work!
Now, to get it to deal the Hero's Strength, we have to use Conversion - Convert Integer to Real.
Search for Hero - Hero Attribute, select the attribute, which unit, and finally decide whenever you want it to include bonuses or not.

If you need further explanation, do not hesitate to ask!
Happy mapping!:wink:
 
Level 5
Joined
Apr 16, 2005
Messages
153
Well, basically damage has to be a Real number, but a stat is an interger. Theres a function that allows you to covert Real numbers to intergers and so forth.
 
Level 4
Joined
Aug 12, 2007
Messages
91
Aha.....? I won't understand it, Im new to triggers So I wont understand anything, i could need better discription Like Go then Unit- bla bla but only with the damn int real thing trigger
 
Level 5
Joined
Apr 16, 2005
Messages
153
Aight, I took a screenshot for you
 

Attachments

  • Stat Based Ability Function.jpg
    Stat Based Ability Function.jpg
    69.5 KB · Views: 128
Level 5
Joined
Apr 16, 2005
Messages
153
haha, im not gonna close out of all my messaging windows just to take a screenshot >.>. If you need any other help feel free to ask.
 
Level 4
Joined
Aug 12, 2007
Messages
91
No, The Question is How to get on that window!!! It wont help me if i dont know how the heck to get to that window

Omg Sorry for double post but i got it!
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (Real x (Real((Beweglichkeit of (Casting unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
 
Last edited by a moderator:
Level 4
Joined
Aug 12, 2007
Messages
91
Nah it works perfect... Just tryed it in my map it works!!!! Fínally... Next time i copy that triggers for other spells -.-
Btw... Yhosiryu I know how to get that Trigger editor.. My question was how to get on that Real agi thing what Steel_Cold showed me.
 
Status
Not open for further replies.
Top