View Single Post
Old 03-12-10, 11:32 PM   #5
Méo
Ace of the Deep
 
Join Date: Aug 2009
Location: Quebec City
Posts: 1,153
Downloads: 258
Uploads: 0
Default

Quote:
Originally Posted by Drifter View Post
I hope we are talking about the same files. I don't have the game installed right now, so I can't check the exact AI file location. The moddable AI files should already be in notepad form with readable text. If the files you are opening in notepad look like jibberish, they are hard-coded, and the wrong files.
It looks like this:

----

strategy SubStrategies(Sub)
{
strategies
{
Attack,
Navigate
}
}

# Attacks an enemy contact
strategy Attack(Sub)
{
precond
{
Sub:CanFire()
}
strategies
{
ShipAttack,
SubmarineAttack
}
}

strategy ShipAttack(Sub)
{
precond
{
!Sub:ContactIs(SUBMARINE)
}
strategies
{
TorpedoAttack,
CannonAttack
}
}

----

It's much longer but I didn't want to take too much space here.
Méo is offline   Reply With Quote