Is this trigger MUI?

SutinG

Member
Reaction score
1
Trigger:
  • Events
    • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Berserk
    • Actions
      • Unit - Create 1 DummyU for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit - Add Bloodlust to (Last created unit)
      • Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Triggering unit)
      • Unit - Add AbilityX to (Triggering unit)
      • Unit - Set level of AbilityX for (Triggering unit) to (Level of (Ability being cast) for (Triggering unit))
      • Wait 12.00 seconds
      • Unit - Remove AbilityX from (Triggering unit)


:confused:

Thanks in advance.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
yeah but it leaks a point... set a point variable to (Positions of (Triggering Unit)) and then add this custom script before the wait:
call RemoveLocation(udg_Temp_Point) --> Temp_Point being an example of a point variable. then also use either casting unit or triggering unit, don't mix them... in this case you NEED to use Triggering Unit, since Casting unit isn't capable of handling waits
 

SutinG

Member
Reaction score
1
yeah but it leaks a point... set a point variable to (Positions of (Triggering Unit)) and then add this custom script before the wait:
call RemoveLocation(udg_Temp_Point) --> Temp_Point being an example of a point variable. then also use either casting unit or triggering unit, don't mix them... in this case you NEED to use Triggering Unit, since Casting unit isn't capable of handling waits

Thank you! Thank you! if it is well understood.. Is like this?

Trigger:
  • BerserkT1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Berserk
    • Actions
      • Set Temp_POINT = (Position of (Triggering unit))
      • Unit - Create 1 DummyU for (Owner of (Triggering unit)) at Temp_POINT facing Default building facing degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit - Add Bloodlust to (Last created unit)
      • Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Triggering unit)
      • Unit - Add AbilityX to (Triggering unit)
      • Unit - Set level of AbilityX for (Triggering unit) to (Level of (Ability being cast) for (Triggering unit))
      • Wait 12.00 seconds
      • Unit - Remove AbilityX from (Triggering unit)
      • Custom script: call RemoveLocation (udg_Temp_POINT)
 

free_killing

TH.net Regular
Reaction score
23
Trigger:
  • BerserkT1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Berserk
    • Actions
      • Set Temp_POINT = (Position of (Triggering unit))
      • Unit - Create 1 DummyU for (Owner of (Triggering unit)) at Temp_POINT facing Default building facing degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit - Add Bloodlust to (Last created unit)
      • Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Triggering unit)
      • Unit - Add AbilityX to (Triggering unit)
      • Unit - Set level of AbilityX for (Triggering unit) to (Level of (Ability being cast) for (Triggering unit))
      • Custom script: call RemoveLocation (udg_Temp_POINT)
      • Wait 12.00 seconds
      • Unit - Remove AbilityX from (Triggering unit)


Edit: ohh sorry, didnt saw aceharts post..
 

free_killing

TH.net Regular
Reaction score
23
I thought that too, but ehmm, some said it was MUI, so i guess it is, and AceHart, is pretty clever, and he didnt said it wasnt MUI :)
 

velnias

New Member
Reaction score
13
at my opinion this ability cant handle more than 1 caster at last 12 seconds
ex: 1 unit cast ability and after 2 seconds second unit cast this ability. for first unit this line:
Code:
Unit - Remove AbilityX from (Triggering unit)
wont work anymore.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
"Triggering unit" tends to be extremely stable. Even with "wait"s.
So is "dying unit" and a lot of others.

Problem event responses are anything related to casting,
most notably "casting unit", "target point" and "target unit".
 
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