Need Help, Ability trigger.

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Mikael0918
Newcomer
Posts: 2
Joined: February 15th, 2010, 6:18 pm

Need Help, Ability trigger.

Post by Mikael0918 »

Hi there I would like some help with how to construct abilities for my latest maps. I want the abilities to do more damage depending on your str/agi/int.
For example:
Fireball: Does 200 base damage + 0.5 of your intelligence
or
Furious Strike: 70 base damage + 2.0 of your Strength

Thanks in advance :)
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Need Help, Ability trigger.

Post by Aero »

Make a trigger in trigger editor.

Event - (Generic Unit Event) - A unit starts the effect of an ability
Condition - (Ability Comparison) - Ability being casted = (Your custom ability)
Event - (Unit - Damage Target) - Cause Triggering Unit to Damage Spell Target Unit for (2 * Strength of Triggering Unit) damage using ...ect.
Mikael0918
Newcomer
Posts: 2
Joined: February 15th, 2010, 6:18 pm

Re: Need Help, Ability trigger.

Post by Mikael0918 »

Thanks :)