Post tutorial Report RSS 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 on - 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
XAttus - - 229 comments

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...

Reply Good karma Bad karma+1 vote
Mingming47
Mingming47 - - 174 comments

Good tutorial, maybe in college I will try one.

Reply Good karma Bad karma+1 vote
General_Atrox
General_Atrox - - 321 comments

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

Reply Good karma Bad karma+1 vote
agostinho
agostinho - - 403 comments

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

Reply Good karma Bad karma+1 vote
dannywingate
dannywingate - - 30 comments

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

Reply Good karma Bad karma+1 vote
dannywingate
dannywingate - - 30 comments

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

Reply Good karma Bad karma+1 vote
RTSOverlord
RTSOverlord - - 19 comments

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

Reply Good karma Bad karma+1 vote
sonny07
sonny07 - - 3 comments

ah.. boong lo semua
cuih...

Reply Good karma Bad karma+1 vote
ComradeRaphael
ComradeRaphael - - 81 comments

Serius mamank

Reply Good karma Bad karma+1 vote
justgoaway
justgoaway - - 8,208 comments

This is a good Tutorial, thanks!

Reply Good karma Bad karma0 votes
aidas2
aidas2 - - 3,816 comments

There's is an easier way.

Reply Good karma Bad karma+1 vote
DrDanthrax99 Author
DrDanthrax99 - - 14 comments

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

Reply Good karma+1 vote
aidas2
aidas2 - - 3,816 comments

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

Reply Good karma Bad karma+1 vote
SveaRikeSoldier
SveaRikeSoldier - - 1,625 comments

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

Reply Good karma Bad karma+2 votes
Chrissie_McC
Chrissie_McC - - 1 comments

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!

Reply Good karma Bad karma+1 vote
DrDanthrax99 Author
DrDanthrax99 - - 14 comments

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.

Reply Good karma+1 vote
Madiba127
Madiba127 - - 396 comments

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

Reply Good karma Bad karma+1 vote
liamidas
liamidas - - 6 comments

where do you find the mod

Reply Good karma Bad karma+1 vote
ShadowPhantom
ShadowPhantom - - 116 comments

Thanks, I need this A LOT.

Reply Good karma Bad karma+1 vote
Flippons
Flippons - - 14 comments

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

Reply Good karma Bad karma+1 vote
calvin1007
calvin1007 - - 63 comments

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

Reply Good karma Bad karma+1 vote
Flippons
Flippons - - 14 comments

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

Reply Good karma Bad karma+1 vote
csimami
csimami - - 41 comments

thx dude ^_^

Reply Good karma Bad karma+1 vote
JoshZemlinsky
JoshZemlinsky - - 348 comments

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.

Reply Good karma Bad karma+2 votes
Danvern
Danvern - - 7 comments

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

Reply Good karma Bad karma+1 vote
tria1999
tria1999 - - 12 comments

It is quite simple: just watch Youtube.com
(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".

Reply Good karma Bad karma+1 vote
tria1999
tria1999 - - 12 comments

Oh, and do not make front1 and front2 waypoint paths

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,545 comments

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

Maxosaure
Maxosaure - - 23 comments

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

Reply Good karma Bad karma+1 vote
Maxosaure
Maxosaure - - 23 comments

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

Reply Good karma Bad karma+1 vote
JuanDela_Cruz
JuanDela_Cruz - - 287 comments

where do i have to put my map?

Reply Good karma Bad karma+1 vote
Adriane[Deathscythe]
Adriane[Deathscythe] - - 158 comments

For Generals:
Command And Generals Generals Data (in Documents)

For Zero Hour:
Command And Generals Generals Data Zero Hour (in Documents)

Reply Good karma Bad karma+1 vote
xX[Warrior250]Xx
xX[Warrior250]Xx - - 3,666 comments

Just wanted to say that Thank you for making this, i used this tutorial for about 3 years ago when i was still a guest in Moddb, i owe you a lot Author!

Reply Good karma Bad karma+1 vote
DrDanthrax99 Author
DrDanthrax99 - - 14 comments

You're welcome. :) Just checked back in on this thing,
wow, thanks for all the positive comments guys!

Reply Good karma+1 vote
Guest
Guest - - 689,545 comments

I did exactly what was said, but not true.
Please explain more accurate or a complete video show.

Reply Good karma Bad karma+1 vote
Adriane[Deathscythe]
Adriane[Deathscythe] - - 158 comments

Well It Works Fine For Me ...

Try These One - Cnclabs.com

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,545 comments

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

Guest
Guest - - 689,545 comments

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

SHOckerLL
SHOckerLL - - 21 comments

where do i find build team?

Reply Good karma Bad karma+1 vote
elixr1
elixr1 - - 153 comments

bro can you please re tuttiral this on 2022, because I did everything that you did but it didint work, also there are many scripts that I didint see them on worldbuilder, please bro please I want you to make this tuttiral agian on 2022, im trying to make a mission but I cant, I hope you listen to me and do it :(

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: