Creating units for purpose X Triggers (Help needed)

Awlips

New Member
Reaction score
1
Trigger one: The base spell is Web. It is intended to web anyone for 6 seconds and create a unit to mana burn/feedback that unit once per second. (if said unit should invul/despell I'd like the trigger to end as well)

Code:
Events
    Unit - A unit Finishes casting an ability

Conditions
    (Ability being cast) Equal to Violet Gate 

Actions
    Set Violet_Gate_Target = (Targeted unit)
    Set Violet_Gate_TargetLoc = (Position of Violet_Gate_Target)
    Unit - Create 1 Violet Caress for (Owner of (Triggering unit)) at Violet_Gate_TargetLoc facing (Position of (Targeted unit))
    Unit - Order (Last created unit) to Attack Violet_Gate_Target
    Wait 0.90 seconds
    Unit - Remove (Last created unit) from the game
    Unit - Create 1 Violet Caress for (Owner of (Triggering unit)) at Violet_Gate_TargetLoc facing (Position of (Targeted unit))
    Unit - Order (Last created unit) to Attack Violet_Gate_Target
    Wait 0.90 seconds
    Unit - Remove (Last created unit) from the game

(Rinse, repeat)

Trigger two: The base spell is Pocket Factory. The summon does not summon units as Pocket Factory does, it is simply to summon a building in a targetable manner. It is intended to summon a building with no collision which is meant to be the location of summoned units (via trigger) cast silence once every other second for 14 seconds.

Code:
Events
    Unit - A unit Finishes casting an ability

Conditions
    (Ability being cast) Equal to Crystal Gate (Summon)

Actions
    Set Crystal_Gate_Caster = (Casting unit)
    Unit - Create 1 Suppresive Reverberation for (Owner of Crystal_Gate_Caster) at (Target point of ability being cast) facing (Position of (Triggering unit))
    Set Crystal_Reverberation_Caster = (Last created unit)
    Set Crystal_Reverberation_Loc = (Position of Crystal_Reverberation_Caster)
    Unit - Order (Last created unit) to Neutral Dark Ranger - Silence Crystal_Reverberation_Loc
    Wait 0.35 seconds
    Unit - Remove (Last created unit) from the game
    Wait 1.65 seconds
    Set Crystal_Gate_Caster_Loc = (Position of Crystal_Gate_Caster)
    Unit - Create 1 Suppresive Reverberation for (Owner of Crystal_Gate_Caster) at (Target point of ability being cast) facing (Position of (Triggering unit))
    Set Crystal_Reverberation_Caster = (Last created unit)
    Set Crystal_Reverberation_Loc = (Position of Crystal_Reverberation_Caster)
    Unit - Order (Last created unit) to Neutral Dark Ranger - Silence Crystal_Reverberation_Loc
    Wait 0.35 seconds
    Unit - Remove (Last created unit) from the game

(Rinse, repeat)

They don't seem to be working properly. Any help would be appreciated!
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
Spell 1)
Don't use waits to remove units, use expiration timers instead.
Instead of summoning two units, just make one with a cool down of 0.90 seconds.
Use starts the effect of an ability instead of finishes casting.


Spell 2)
Same deal.

Your triggers leak use this tutorial to fix that.
 

Sgqvur

FullOfUltimateTruthsAndEt ernalPrinciples, i.e shi
Reaction score
62
Set Violet_Gate_Target = (Targeted unit)
should be
Set Violet_Gate_Target = (Target unit of ability being cast)
 
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