Ok. I've set all 3 AI's to Fight: 30. I also have a script attached to the lich:
begin piratelich
if ( doonce == 1 )
return
endif
if ( GetDistance Player <=256 )
Force Greeting
Messagebox "You will die!!"
set doonce to 1
StartCombat Player
endif
end
The lich's dialog pops up, and they all attack, which is what i'm looking for. The only problem is the dialog seems to keep popping up, and stays for a period of time. It also takes up too much of the screen, blocking combat. I know the doonce command isn't correct, but i'm not sure how I would place it correctly. I'd also like to have a better way to present the dialog, such as in a normal dialog box, like what you'd find when initiating dialog with an NPC. That way the player can read it, and click 'Close" to close the box and start combat.
Your script isn't running correctly, probably because you didn't declare doonce as a short variable (unless you just didn't copy that part).
Also, when you use forcegreeting you shouldn't need a messagebox, and there shouldn't be a space between force and greeting.
Assuming that you have something you want the lich to say to the player, you will want to create a dialogue and you can put the startcombat in the dialogue results box for that conversation.
Here's an example of what your script might look like:
Begin Piratelichshort doonce If ( Menumode == 1 ) Return endIf If ( doonce == 1 ) Return endIf if ( GetDistance Player <=256 ) ForceGreeting set doonce to 1endifend Piratelich