my ai experience is pretty limited but i would consider using a finite state machine. its a bit difficult to explain but ive looked for a simple article on the subject and cant find one so here goes:
lets take the example of a guy looking for gold in a maze, there are a few things he can do, he can
a) wonder randomly
b) go to a location he's already been to
c) wonder systematically(turn right continuously, etc)
d) etc...
these are the different states the ai can be in
a finite state machine is nothing more than a finite set of states (3 in this example) and some rules that dictate switching between them
so here are a simplistic set of rules
1 if see gold - get and goto exit
2 explore randomly
slightly better rules
1 if see gold - get and goto exit
2 if in new location - explore randomly
3 goto unexplored location
so basically you need to come up with some simple things your ai can do -
chase ship
patrol
run away
then come up with some rules to choose going from one state to another
if patrol and see ship then chase ship
if chase ship and ship bigger than you then run away
...
...
you could try looking at some of the ai articles on
www.gamedev.net