<Var/String> = The formatting you wish to use for your message.
<Value1 - 5> = The value(s) to be inserted into your message.
Formats and writes a message to the player's logbook.
Formatting is performed the same as for the sprintf instruction.
Example:
$station.credits = $station get money
$station.credits.string = convert number $station.credits to string
$station.name = $station get name
$station.sector = $station get sector
write to player logbook: printf: fmt = 'Your Station, %s, in sector %s, has %scr in its account.' , $station.name, $station.sector, $station.credits.string, null, null
Each time %s is encountered, the corresponding <Value> is inserted into the message and the the compiled message is printed to the player logbook.
The resulting message may look something like this,
'Your Station, Your Solar Power Plant XL alpha, in sector The Wall, has 2,343,548cr in its account.'
Command Location:
- »» Logbook Commands
- write to player logbook: printf: fmt=<Var/String>, <Value>, <Value>, <Value>, <Value>, <Value>