By request from Muwuum I've added a few more lua methods:
string getSystemMacroValue(string key)
string getPlayerName(int factionIndex);
The first function will be expanded as time goes on, but for now it allows you to get the path to the loaded scenario, example:
dofile(getSystemMacroValue("$SCENARIO_PATH") .. "startup.lua")
The second returns the playername for the given faction index example:
getPlayerName(0)
would return the playername for player in the first faction. This would be useful for network scenarios. This is in svn and would be included in the next release.
Thanks