What's wrong with this trigger?

Valtarian

Member
Reaction score
3
Hello...
For some reason, the following problems are occurring with this trigger:
-Multiples of the units are being created when the stalker is attacked from units with a fast attack speed. The new created unit is called "string default" and is not removed.
-the dummy unit does not cast the ability onto the attacking unit

I know it's a little sloppy right now, I intend to clean it up later--but the basic functionality of it should be working right now. Unit data is set properly with the Dummy Unit and the Ability.

What's wrong with this? Thanks!

Trigger:
  • Top side Copy
    • Events
      • Unit - A unit owned by Player 8 (Pink) Is attacked
    • Conditions
      • ((Unit-type of (Attacked unit)) Equal to Stalker (|cff00a800Unlimited|r) lvl 6) or ((Unit-type of (Attacked unit)) Equal to Stalker lvl 6)
    • Actions
      • Set TempPoint = (Position of (Attacked unit))
      • Unit - Create 1 DUMMY UNIT for Neutral Hostile at TempPoint facing Default building facing (270.0) degrees
      • Point - Remove TempPoint
      • Unit - Order (Last created unit) to (Name of Curse (Creeps)(Stalker)) (Attacking unit)
      • Unit - Remove (Last created unit) from the game
 

Solu9

You can change this now in User CP.
Reaction score
216
You need to set the Unit - Order to the specific Base Order ID. Fx. if you based your spell on Shockwave you must order the unit to Orc Tauren Chieftain - Shockwave targeted point.

And instead of removing the unit you should add a genetic expiration timer. I usually go with 2 secs.

Also, is it true that the dummy unit is created for Neutral Hostile?
Lastly check the dummy spell for Mana Cost, Casting Time, Targets Allowed, Cast Range and Cooldown (just in case).
 

vypur85

Hibernate
Reaction score
803
> Also, is it true that the dummy unit is created for Neutral Hostile?
This actually makes sense as well. Computer players tend to be stubborn sometimes.

Of course, the unit removal is the main problem in the trigger, as mentioned. You remove the unit even before the unit has enough time to cast the spell.
 
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