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?
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
hmmmmm................enetering unit? i think thats wat u mean but....im not sure
imported_Bort
#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)
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
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
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