View Full Version : how can i get the enemy to build in a mission?
i am krazy
08-30-2007, 05:05 PM
yep, same mission as my last topic =) anyway, to be specific, usa found a small gla base in the north, along with some enemy renforcmets. now for my question!:hmm: how can i get lets say the ad to build mabye... 2 quads, then 4 scorps, ect...kinda like on the real missions were the enemy is building units and sending them at you and stuff...:looklive:
chaoscontrol512
08-30-2007, 07:58 PM
I'm not sure if it's proper forum etiquette to post a new thread for the same mission. Anyway, this has been posted before, but MooMan removed a bunch of old threads, and the one that answered this question was one of them. This is how you build teams:
1) Create a script that enables the AI player to build units.
2) Make a subroutine script that is active and deactivated upon success, that only has null operation. This script goes in the Condition tab for the team. Check the Execute Associated Actions button.
3) Make another subroutine that is active and not deactivated upon success. This one tells the team what to do upon completion. It goes in the On Create tab in the team window.
4)When you want the AI to begin building the team, make a script that runs the subroutine created in step two.
i am krazy
08-30-2007, 08:48 PM
k, i get it, anyway i can randomize the scripts?
chaoscontrol512
08-30-2007, 09:53 PM
Randomize the scripts? What the hell are you talking about? :\
Me Myself & Pi
08-31-2007, 12:42 PM
Do you mean get script to randomly activated? You can use a timer that will randomly choose a time to expire between to specified times.
Chaoscontrol512, your intrusions were a little flawed. (No offence.) But the AI should build teams with those instructions. But follow mine I Am Crazy their a bit more specific.
1) Create a script & use the action to enable the AI to build units. (The AI is unable to build units by default.) "Player\Build\Set a player to be able to build units." You'll also see one to build buildings, but they can be default.
2) Create a new script with a condition of when you want the AI to build the team. Also check it as "Script is Subroutine." You can uncheck "Deactivate upon Success." if you want the team to be built at different times.
3) If you want this script to do another action besides building a team then add in the action, otherwise just leave it as null operation
4) Now to the team window & select the play you want to be able to build the team & create a new team
5) Name the team & in the Condition text field, select the script subroutine you want the team to build from. If you want the script to do other action besides build a team, then check "Execute associated actions" Otherwise the other actions wont get activated.
6) Under the Priority text field, put "1" for the amount a frames to build for. It think any time will work but this is what the EA gamers did when they made their official maps.
7) Now select your team members. The team members will now build when the condition is met & it has enough money & all the prerequisites for the units are met.
8) You can do other stuff like getting the team members to hunt on create or follow a waypoint path to the enemy base. Or you tell the team to hunt when it sees the enemy. Do do this create new subroutine scripts & uncheck "Deacavate upon Success" because this script will most undoughtably be activate multiple times. Leave the condition as "True" & select the action you want the team to do. Don't select the team name in the condition, just select "<This Team>" this will be the team who activates it. That should do it?
9) Now in the "Behavior" tap in the team window, select the script subroutine in one of the text field of your choice & the script will be activated when the team does what it's about to do.
The official world builder tutorial says how to do this. Check it out: http://www.ea.com/official/cc/generals/us/worldbuilder.jsp?state=6
Would you like a set of example script? I could make them very easily make them for you once you tell me what you want.
Zancloufer27
08-31-2007, 06:43 PM
Reposted Tutorial (http://forums.cncden.com/showthread.php?p=356411#post356411)
I'll add a build list one later. And maybe after that one on making tunnels...
It's simple tbh.
vBulletin® v3.8.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.