Please help me guys. I have been trying to make a scenario using some of the ideas of Derfel Cadarn (creator of "Pawns of the Empire"). But I bump into a very annoying problem.
You know that you can set a Task for the units. I know how to do that. That's easy. BUT for me it isn't that easy to set a Task for units that are created during the game via the "Create Object" Effect. I've tried everything.I did it like this:
1.First I create my soldier[object name GENERAL (selected on map)].
2.Then I create a Town Center owned by Player 3 with the following options checked: "SELECTED BY - Player 1" and "NEAR - GENERAL.
3.Then I create an object called "Grenadiers" (In Area 09 which I've created right next to the Town Center) with owner - Player 2 and Class - Grenadier (franks).
4.Then I make the following effect: OBJECT---CREATE---Grenadier.
5.Then I make another effect:OBJECT---TASK-UNIT---Grenadier--to--GENERAL---ESCORT.
6.Then I make a trigger-IF---"Town Center" Exists---then---Create unit Grenadiers-and-Task-Object Grenadiers to GENERAL.
And it goes like this: I get the GENERAL near the Town Center, I select the Town Center and the Grenadiers appear. But for some reason they don't follow the GENERAL.
Please help me. Tell me where did I go wrong?
You know that you can set a Task for the units. I know how to do that. That's easy. BUT for me it isn't that easy to set a Task for units that are created during the game via the "Create Object" Effect. I've tried everything.I did it like this:
1.First I create my soldier
2.Then I create a Town Center owned by Player 3 with the following options checked: "SELECTED BY - Player 1" and "NEAR - GENERAL.
3.Then I create an object called "Grenadiers" (In Area 09 which I've created right next to the Town Center) with owner - Player 2 and Class - Grenadier (franks).
4.Then I make the following effect: OBJECT---CREATE---Grenadier.
5.Then I make another effect:OBJECT---TASK-UNIT---Grenadier--to--GENERAL---ESCORT.
6.Then I make a trigger-IF---"Town Center" Exists---then---Create unit Grenadiers-and-Task-Object Grenadiers to GENERAL.
And it goes like this: I get the GENERAL near the Town Center, I select the Town Center and the Grenadiers appear. But for some reason they don't follow the GENERAL.
Please help me. Tell me where did I go wrong?
[This message has been edited by grekoreko (edited 03-30-2009 @ 07:20 AM).]