- Dec 26, 2005
I've added a log trigger and a log effect to help with debugging scripts. I'm quoting a post I did in another thread with example usage.
There's no good reason why it doesn't exist. I've added a trigger and an effect that has the same syntax:
Which would print "[09:23:04][effect_impl.cpp:16662]: [2200.1.1] Log command triggered from effect in file: events/colony_events.txt line: 2283. My log message. Something happened for Earth." as an output to the game.log file. Do note that the game.log file is wiped every time you start the game.Code:
log = "My log message. Something happened for [This.GetName]."
I think most of the localisation functions should be available for the output.