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

[Trigger] Multi Level Triggers

Status
Not open for further replies.
Level 3
Joined
Dec 16, 2008
Messages
24
I've create a sample skill the same as the storm bolt

Event:
Unit - A unit starts the effect of an ability
Condition:
(Ability being cast) Equal to Storm Bolt
Action:
Unit - Set life of (target unit of ability being cast) to ((Life of (target unit of ability being cast)) - 100)

I create 4 triggers for each level of my sample storm bolt containing different damage amount of 100/200/300/400, my question is how to create a single trigger containing all 4 effects.
 
Level 3
Joined
Apr 8, 2009
Messages
34
Make if/then/else functions, or get a formula like deal damage equal to level of ability * 100
 
Level 11
Joined
Feb 14, 2009
Messages
884
  • Spell
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to <Your ability>
    • Actions
      • Set SkillLevel = (Level of <Your spell> for (Triggering unit))
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((Real(SkillLevel)) x 100.00) damage of attack type Spells and damage type Normal
Cheers :)
 
Status
Not open for further replies.
Top