I have recently found out about what teams actually are and how they are different to players (I didn't know there was more to team than Team 'Player_1', which seemed pretty much the same as Player 'Player_1').
Anyway what I have at the moment is a team called Wave 1 in PlyrCreeps, the properties of which are as follows:
***************
[Wave 1] ....................... Maximum [1]
Owner: [PlyrCreeps]
Home Position: [Sea Spawn A]
Destination: [<none>]
AI Type: [<none>]
Production:-------------------------------------------------
Condition: [<none>]
[<unticked>] Execute associate actions
Priority: [0] ......... Success Priority [0]
Build for [1] Secs. ............ Failure Priority Decrease: [0]
------------------------------------------------------------
Min: Max: Unit Type:
[5] . [5] . [ElvenTransportShip]
(All the rest are blank)
Recruitment Options:----------------------------------------
[<unticked>] Automatically reinforce whenever possible
[<ticked>] Team members are AI recruitable
------------------------------------------------------------
(No team description)
***************
In the other tabs, the only one I have changed is 'Initial Team Behaviour', which is set to Passive.
The scripting relating to the wave is as follows:
IF:
'rest1' has expired.
THEN:
Start building team Team 'PlyrCreeps/Wave 1'
Have Team 'PlyrCreeps/Wave 1' follow Waypoint Path 'Sea Path A', as a team is FALSE , in formation is FALSE
What I want is for 5 elven transport ships to spawn, outside the border, at the waypoint 'Sea Spawn A', then for the units to follow the waypoint path 'Sea Path A', which follows the path of a river, until it ends up at the other side of the map, off border.
What I have at the moment is evidense that the script is being executed (Notification on the wave) but when I moved the waypoint within the border, it became apparent that no transport ships were spawning at all.
I have tried to change some details to the script, trying different ways of making the team spawn, not telling it where to go but giving the team a (UnitRef) destination in its properties, but nothing seems to work.
Please tell me what I am doing wrong!
P.S. And in case it's not obvious, I am not spawning a unit, calling it something and telling it to move along the path for each unit in every wave. This is the more advanced way of using teams (which I barely know about), so please don't suggest tailoring to each unit individually in case that's what anyone's thinking.
Edited by Puzzler33, 06 August 2009 - 09:12 PM.