Help with Pascal AI.

I would like some help on Artificial Intelligence for Pascal including
hopefully documents and source code with examples. I am making a game in
Pascal along the lines of Dune II, Warcraft or such and would like some
good AI routines for the game to make the computer player actually think
a bit. I have the A* algorithm for movement around the map which works
excellently, but I would appreciate some code to do with it building
units and attacking, defending and overall planning of it's actions.
Someone please help...Thanks :)