View Full Version : ok just a few easy problems now.
Highdroponics
05-09-2007, 09:14 PM
i need to know how to make pre-built upgrades(flash bangs for the rangers), music, and to get the AI to begin building units and collecting supplies, they already attack, garrison, and guard certain areas on the map so i got that down.
this is part of a mission map if the info is needed.
Me Myself & Pi
05-09-2007, 10:44 PM
Well, whenever a official map has pre built upgrades they use a action at game start: "Unit\CommandButton\Use commandbutton ability." But before using this action, name your barracks (if you don't want the humen player to start off with a barrack, put it on the border.) Now select the barracks' name in the action. (You won't be able to select a command button until you select a name unit.) Click on "Ability '???'" you'll see a list of the eight command buttons for the barracks. Select: "Command_UpgradeAmericaRangeFlashBangs" After 1 second, set the players money.
For music, use the condition: "Multimedia\Music\Play a music track." When I made an AOD map awhile back, I added music. My techique for getting the right tracks for my map was trial & error. I created a bunch of scripts that played the USA music in alfabeticle order. Each music track would get triggered when a humvee would enter an area. Then I outlined the areas with trees so I could see the areas on the map. I wrote down the track on a peice of paper. Then I played the game. I crossed out any tracks that I didn't like on my paper. Then I played those tracks on my map!
Just use the same scripts for the flash bangs to get the AI to build supply collectors. Just name the supply center & select the command button for building the supply collector. Copy this action if you want to AI to build more then just one. The amount of time you copy it, the more the AI will build.
Highdroponics
05-10-2007, 12:29 AM
yeah i did that they still wont create units for some reason, and also i need them to build tanks/infantry as well. i have it set that after the beginning timer ends which is after 1 second the enemy armies begin to build units...that didnt work either, the only units built are the units that come with the supply centers, which is only 1 unit.
the music plays and got the upgrades working for me.
EDIT: nevermind i got the AI to build, i could just make an endless list of units for the AI to create as well right?
Me Myself & Pi
05-10-2007, 08:34 AM
Well, the best way to get the AI to build, is with teams. Go ahead read about getting the AI to build teams in the official world builder tut. I don't have any expirense with AI building team. But I do know how to spawn them. After they're on the map, you can treat a team just like a unit with almost the same scripts. They're located in the "Teams" folder in the conditions or actions list. After you read up about team, let me know if you have any more problems.
Here's a link to that tut if you don't have it yet:
http://www.generalsmaps.net/worldbuilder.php
vBulletin® v3.8.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.