SDI title
 

 
  News:
  » Current News
  » Archive News

  Features:
  » Tutorials
  » Downloads

  Community:
  » Forum




  Random Tip:
19.You can add up to 14 players in World Builder. Download the 16 player script in the download section to get another 2 players. If you need another one you can move all scripts in the "PlyrCivilian" folder to the neutral folder and remove the civilian player.
  » 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.








SDI
SDI is part of the Revora Creative Network.
Orange Block design created by Detail © 2004 Revora Creative Network.
Content © Revora Creative Network 2004 - 2008