| 01-21-2003, 02:21 AM | #1 |
Guest | I'm trying to do an Aeon-style map, only the units generated are actually owned by the player. While I want the player to own his units, I don't want him to be able to control them. The scripts should do that. The point behind it is that units generated by that player's barracks (the ones that generate automatically on a timed interval) will act like the regular computer-controlled units in any Aeon game, but when they kill an enemy unit, that player gets the gold for it. So far I can assign orders to a unit that's owned by a player, but I don't know how to prevent that player from giving it new orders. Removing the player's ability to select that unit at all would be preferrable. Anyone know how? Alternative methods, even? |
| 01-21-2003, 03:19 AM | #2 |
Do this instead: Set the CPU's units to a different player slot, but use a custom color to match yours. Periodic Event (every 60 secs) Player - Add X Gold to Player's Current Gold Player - Set Computer's Gold to 0. X will refer to the Current Gold Resources of the friendly CPU player. So for example the CPU has 1k gold, then it will add 1k gold to the Player's current gold. Afterwards it will set the CPU's gold to zero. If there are more than one player to a team, then split the gold as neccessary, and have a trigger that recognizes when an ally has left the game. EX: Add X/Players Gold to Players Current Gold. |
