Trigger String Order

Soulshadow

New Member
Reaction score
6
This is my trigger for a spell that heals nearby allies and steals mana from nearby enemies.

My question is, will the strings run in order that they are listed or will it attempt to run them all at once, screwing the whole thing up?

Code:
Revelation
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Revelation - [Tier 1] 
    Actions
        Set ManaPooled = 0
        Unit Group - Pick every unit in (Units within 700.00 of (Position of (Casting unit)) matching (((Matching unit) belongs to an ally of (Owner of (Casting unit))) Equal to True)) and do (Actions)
            Loop - Actions
                Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (3.00 x (Real((Intelligence of (Casting unit) (Include bonuses))))))
                Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Items\ResourceItems\ResourceEffectTarget.mdl
        Unit Group - Pick every unit in (Units within 700.00 of (Position of (Casting unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Integer((Mana of (Picked unit)))) Less than or equal to ((Intelligence of (Casting unit) (Include bonuses)) x 3)
                    Then - Actions
                        Set ManaPooled = ((Integer((Mana of (Picked unit)))) + 0)
                        Unit - Cause (Casting unit) to damage (Picked unit), dealing (Mana of (Picked unit)) damage of attack type Spells and damage type Normal
                        Unit - Set mana of (Picked unit) to 0.00
                        Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Other\Drain\DrainTarget.mdl
                    Else - Actions
                        Set ManaPooled = ((Intelligence of (Casting unit) (Include bonuses)) x 3)
                        Unit - Cause (Casting unit) to damage (Picked unit), dealing (Real((Intelligence of (Casting unit) (Include bonuses)))) damage of attack type Spells and damage type Normal
                        Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - ((Real((Intelligence of (Casting unit) (Include bonuses)))) x 3.00))
                        Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Other\Drain\DrainTarget.mdl
        Unit - Set mana of (Casting unit) to (Mana of (Casting Unit) + (Real(ManaPooled))

Whoa. After some testing, it seems to remove my a couple of it's intended targets, however, this may be due to other clashing triggers. Other than that it seems to work alright.
 

Chao

Setting sail for fail in the sea of lame.
Reaction score
63
Should work as shown.
I'd add some "Special effect - Destroy" Or you'll get some lag down the road ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top