Project Perfect Mod


Site Menu

News & Forums

Forum

Site News

All News

Submit News


Info & Services

About PPM

PPM FAQ

Project Hosting

Community Features

Privacy Policy

Report a Bug

Become Affiliates

Credits


PPM: Final Dawn


C&C Editing Tools


Game Expansion Projects

HyperPatch

Download HyperPatch 0.2

Forum


Extended Tiberian Sun

Site

Download ETS 3.40

Forum


TS Projects


RA2 Projects

D-Day

Site

ModDB Profile

Download Public Beta 3.6

Forums at PPM

Forums at Revora


Reign Of Steel

ModDB Profile

Download Reign Of Steel

Forum


Star Strike

Site

Download 0.6x TB2

Forum


Beowulf's Rules

Site And Download

ModDB Profile (RA2)

ModDB Profile (YR)

Forum


C&C Rewire

ModDB Profile

Download

Forum


EASB Hour

ModDB Profile

Download EASB Hour Alpha

Forum


Zombie Mod

Site

Download 0.2 Public Alpha


Colony Wars

Download Public Beta 1

Forum


CnC: Final War

Forum


VenomRage

Forum


Cold War

Forum


Red Alert 1.5

About

Forum


Red Alert X

Forum


YR: The Generals

Forum


Echilon: The War for Terra Nova

Forum


Eternal Armageddon

Forum


Tiberian Dawn: Renegade

Forum


Generals Projects

Invasion Confirmed

Site

Images

ModDB Profile

Download Mod

Forum


Frontline Chaos

ModDB Profile

Forum


Tiberium Wars Projects

Tiberium Essence

Images

ModDB Profile

Download Mod

Forum


Crossfire

ModDB Profile

Download Demo

Forum


Red Alert 3 Projects

The War Factory

ModDB Profile

Forum


Other Projects

C&C Meets Star Wars

Site


Wintermaul Wars X

Download 0.84X

Download 0.85X Beta

Forum


Tiberian Sun


Red Alert 2


Generals

Forums

Editing

Mapping

Tutorials


Map Archive

View All Maps

Submit A Map


Zero Hour Screenshots

USA Campaign

China Campaign

GLA Campaign: Part 1

GLA Campaign: Part 2

Miscelanous Info


Starting Guides

Newbie Guide in Modding

Working with .BIG Files


Graphics Tutorials

Adding new Cameos

Modelling Tutorial

Working with RenX

Finding Renegade Models


INI Editing Tutorials

Adding a New Unit

Adding Starting Units

Adding Playable Factions

Adding Buttons

Upgrades #1

Upgrades #2

Unlockable Units w/ Gen. Points

Nanocores and MCVs

Teleporting & Jumping Units

Editing the AI


Misc. Tutorials

Playing Custom Maps

Adding Ingame Text


Download

Zero Hour Ini Files


Tiberium Wars


Red Alert 3


Tiberian Twilight

News Tracker
Select a topic:  


Headlines


June 17, 2013 18:33 Aro
Voxelgeddon Voxel Competition 2013
June 10, 2013 21:23 Dutchygamer
Command and Conquer E3 Trailer
May 22, 2013 16:14 Banshee
Cartographer's Call Competition III resu...
May 22, 2013 06:13 Banshee
Miicrotransactions and Modding
May 21, 2013 15:52 Banshee
Cartographer's Call Competition III stat...
May 20, 2013 04:34 Banshee
New Tiberian Sun: Reborn trailer.
May 17, 2013 01:19 Banshee
Today's blockbuster: C&C Legos: Seas...
May 14, 2013 23:54 Banshee
PPM Hosted Mod News (covering early may)

Featured Mod

Featured Content


(**) Editing the AI (ZH)
June 01, 2007 - 11:53


This tutorial will teach you how to edit the AI in Generals Zero Hour. I especially say Zero Hour, because Generals uses a different way of AI scripting.

Some generals information:
Generals (and Zero Hour) AI attack in waves. These are noted from 1 to 5. Wave 1 attacks are earlier in the game then wave 5 attacks. Wave 5 attacks always have much more and stronger units in them the wave 1 attacks. Easy AI only goes until wave 3. Medium goes to wave 4. Hard goes to wave 5.
Most teams use 3 paths that are in (almost) each map. These are CenterPath, FlankPath and BackdoorPath. Center is the most direct way from his base to his enemy's base. Flank is mostly from the side, and Backdoor is mostly from the other side, or from behind. If you play a map without these 3 paths, they always go directly to the enemy's base.

What do you need:
-FinalBig or XCC Mixer: these are to extract the files you need.
-Generals Zero Hour WorldBuilder (standard with each game): this is used for editing the AI.
-SkirmishScripts.SCB: this is the magic file you are going to edit.

Got everything? Ok, let's start Razz
First you need to find the SkirmishScripts in your Zero Hour directory. If it is correct, you will find it in YourZHDirectory/Data/Script.
NOTE: Always make a backup of your original SkirmishScripts!

Now you have found it, start up WorldBuilder. After it is loaded, go to Edit-->Edit Player List. After this is opened, make sure there aren't any players in the list. Then you click on the button "Add Skirmish Players". Now the list is filled with all armies from the game. Click OK so you close the window.

Go to Edit-->Scripts. Now you will see a window with some buttons and folders with all armies in Generals Zero Hour. Before we are going to import the SkirmishScripts, de-select the "Auto Verify" option. This make importing and exporting scripts a lot faster.

Click on the "Import" button to import your script file. Search for your SkirmishScripts, and import it. This may take a while. If you have done it correct, you now can expand each folder into many sub-folders. It may look very confusing and overwhelming, but it isn't that difficult when you understand it. And above all, we not are going to edit those in this tutorial.

Click OK to close the window. Now go to Edit-->Edit Teams. Now a new window will open. In the left collum you have all armies. In the right column you have nothing (yet). This is the window where you can edit all the teams the AI builds (attack teams, dozers, supply units, etc.).

Click in the left column on the army you want to edit. Now the right column will be filled with all the teams this army can (and will) build. The teams the AI uses to attack you are like this:

AAA B CCC Wave DDD E

I will explain this code:
AAA = the army name (IE, America is USA, GLA is GLA, China is China)
B = the AI level that uses this attack (E is easy, M is medium, H is hard)
CCC = the number of the wave (as explained above)
DDD = the type of attack (mostly it says tanks or artillery)
E = the path the team takes to your base (C is center, F is flank, B is backdoor)

NOTE: you don't have to stick to this code, but it is useful so you can see which team is in which wave and uses which path.

Double-click on the team you want to edit, and a new window will pop up. You will see a lot of things you can edit. For the this tutorial, we only will edit middle part of this window, which is also the most important.

You can see a few columns which are called "Min", "Max" and "Unit Type". Min is minimal, and it says the minimal amount of units to be build of this type in this team. Max is the same as min, only it is the maximum amount of units. Unit Type is where you can select the type of unit to be build.

For each unit you must set it's Min, Max and Unit Type. As you can see, you can have a max of 7 units in 1 team. This is well enough, because else the teams would get to large. Edit the teams you want, and to close the Teams window, click OK, or all your work will be lost.

Go to Edit-->Scripts again. It may take a while to load this, so be patient. Once it is loaded, click on the "Export Script(s)" button.
A new window will pop up.
NOTE: Select the "Export all scripts" option, or only the selected scripts will be exported!
You may notice that the OK button is missing. This is EA's fault, but if you look good, you can see the top of the button on the bottom of the window. Click on it to export your scripts.

Now select your original SkirmishScripts, and click Save or OK. Now close WorldBuilder, start up Generals Zero Hour, select a skirmish map and the AI level you changed teams from, and test it Smile

This was it all. Editing the AI in Generals Zero Hour is a bit more complicated the in RA2/TS, but when you know how to script a bit, you can do a lot of nice things.

I will create a tutorial about editing the base-building AI soon... Wink

Posted by Dutchygamer
Comments (6)



Project Perfect Mod Webmasters: Banshee & Sk8erkid

© Since 2000 AD Project Perfect Mod Group. All rights reserved.

Powered by phpBB © phpBB Group

"Oibles!" is a random trademark from Project Perfect Mod and Kane.
"He who loves the game, mods the game. He who mods the game, lives the game" is also a random trademark from Project Perfect Mod.
Website design by Muldrake

Login

Welcome guest.

Username:

Password:

auto login

I forgot my password

Register


Current Events

Cartographer's Call III

Contest Rules


Support Us
Donate to keep PPM online!

eXTReMe Tracker


Search

 

Advanced Search


PPM Network

Main Sites

Project Perfect Mod

PPM Mobile Site

PPM Forums

PPM Web SVN

PPM BugTracker


Resource Sites

EVA-251 Modding

CnC Relived

Zomba Production

MadHQ GFX Dump

MadHQ's Map Shack

Dead Dragon Mods (Archive)


Hosted Mod Sites

EVA-251 Modding

Twisted Insurrection

C&C Meets Star Wars

Novus Ordo

Invasion Confirmed

The Dawn Of The Tiberium Age


Affiliates


Community Links


Official C&C Links


Community

CNC Top 101


   

Community Rotator


Hosted by

Revora Creative Network