• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Specific Trigger

Status
Not open for further replies.
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
 
Level 6
Joined
Aug 29, 2004
Messages
159
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?
 
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
 
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...

Code:
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
 
Status
Not open for further replies.
Top