I haven't had time to test this so please try this. If it's not working please post your compile log as I added some debug lines in it as well.
Make sure you have this file installed too:
Needs Testing - Empty dialogue screen with enemy captain | PiratesAhoy!
Place in:
..\PROGRAM\Loc_ai
Make sure you have this file installed too:
Needs Testing - Empty dialogue screen with enemy captain | PiratesAhoy!
Place in:
..\PROGRAM\Loc_ai