Demonstrates a few key concepts with Freelancer's thn script files using lua 3.2 to do some clever things. All scripts are annotated.
A series of proof of concept thn scripts for the game Freelancer. A github repository with further documentation can be found here.
- li_01_cityscape_ambi_day_01.thn - It only rains on Manhattan after 14:25 (The game uses your system time.) To see this in action, simply adjust the time values, then reload the script across your chosen time by returning to a menu or undocking and re-docking.
- li_01_cityscape_ambi_day_01.thn - This script also shows how it is possible to output variables from a thn script into a .txt file, as well as input them. Both files, test_input.txt and test_output.txt can be found in the EXE folder.
Please feel free to use any of these as the basis for your own mod. They are intended as a proof of concept and teaching tool.