Warcraft III resources & community, 2003–2006 · archived

Specific Trigger

9 posts
#1

Specific Trigger

In this trigger
-Events
-unit is within ___ of Unit
on the bottom there is a line that says along the lines of "Use 'Event Response-Triggering Unit' to refrence the unit etering the range

How do i get to Event Response and slect the triggering unit? :?
#2
What do you mean?

Unit Comes within range of (Unit)
Conditions
Actions
Force (Owner of (Triggering unit)) to select (Triggering Unit)
#3
No, what i want is for the actions to effect the Unit that came within region, and the unit that had a unit come into reagion (bad english so let me explain)

The trigger taht i used ONLY effects the (unit) picked i want it to effect the unit that came INTO (units) range you see?

In this specific case, when that unit comes near (Unit) then the controler of (unit) has a trigger effect, but i want to make it so that i can pick the unit that came near (unit) so that i can do the same trigger for the unit that entered the region

(unit)-means the unit you pick in the trigger as-is now

unit-means what im trying to modify, the unit that enters the range fo the other unit
#4
hmmmmm................enetering unit? i think thats wat u mean but....im not sure
#5
I know what u mean

-Events
-unit is within ___ of Unit

In actions,
Triggering Unit selects the unit which comes within range

However, because this is a specific unit event, which can only reference units which have been placed on the map (ie not trained or created using unit-create triggers, not variables either) Unit must be a unit which u can select and therefor reference to as a gen variable.

For instance the trigger would really read:

----Events
-unit comes within 256 of Archmage 0034
----Actions
(just pulling stuff outta my ass here)
-Unit: Kill (Triggering Unit) -- [this is the unit which comes within range of Archmage 0034]
-Hero: Set hero level of Archmage 0034 to ((Hero level of Archmage 0034) +1)

Understand?
#6
You had a nice idea (i almost thought u had it), but i think i found out how (but trigger does not exist i belive as i looked for about 45 mins)

E- A Unit comes within (Range) of (unit)

thats the trigger so far... what im looking for is:

E- (Unit) comes within (Range) of (Unit)

as you see so u can change both slots... ive looked for many hours so im not sure (you may have to go into JASS or something for this) but the point is i need to find a way to specify the "A Unit" in the trigger.

Note: Thanks to all who helped/considered helping/decided to look at this thread/helped but are insanly confused

when i mosted by last post i was really PO.d and i think this describes it much more... however if you still have no idea what im talking about tell me
#7
well you can do it like this, if I got right what you want...


Untitled Trigger 001
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units within 512.00 of (Position of Footman 0000 <gen>)) and do (Actions)
            Loop - Actions
#8
No, unfourtunatly tahts not it HOWEVER after a loong time of trial and error (and a borken lamp and window) i found something so close...


Events-Unit-A Unit comes within (range) of (Unit)

Actions-Set Varible-Set (MyVarible1)=(Units in region)
       -Unit group-Pick every Unit in (Region) and ( Unit-Move(TRIGGERING UNIT) to (region)

Ok so my question is how do i put my varible where it sais (TRIGGERING UNIT)? ive had no luck...any1 who solves this should win an award for finally killing this trigger thats taken me 2 weeks and probably 10-25 hours of hell
#9
NEVERMIND !!!

i got help from friends at another WC3 site and they helped me through it, but thanks to all who tried to help here :D