Nothing Happens.

simonake

New Member
Reaction score
72
It doesn't qork, why?
Cold Slam
Code:
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Cold Slam 
    Actions
        Set CasterLocation = (Position of (Triggering unit))
        Set UnitsInRange = (Units within 600.00 of CasterLocation matching (((Triggering unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                Set EffectCount = 0
                Unit Group - Pick every unit in UnitsInRange and do (Actions)
                    Loop - Actions
                        Set PickedLocation = (Position of (Picked unit))
                        Set DistanceBetweenPoints = (Distance between CasterLocation and PickedLocation)
                        Set EffectOffset = (EffectOffset + 100.00)
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                DistanceBetweenPoints Less than or equal to 50.00
                            Then - Actions
                                Set AngleBetweenPoints = (Angle from CasterLocation to PickedLocation)
                                Set EffectCount = (EffectCount + 1)
                                Set EffectLocation = (CasterLocation offset by DistanceBetweenPoints towards AngleBetweenPoints degrees)
                                Special Effect - Create a special effect at EffectLocation using Abilities\Spells\Other\BreathOfFrost\BreathOfFrostTarget.mdl
                                Set Effect[EffectCount] = (Last created special effect)
                                Custom script:   call RemoveLocation( udg_EffectLocation)
                            Else - Actions
                        Custom script:   call RemoveLocation( udg_PickedLocation)
                Wait 0.40 seconds
                For each (Integer A) from 1 to EffectCount, do (Special Effect - Destroy Effect[(Integer A)])
        Custom script:   call RemoveLocation( udg_CasterLocation)
        Custom script:   call DestroyGroup( udg_UnitsInRange)
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Use [noparse]
Trigger:
[/noparse]
tags.

And use "Starts the effect of an ability" for you Event.

And this line:
Code:
Set UnitsInRange = (Units within 600.00 of CasterLocation matching (((Triggering unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
"matching (((Triggering unit)" should be "matching (((Matching unit)".

Also, waits screw up loops.
 

simonake

New Member
Reaction score
72
Thx.

You'r right. I don't use wc3 tags cause when the text is too long it squeeze it and i don't like this form.

Spell not needing to be mui.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
It doesn't make it non-MUI (Well, it does but not the point);
It, usually, just screws up the loop in general.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Remove the wait.
Or use a different SFX that can be removed instantaneously like that.
Then you wouldn't even need the SFX array and extra loop.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top