Report article RSS Feed How to make the AI build Units in C&C Generals World Builder

You know how in the C&C Generals campaigns the mission creators got the enemy to build units and structures? well, Im gonna teach you how to do that today. Pictures Included to make it easy!

Posted by DrDanthrax99 on Jan 2nd, 2009
Intermediate Mapping/Technical.

First off, start Worldbuilder.
If you have never used it before or even played the game, don't read any further.

For this, I extracted the map Alpine Assault and am making a SP mission with it, so I'm gonna teach you how to make the GLA build attacks, but the process is the same for the USA and China as well, just select diffrent sides and diffrent units.

IMPORTANT: Make sure your AI has the preresquites required to build the unit and has enough money, or it won't work.

Ill teach you how to extract maps, in another tutorial.
Alright. Lets get going.

First, open the map, and familarize yourself with it.

Make a script that allows the AI to build units.
it should be
"Allow to build units."
that's it for that.

This is for the GLA, but the same methods apply to all factions.

Follow my instructions TO THE LETTER here.
Go to the "teams menu" and select "SkirmishGLA"
and click "Add New Team"
Click the three dot button next to a slot.
Click "GLA"
Select "GLAVehicleScorpion"

Now put "3" in the min and max fields.
Your done with the team for now.

Now go into "Scripts"
Click "New Script\"
Click off "Deactivate on Success"
and click on "Script is Subroutine."
this is the script that will make the team attack once it is made completly.
Leave the condition as it is.
Now, edit "Action if True"
edit the action to "Set team to attack another team"
and click on the links.
make them say:
"Team  begin attack on TeamSkirmishAmerica"
Your done with the action.
Should look like this:

Now the build script.

Click on new script
and click "Script is Subroutine" again.

Now, you can leave the condition as it is or change to when you want it to build the team.
Now, in the action menu, click
"Build a team"
edit it to say "Build Team "
If you did it right it should look like this:

Now that's done, go back to the "Teams" menu and go back to the team you made earlier.
We named the script for building the team "Built" and action afte built, "action."
Now, click in the drop-down menu for Production Condtion, click the "Built" script.
If you did it right, it should look like this:

Now go to "Behavior" and on the "On Create" dropdown menu, click the "action" script.
You're done!
Your enemy should now build units in-game.
Save your map and play it to see if you did it right.

Well, that about does it for this tut, hoped it helped.

Post comment Comments
XAttus Jan 3 2009, 4:49am says:

Nice one, I'm working with WB too, some things in this tut are very useful to me... I want to help you making tut's if you want to, just drop a PM with the deatils...

+1 vote     reply to comment
Mingming47 Jan 3 2009, 7:39am says:

Good tutorial, maybe in college I will try one.

+1 vote     reply to comment
General_Atrox Jan 3 2009, 10:55am says:

Awesome! Please keep up the great work and help out the ZH community :)

+1 vote     reply to comment
agostinho Jan 17 2009, 1:32pm says:

how did you get the official maps to the world buider?

+1 vote     reply to comment
dannywingate Jan 17 2009, 3:44pm says:

a video of this would be best. i lose track of what you are saying. VIDEO PLEASE!

+1 vote     reply to comment
dannywingate Jan 17 2009, 7:25pm says:

My computer guys dont move in the skirmish map that i made

+1 vote     reply to comment
RTSOverlord Feb 13 2009, 6:27pm says:

I was wondering how to accomplish this, thanks for the help

+1 vote     reply to comment
sonny07 Feb 23 2009, 8:59am says:

ah.. boong lo semua

+1 vote     reply to comment
█Black/Brunez█ Apr 8 2009, 2:15pm says:

This is a good Tutorial, thanks!

+1 vote     reply to comment
aidas2 Apr 19 2009, 5:13am says:

There's is an easier way.

+1 vote     reply to comment
DrDanthrax99 Apr 30 2009, 1:02pm says:

And that is what? downloding AI scripts? This is how to make it custom to yourself.

+1 vote     reply to comment
aidas2 May 17 2009, 5:25am replied:

Check out my tutorial it doesnt hawe any scripting and Ai works fine

+1 vote     reply to comment
SveaRikeSoldier Nov 7 2010, 6:38am replied:

He means how to do MISSIONS! Stupid! You cannot make missions without scripts! It is impossible

+1 vote     reply to comment
Chrissie_McC Jun 22 2009, 11:11am says:

just got to say, about 2 years ago i wondered how to do this and i tried and i tried and couldn't find out. BLODDY H... THANKS DUDE!

+1 vote     reply to comment
DrDanthrax99 Jul 19 2009, 12:26am says:

Somthing else to take note of, guys and gals. Make sure you add a script that has "AI is able to build units" as one of the actions.

+1 vote     reply to comment
madiba127 Dec 12 2009, 8:17pm says:

so everyone knows aidas2 tutorial is for MULTIPLAYER not single player missions as this one is.

+1 vote     reply to comment
liamidas Apr 18 2010, 5:19am says:

where do you find the mod

+1 vote     reply to comment
ShadowPhantom May 20 2010, 6:32pm says:

Thanks, I need this A LOT.

+1 vote     reply to comment
Flippons Jun 21 2010, 9:19am says:

Thanks for this tutorial, I got sick of trying to get the AI to DO something useful...

+1 vote     reply to comment
calvin1007 Jul 7 2010, 7:09pm says:

i know this might be a stupid question but how do you put a player starting point on there i have been at it forever

+1 vote     reply to comment
Flippons Aug 18 2010, 8:35am replied:

I think what you need to do, calvin1007, is to add a waypoint and choose the predefined name "Player_1_Start", etc.

+1 vote     reply to comment
csimami Feb 6 2011, 5:17am says:

thx dude ^_^

+1 vote     reply to comment
JoshZemlinsky Apr 28 2011, 4:20pm says:

Nice but do you think you can be alittle more specific next time? I mean i hardly understood what i was supposed to do. But after all it didnt work. I wonder if it's something else, or what ever it might be.

+1 vote     reply to comment
Danvern May 30 2011, 8:57pm says:

What's the category of "AI is able to build units"

+1 vote     reply to comment
tria1999 Feb 28 2012, 9:41am says:

It is quite simple: just watch
(it is not mine),do whatever it says about areas and player editing and then make an area which includes the whole map and name it "SkirmishWorld".

+1 vote     reply to comment
tria1999 Mar 1 2012, 1:26pm says:

Oh, and do not make front1 and front2 waypoint paths

+1 vote     reply to comment
Guest Dec 11 2012, 7:20am says:

This comment is currently awaiting admin approval, join now to view.

Maxosaure Jan 7 2013, 12:23pm says:

Bonjour ! Cette méthode fonctionnerait elle pour C&c Europe qui est un mod à l'abandon et qui n'a pas d'IA ? Merci

+1 vote     reply to comment
Maxosaure Jan 7 2013, 2:10pm says:

Hello ! this technique work with cnc Europe ? a mod abandonned without AI ... i will maybe test this ! thx

+1 vote     reply to comment
JuanDela_Cruz Sep 27 2013, 11:21am says:

where do i have to put my map?

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Report Abuse
Report article
Related Games
C&C Generals: Zero Hour
C&C Generals: Zero Hour Single & Multiplayer Real Time Strategy
C&C: Generals
C&C: Generals Single & Multiplayer Real Time Strategy
Related Engines
SAGE (Strategy Action Game Engine)
SAGE (Strategy Action Game Engine) Proprietary Released Jun 14, 2001
Related Groups
Electronic Arts
Electronic Arts Developer & Publisher