HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do I apply this trigger to a variable unit?

08-01-2006, 04:30 PM#1
Sardius
I am having a problem with my familiar, hero system that I need to address, and this trigger fixes it entirly, but the problem is I can only select the event for "aquires a target" with a specific unit event for some anal reason and my hero is a variable unit.

Trigger:
Familuar Follow Command Copy 2
Collapse Events
Unit - Thrack 0396 <gen> Acquires a target
Collapse Actions
Unit - Order Fam1 to Right-Click (Targeted unit)
08-01-2006, 04:38 PM#2
SFilip
you can't...however there is a simple solution:
generic event - aquires a target
condition: triggering unit equals to <your variable>
08-01-2006, 04:54 PM#3
Fireeye
You can add the event trough another trigger, just use
Trigger:
Trigger - Add to (Your Trigger) the event (Unit - <Your Variable> Acquires a target)
08-01-2006, 05:04 PM#4
SFilip
but just to let you know...if you do it that way and later change the variable, the trigger will still respond to the unit that was in the variable at the time you added the event.
08-01-2006, 05:06 PM#5
Sardius
You cannot select aquire a target through a generic unit event, only a specific unit event...

As for this other method, uh not really sure how to do that, I've never tried doing that before... Do I just put that action in like initialization and delete the actual event from my trigger?
08-01-2006, 05:11 PM#6
SFilip
no events in your trigger, that action must be after you declare the variable.
08-01-2006, 05:26 PM#7
Sardius
Cool, that worked, thanks... and my hero varaible never changes, its always "hero1"