HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

An event problem

01-03-2005, 12:09 AM#1
Mothmann
ok i have a unit that has a aura. i want to make so whenever someone obtains the buff given by the aura that it sets off a trigger. but i cant find a event to do this with.

say a unit has vampiric aura. everytime he steps close enough to someone that they get the buff i want it to give the unit a ability as well as the buff

im lost in how to do this. i done it before by just setting regions around the unit but i dont wanna do like that.

edit basically i need something like aquires a buff.



edit

why can't i get variables to work with unit - UNIT ENTERS REGION or unit - WHEN WITHIN RANGE events
01-05-2005, 12:06 AM#2
duckduck
u could do
Code:
Event:
  Unit comes X of HERO
Conditions:
  Vamparic Aura is level 1 for HERO
Actions:
  yadadada
x is how close you want it to be
HERO could either be a variable or the unit
01-17-2005, 05:25 PM#3
Mothmann
Quote:
Originally Posted by duckduck
u could do
Code:
Event:
  Unit comes X of HERO
Conditions:
  Vamparic Aura is level 1 for HERO
Actions:
  yadadada
x is how close you want it to be
HERO could either be a variable or the unit


this doesn't work because the units not preset on the map.
and u cant use variables to my understanding in that event. at least i never can.
01-17-2005, 07:31 PM#4
oNdizZ
... yes you can, you can add events with an action called something like: Trigger - Add Event

with that you can add a unit event with and variable...
01-20-2005, 11:59 PM#5
Mothmann
Quote:
Originally Posted by oNdizZ
... yes you can, you can add events with an action called something like: Trigger - Add Event

with that you can add a unit event with and variable...



wow thank you. i never even thought of that.