News:
» Current News
» Archive News
Features:
» Tutorials
» Downloads
Community:
» Forum
Random Tip:
21.Scripts in the "On Create" field in a team's template properties will only execute once. If you want your script to execute as long as the team exists, put it in the generic scripts list in the "Generic" tab.
|
» View All Tips
Site:
» Staff
» Contact Us
Affiliates:
» Atomic Wiener Dog
» CNC Reneclips
» GenDev
» Project Perfect Mod
» The Finest Hour
» Warhammer40k: DoW SDI
» YR Argentina
|
Basics of adding a new unit
Title: Basics of adding a new unit
Difficulty: Novice AI Scripter
Author(s): SDI Team
Game Type: Both Regular Generals and Zero Hour
This tutorial is for people who just quickly want to get their units ingame without focusing on the
details too much. So lets get started immediately. It works for both regular Generals and Zero Hour.
A team in World Builder is basically a template which can carry one or more units and then be given
specific behavior.
Right, open World Builder, click Edit>Player List and click the "Add Skirmish Players" button.
Then click "OK" and go to Edit>Scripts. Find the "Import Scripts" button and click it. Select your
SkirmishScripts.scb file which should be in your \Data\Scripts\ folder.
Once you have imported the scripts, click "OK" and go to Edit>Teams.
This is the teams editor where you actually get to add new units. For now we won't add your unit
to the Object List in the Script Editor, just for reasons of simplicity.
For ZH Users
Select the "SkirmishAmerica", and scroll down till you see
the "USA E 1ST Wave" team, then double click it. Under "AmericaInfantryRanger", add your new unit, set the minimum
and maximum numbers both to 1.
Click "OK" and you're done! Go to Edit>Scripts and click "Export Scripts" and export
it as the SkirmishScripts.scb again. Now if the new unit is in a factory's CommandSet, the AI will build it as soon
as the factory is built.
Note that you should test this with the Easy difficulty setting because the "E" in "USA E 1ST
Wave" means Easy.
For regular Generals Users
Click "SkirmishAmerica", find and double click the "USA D5H Tank Rush" team. Under AmericaVehicleHumvee, add your new unit
and set both the minimum and maximum numbers to 1.
Now click "OK" and go to Edit>Scripts and then "Export Scripts". Export
them as "SkirmishScripts.scb" in your Generals\Data\Scripts\ folder and fire up the game! Note that you must play on the
Brutal difficulty because the "H" in "USA D5H Tank Rush" means Hard. In WB, Hard means the hardest difficulty, instead of
Brutal. Also make sure that you have your new unit in a factory's CommandSet or else it won't be built.
That's basically it. If you feel comfortable with the first sight of scripts then you can do the other tutorials for much
more useful information.
|
|