Syntax: xtern <command...>

Files modified: xterncmd.ext

Since: PHost 1.0

The xtern command can be used to give commands to add-on programs. Much like the other commands are processed by PHost, xtern commands can be processed by add-ons who wish to do that.

This command will simply write its parameters to the file xterncmd.ext in the game directory, preceded by your player number. For example, when you are player 3, and you write the command

xtern buy a vowel

PHost will write the line

3: buy a vowel

to xterncmd.ext.

When the first word of the command ends with a colon, you can also omit the xtern. That is, the following two are equivalent:

xtern mfq: keep 3
mfq: keep 3

The set of available commands depends on the add-ons running in the game. This command will never return an error. PHost can not know whether there's an add-on which evaluates a particular command.

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.