I have the actions made out just fine.. The problem I have is the event..
Unit - (Unit 1 from (Cherry units in Anywhere owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) Enters a distance of 2.0 from Larva [17.98, 17.25]
It works for only one cherry on the map. I want this to work indefinitely. any pointers? I figure it has something to do with "Unit 1" index :\
You'll find that usually you want a very general event. In this case, any unit enters range... other times, any unit dies, a unit starts attacking, etc. Then you use conditions to narrow down the cases you want your trigger to fire. Who got into range of what, who died, who killed, who did damage.
You want triggers that work for a whole map (yes, there are of course triggers that you only want to run once). Check the tool tip of the event and use the references to what triggered the event (triggering unit, attacking unit, triggering player, acquired target etc.) They make triggering so much easier.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have the actions made out just fine.. The problem I have is the event..
Unit - (Unit 1 from (Cherry units in Anywhere owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) Enters a distance of 2.0 from Larva [17.98, 17.25]
It works for only one cherry on the map. I want this to work indefinitely. any pointers? I figure it has something to do with "Unit 1" index :\
Event:
Any unit enters a distance of 2.0 from Larva
Condition:
Unit Type of (Triggering unit) equal to Cherry
@s3rius: Go
awesome thanks. I thought just an event would suffice but a condition was required.
You'll find that usually you want a very general event. In this case, any unit enters range... other times, any unit dies, a unit starts attacking, etc. Then you use conditions to narrow down the cases you want your trigger to fire. Who got into range of what, who died, who killed, who did damage.
You want triggers that work for a whole map (yes, there are of course triggers that you only want to run once). Check the tool tip of the event and use the references to what triggered the event (triggering unit, attacking unit, triggering player, acquired target etc.) They make triggering so much easier.