help me with a spell trigger

falcokid

New Member
Reaction score
1
so i am making a spell that drops wards and slows the enemy and also prevents the use of spells when a unit is within the aura, i have the slow aura down, but i really don't know how to make an aura preventing units from casting spells. what i mean by this is that a unit enters the aura and all spells that the unit has will no longer work. thanks in advance for anyone's help :D
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
you could just run a boolean through each spell:


Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit comes within 600.00 of TheUnitThatYouHaveTheAuraOn
    • Conditions
    • Actions
      • Set IsPlayerInAura[Player number of owner of triggering unit] = True
Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • IsPlayerInAura[Player number of owner of triggering unit] Equal to (==) True
    • Actions
      • Unit - Order (Casting unit) to Stop

sorry, im so use to making rpg triggers that i made that mpi and not mui :/ well, to an extent... let me know if you need it for individual units ( a player will have more than one unit)
 

falcokid

New Member
Reaction score
1
i feel like an idiot saying this but how do u do this
Trigger:
  • Unit - A unit comes within 600.00 of TheUnitThatYouHaveTheAuraOn
 

falcokid

New Member
Reaction score
1
sorry i didn't realize how unspecific i was. what i mean is that i dont know how to select the specific unit.
 

Dirac

22710180
Reaction score
147
Click on the red underlined Unit text and in the following window above the triggering options theres a box called "select unit"

Using this isnt very good, if the unit dies the trigger stops workin
 

falcokid

New Member
Reaction score
1
whenever i press the select unit button it brings up the "tool palette" at which i cant chose anything for the trigger. (note: this spell drops a ward so i cant choose a ward that is on the map because, well there aren't any on the map)
 

SouLEDGE

Damn you advanced calculus
Reaction score
75
Set your wards to a variable after they're created then use that variable for: Unit - Unit Within Range
 

vypur85

Hibernate
Reaction score
803
Code:
Event
 A unit begins casting an ability <-- [I]Unit generic event[/I]
Condition
 (Triggering unit) has buff (YOURSLOWBUFF) Equal to True <-- [I]Boolean comparison[/I]
Actions
 Unit - Order (Triggering unit) to Stop

A simpler way. Not ideal, but simpler.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top