Help for skill checking

SkyXyden

New Member
Reaction score
3
Theres some problem with the skill, the 'set skill level for unit' trigger is not working.

Assault Blast

Description - Blink towards the target and smashes it. Dealing <A05K:AHtb,DataA1> damage and stuns for <A05K:AHtb,Dur1> second. The impact cause powerful shockwave to be launced at 5 different direction from the target. Each dealing <A05J:AHsh,DataA1> damage. |n|n<A05K:AHtb,Cool1> seconds cooldown.

Code:
Assault Blast Point
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to TENY 2 Assault Blast (Cast Point)
    Actions
        Custom script:   call SetUnitX(GetTriggerUnit(), GetLocationX(GetSpellTargetLoc()))
        Custom script:   call SetUnitY(GetTriggerUnit(), GetLocationY(GetSpellTargetLoc()))
        Set temp_point[1] = ((Position of (Triggering unit)) offset by 300.00 towards ((Facing of (Triggering unit)) + 72.00) degrees)
        Unit - Create 1 Dummy Unit for (Triggering player) at (Position of (Triggering unit)) facing ((Facing of (Triggering unit)) + 72.00) degrees
        Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
        Unit - Add TENY 2 Assault Blast (Blast Point) to (Last created unit)
        Unit - Set level of TENY 2 Assault Blast (Blast Point) for (Last created unit) to (Level of TENY 2 Assault Blast (Cast Point) for (Triggering unit))
        Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave temp_point[1]
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
--------------------------------------------------------------------------
        Set temp_point[2] = ((Position of (Triggering unit)) offset by 300.00 towards ((Facing of (Triggering unit)) + 144.00) degrees)
        Unit - Create 1 Dummy Unit for (Triggering player) at (Position of (Triggering unit)) facing ((Facing of (Triggering unit)) + 144.00) degrees
        Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
        Unit - Add TENY 2 Assault Blast (Blast Point) to (Last created unit)
        Unit - Set level of TENY 2 Assault Blast (Blast Point) for (Last created unit) to (Level of TENY 2 Assault Blast (Cast Point) for (Triggering unit))
        Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave temp_point[2]
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
--------------------------------------------------------------------------
        Set temp_point[3] = ((Position of (Triggering unit)) offset by 300.00 towards (Facing of (Triggering unit)) degrees)
        Unit - Create 1 Dummy Unit for (Triggering player) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
        Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
        Unit - Add TENY 2 Assault Blast (Blast Point) to (Last created unit)
        Unit - Set level of TENY 2 Assault Blast (Blast Point) for (Last created unit) to (Level of TENY 2 Assault Blast (Cast Point) for (Triggering unit))
        Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave temp_point[3]
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
--------------------------------------------------------------------------
        Set temp_point[4] = ((Position of (Triggering unit)) offset by 300.00 towards ((Facing of (Triggering unit)) + 216.00) degrees)
        Unit - Create 1 Dummy Unit for (Triggering player) at (Position of (Triggering unit)) facing ((Facing of (Triggering unit)) + 216.00) degrees
        Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
        Unit - Add TENY 2 Assault Blast (Blast Point) to (Last created unit)
        Unit - Set level of TENY 2 Assault Blast (Blast Point) for (Last created unit) to (Level of TENY 2 Assault Blast (Cast Point) for (Triggering unit))
        Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave temp_point[4]
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
--------------------------------------------------------------------------
        Set temp_point[5] = ((Position of (Triggering unit)) offset by 300.00 towards ((Facing of (Triggering unit)) + 288.00) degrees)
        Unit - Create 1 Dummy Unit for (Triggering player) at (Position of (Triggering unit)) facing ((Facing of (Triggering unit)) + 288.00) degrees
        Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
        Unit - Add TENY 2 Assault Blast (Blast Point) to (Last created unit)
        Unit - Set level of TENY 2 Assault Blast (Blast Point) for (Last created unit) to (Level of TENY 2 Assault Blast (Cast Point) for (Triggering unit))
        Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave temp_point[5]
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
 

Expelliarmus

Where to change the sig?
Reaction score
48
Code:
--------------------------------------------------------------------------
        Set temp_point[2] = ((Position of (Triggering unit)) offset by 300.00 towards ((Facing of (Triggering unit)) + 144.00) degrees)
        Unit - Create 1 Dummy Unit for (Triggering player) at (Position of (Triggering unit)) facing ((Facing of (Triggering unit)) + 144.00) degrees
        Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
        Unit - Add TENY 2 Assault Blast (Blast Point) to (Last created unit)
        Unit - Set level of TENY 2 Assault Blast (Blast Point) for (Last created unit) to (Level of TENY 2 Assault Blast (Cast Point) for (Triggering unit))
        Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave temp_point[2]
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
--------------------------------------------------------------------------
        Set temp_point[3] = ((Position of (Triggering unit)) offset by 300.00 towards (Facing of (Triggering unit)) degrees)
        Unit - Create 1 Dummy Unit for (Triggering player) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
        Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
        Unit - Add TENY 2 Assault Blast (Blast Point) to (Last created unit)
        Unit - Set level of TENY 2 Assault Blast (Blast Point) for (Last created unit) to (Level of TENY 2 Assault Blast (Cast Point) for (Triggering unit))
        Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave temp_point[3]
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
--------------------------------------------------------------------------
        Set temp_point[4] = ((Position of (Triggering unit)) offset by 300.00 towards ((Facing of (Triggering unit)) + 216.00) degrees)
        Unit - Create 1 Dummy Unit for (Triggering player) at (Position of (Triggering unit)) facing ((Facing of (Triggering unit)) + 216.00) degrees
        Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
        Unit - Add TENY 2 Assault Blast (Blast Point) to (Last created unit)
        Unit - Set level of TENY 2 Assault Blast (Blast Point) for (Last created unit) to (Level of TENY 2 Assault Blast (Cast Point) for (Triggering unit))
        Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave temp_point[4]
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
--------------------------------------------------------------------------
        Set temp_point[5] = ((Position of (Triggering unit)) offset by 300.00 towards ((Facing of (Triggering unit)) + 288.00) degrees)
        Unit - Create 1 Dummy Unit for (Triggering player) at (Position of (Triggering unit)) facing ((Facing of (Triggering unit)) + 288.00) degrees
        Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
        Unit - Add TENY 2 Assault Blast (Blast Point) to (Last created unit)
        Unit - Set level of TENY 2 Assault Blast (Blast Point) for (Last created unit) to (Level of TENY 2 Assault Blast (Cast Point) for (Triggering unit))
        Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave temp_point[5]
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)

You can simplify this using Integer A/B:

Code:
Actions
    For each (Integer A) from 1 to 5, do (Actions)
        Loop - Actions
            Set Temp_Point[(Integer A)] = ((Position of (Triggering unit)) offset by 300.00 towards ((Facing of (Triggering unit)) + (72.00 x (Real((Integer A))))) degrees)
            Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing ((Facing of (Triggering unit)) + (72.00 x (Real((Integer A))))) degrees
            Animation - Change (Last created unit)'s size to (150.00%, 150.00%, 150.00%) of its original size
            Unit - Add TENY 2 Assault Blast (Blast Point) to (Last created unit)
            Unit - Set level of TENY 2 Assault Blast (Blast Point) for (Last created unit) to (Level of TENY 2 Assault Blast (Cast Point) for (Triggering unit))
            Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave Temp_Point[(Integer A)]
            Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
            Custom script:   call RemoveLocation(udg_Temp_Point[bj_forLoopAIndex]])

Your Problem:
Theres some problem with the skill, the 'set skill level for unit' trigger is not working.
In what way it doesn't work? It's not setting the level of TENY 2 Assault Blast (Blast Point) for the dummy?
 
General chit-chat
Help Users

      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