Whats wrong whit this trigger?

Nivius

TH.net Regular
Reaction score
5
so the idea is that its kinda a spell that makes the target only attackin the unit that used the skill, its gona be 1-5sec for player heroes and 2-10 for creeps.

but somehow it dont realy work, what am i doing wrong? :) +rep if someone can give me a hand


Trigger:
  • Slam trigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Shield Bash (Might9)
    • Actions
      • Wait 0.10 seconds
      • For each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Triggering unit) has buff Shield Bashed ) Equal to True
            • Then - Actions
              • Unit - Order (Target unit of ability being cast) to Attack (Triggering unit)
              • Wait 0.50 seconds
            • Else - Actions
              • Do nothing
 

SwedishChef

New Member
Reaction score
32
why do you have an integer loop there even ??

why not?? he need it to be checked continuesly.

how to solve: 1. do your caster get the buff??
2. set unit variables for both caster and target and use those else the wait will mess everything up. Read a mui guide and you will understand.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
well, why not just start a periodic timer then ?
and yeah, set both units to variables ;)
 

Danis[h]

New Member
Reaction score
19
why not?? he need it to be checked continuesly.

how to solve: 1. do your caster get the buff??
2. set unit variables for both caster and target and use those else the wait will mess everything up. Read a mui guide and you will understand.

It would be easier to use Unit is issued an order event with the condition (has buff)
then order it to attack the unit who cast the ability.
 

Nivius

TH.net Regular
Reaction score
5
why not?? he need it to be checked continuesly.

how to solve: 1. do your caster get the buff??
2. set unit variables for both caster and target and use those else the wait will mess everything up. Read a mui guide and you will understand.

lol :D i ecidently had it on triggering unit, changed it to Target unit of ability being cast

and i guess it shuld work now :) (harder to test then u might think)

+rep
 
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