FlyDays
Mortal
posted 02 August 2008 03:55 AM EDT (US)
I found those from the xscript Reference book, But I've never actually seen anyone used this.
Can anyone give me some example how to use this.
(I am planning to make a ai file loader and I think those lines may help)
void aiSet( string filename, int playerID ): Sets playerID's AI to the given filename.
aiBreakpointSet( int playerID, string filename, int lineNumber, bool on ): Sets a breakpoint.
aiBreakpointGo( int playerID ): Restart XS execution after the current breakpoint.
PS: when I typed aiSet("admiral.xs",1), my computer froze and the game broke down,seemed I have used it wrongly.
FlyDays
Mortal
posted 02 August 2008 08:14 PM
EDT (US)
2 / 2
Thanks invent00r, I will not try using aiset any more, I will write a plug in to rewrite the user.cfg file or xml in order to chose an ai randomly. wish to see your ai script tutorial coming sooner, you and Mythic_Freak must have been working hard.