@ John
Try this...
Informative preparation:
Place down a stable on the map. And another unit, so you dont auto lose. Change the amount of players to 1 player, so there are now Players: 1. This means you are the only one on the map. So, you dont need to put down extra unit (for enemy). When ready add these triggers below:
Moving to the trigger section...
trigger0
starting state: yes
loop: yes
condition: object in area: player1: Light cavalry value=1
area: In which area the unit must be to get tasked
effect: task object: player1: Light Cavalry
area: In which area the unit must be to get tasked
location: the location where you task the unit to.
Explanation:
This single trigger will check whether there is a light cavalry in the area specified. If it is in the area then it will move the unit which is in the area specified in the task object (this area is the same area you set in the object in area condition.
Further explained:
Why you got both an object in area and use the area of task object?
Can you not just use Task object alone?
Well, because you want to task the units more then just one time. It is better to do a double check to make sure they really are in the area (object in area).
The area of the task object is the area, when the task object effect is activate, where task object moves the unit from. In this way there might also be 1 unit or more units in the area. But as i made the condition, object in area to one, it will only fire if there is one in the area.
Hope that helped
(_(_(_ World of Warcraft _)_)_)
(_(_(_(_(_( = [|]Level: 85 Pierce [|] = )_)_)_)_)_)
(_(_(_(_(_(_(_(_( = [|] Class: Warrior[|] = )_)_)_)_)_)_)_)_)
(_(_(_(_(_(_(_(_( = [|]Race: Human [|] = )_)_)_)_)_)_)_)_)
(_(_(_( = WizardBoy: | Proud member of AOK = Click to add population = )_)_)_)[This message has been edited by WizarDBoy (edited 12-18-2007 @ 01:18 PM).]