Why is this trigger not working?

romanandre

New Member
Reaction score
2
Can anyone help me and tell me why this isnt working?
Code:
Wrath of Elune
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Unit-type of (Casting unit)) Equal to Tyrande Whisperwind
    Actions
        Set Caster = (Casting unit)
        Set Target = (Target unit of ability being cast)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Ability being cast) Equal to Arcane Shot 
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Random integer number between 1 and 10) Less than or equal to 10
                    Then - Actions
                        Unit Group - Pick every unit in (Units within 350.00 of (Position of Target)) and do (Actions)
                            Loop - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        ((Picked unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True
                                    Then - Actions
                                        Special Effect - Create a special effect at (Position of Target) using war3mapImported\ArcaneExplosion.mdx
                                        Wait 0.60 seconds
                                        Unit - Cause Caster to damage (Picked unit), dealing ((Real((Agility of Caster (Include bonuses)))) x 3.00) damage of attack type Spells and damage type Normal
                                    Else - Actions
                                        Do nothing
                    Else - Actions
                        Do nothing
            Else - Actions
                Do nothing

Edit: It seems the only thing not working is the area damage, anyone know why?
 

Ryushi

"I will stand, or I will fall. I will not sit."
Reaction score
59
Well for one thing that wait could cause some issues. There is going to be a wait between each time a unit takes damage from the spell, is that what you wanted to do? Also, you can just put the Ability being cast and Random Number conditions under Conditions.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top