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

Adding buffs

Status
Not open for further replies.
Level 2
Joined
Oct 30, 2005
Messages
7
Hey, I'm trying to figure out how I add buffs via triggers. My current trigger uses WEU.

Code:
Sinister Strike
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Sinister Strike (Amalah)
    Actions
        Unit - Order (Triggering unit) to damage (Target unit of ability being cast) for ((Real((Agility of (Triggering unit) (Include bonuses)))) x 2.00) using attack type Hero and damage type Normal.
        Unit - Set the custom value of (Triggering unit) to ((Custom value of (Triggering unit)) + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Custom value of (Triggering unit)) Equal to 1
            Then - Actions
                Compatibility - Create the illusion of Combo Point1  with that buff's Target model attached to (Triggering unit) on it's chest
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Custom value of (Triggering unit)) Equal to 2
                    Then - Actions
                        Compatibility - Create the illusion of Combo Point2  with that buff's Target model attached to (Triggering unit) on it's chest
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Custom value of (Triggering unit)) Equal to 3
                            Then - Actions
                                Compatibility - Create the illusion of Combo Point3  with that buff's Target model attached to (Triggering unit) on it's chest
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Custom value of (Triggering unit)) Equal to 4
                                    Then - Actions
                                        Compatibility - Create the illusion of Combo Point4  with that buff's Target model attached to (Triggering unit) on it's chest
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                (Custom value of (Triggering unit)) Equal to 5
                                            Then - Actions
                                                Compatibility - Create the illusion of Combo Point5  with that buff's Target model attached to (Triggering unit) on it's chest
                                            Else - Actions
                                                Do nothing
                                    Else - Actions
                                        Do nothing
                            Else - Actions
                                Do nothing
                    Else - Actions
                        Do nothing
            Else - Actions
                Do nothing
        Floating Text - Create floating text that reads (Combo Points =  + (String((Custom value of (Triggering unit))))) above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
        Wait 2.00 seconds
        Floating Text - Destroy (Last created floating text)

The buff itself does nothing nothing but add art to the unit(the little floating orb things from NE single player).
 
Status
Not open for further replies.
Top