Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Drummin  
#1 Posted : Tuesday, July 7, 2009 1:39:12 PM(UTC)
Drummin
General
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffMaps Staff: Maps Staff MemberRed Alert Staff: Red Alert Staff Member
Joined: 12/11/2007(UTC)
Posts: 1,622
Location: CA, USA

Was thanked: 16 time(s) in 15 post(s)
There has been a number of people asking about making teams for missions, so I'll just post the basics here.

Make your players and set them as enemies. All players except the human player should be AI controlled. Don't forget to add PlyrCivilian. Add buildings for the enemy using the object tool or a better option for missions is the Build List tool. If using the latter, set the building to already built. Now for some scripting.

Make a script in the enemy folder to activate the player (Change names as needed). Setting: [ns A D].
Script Name: GLASetup
*** IF ***
True.
*** THEN ***
Player 'GLAEnemy' gets $ 1000000
Player 'GLAEnemy' is able to build units.

Make a subroutine script to trigger team production. Setting [S A nd].
Script name: Attack1
*** IF ***
True.
*** THEN ***
Null operation. (Does nothing.)

Make a subroutine script to trigger team attack. Setting [S A nd].
Note: This script can be used by all teams.
Script Name: Hunt
*** IF ***
True.
*** THEN ***
Team '<This Team>' begins hunting.

Make a subroutine script to RUN the first script if team is taken out. Setting [S A nd].
Script Name: RunAttack1
*** IF ***
True.
*** THEN ***
Run Subroutine 'Attack1'.

Now on the team creation page, select your enemy player and click the button to make a new team. Name this team "Attack1". Under "Production Condition" find the script you made called "Attack1". Add a small number of units, say 3 infantry. This will create the team.


On the behavior tab, in the section "On Create" select the "Hunt" script.
For the "On Destroyed", select the script "RunAttack1".

That is it! Your team will be built, then hunt and when it's taken out the team will be built again.

Copy the script Attack1 and RunAttack1 and edit the numbers for making more teams. Then go to the team section again and copy the first team and edit to use appropriate scripts of each team.

Note: Only build teams with units that can be built in the buildings you've placed for the player. You can mix factions in teams if the buildings are placed for this player.
Keep teams small but make more of them.

For AOD Style Spawning
For spawning make your teams first in the team section. Then in the script section, under Team/Create, use Spawn a Reinforcement team. Select the team you made. You would make a timer script something like this. Adjust timing and add more as needed.
*** IF ***
True.
*** THEN ***
Set timer 'Wave1' to expire in 60.00 seconds.
Set timer 'Wave2' to expire in 120.00 seconds.
Set timer 'Wave3' to expire in 360.00 seconds.
Set timer 'Wave4' to expire in 500.00 seconds.
Set timer 'Wave5' to expire in 600.00 seconds.
Set timer 'Wave6' to expire in 720.00 seconds.

Then you just have your wave scripts like this.
*** IF ***
Timer 'Wave1' has expired.
*** THEN ***
Spawn an instance of Team 'Wave1' at Waypoint 'WaveSpawn1'.

Note: Like you did for building teams, make a Hunt or follow pathway Subroutine script that can be used by all teams. Setting [S A nd].
Select this script for the "On Create" action for each team.

HAVE FUN!

Edited by user Tuesday, July 7, 2009 9:08:03 PM(UTC)  | Reason: Not specified

thanks 1 user thanked Drummin for this useful post.
SUPER-G on 8/23/2012(UTC)
Sponsor
Offline DeVeLiNe  
#2 Posted : Tuesday, July 7, 2009 8:46:09 PM(UTC)
DeVeLiNe
Captain
Joined: 8/11/2008(UTC)
Posts: 61
Location: Israel

Great guide thank you very much :]

Edited by user Tuesday, July 7, 2009 9:37:25 PM(UTC)  | Reason: Not specified

A modder in training :P
Offline General Pao  
#3 Posted : Monday, October 5, 2009 5:24:56 PM(UTC)
General Pao
Private
Joined: 7/16/2009(UTC)
Posts: 33
Location: In the Philipines, Angono Rizal

Great tutorial! helps me a lot 0_0
Offline Matthew9170  
#4 Posted : Monday, October 19, 2009 4:14:26 PM(UTC)
Matthew9170
Major
Joined: 10/3/2008(UTC)
Posts: 188
Location: USA

you lost me

can u make it a little simpler
Wow, it has been a long time since I was last here.
Offline Matthew9170  
#5 Posted : Wednesday, October 21, 2009 3:15:29 PM(UTC)
Matthew9170
Major
Joined: 10/3/2008(UTC)
Posts: 188
Location: USA

ooooooo can you make a video of it so i can uderstand it a bit more
Wow, it has been a long time since I was last here.
Offline towns1  
#6 Posted : Monday, November 2, 2009 9:52:03 PM(UTC)
towns1
Captain
Joined: 2/18/2009(UTC)
Posts: 53
Location: denmark

When i build a Computer Team GLA

then when they build unis then they Delay 10 second before they begin to build every units
how can i do so they build whithout delay?
Offline Drummin  
#7 Posted : Friday, July 9, 2010 11:05:06 PM(UTC)
Drummin
General
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffMaps Staff: Maps Staff MemberRed Alert Staff: Red Alert Staff Member
Joined: 12/11/2007(UTC)
Posts: 1,622
Location: CA, USA

Was thanked: 16 time(s) in 15 post(s)
Try adding the "Run Subroutine" script line after giving the player cash like this.
Script Name: GLASetup
Code:
*** IF ***
True.
*** THEN ***
Player 'GLAEnemy' gets $ 1000000
Player 'GLAEnemy' is able to build units.
Run Subroutine 'Attack1'.
Offline DeVeLiNe  
#8 Posted : Sunday, July 11, 2010 12:55:24 AM(UTC)
DeVeLiNe
Captain
Joined: 8/11/2008(UTC)
Posts: 61
Location: Israel

great guide helped me allot :]
A modder in training :P
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.