Posted 27 July 2014 - 08:31 AM
Is that possible (and what would the code to do it be)?
As in, I say (in code and whatnot): ProgramX, run from line 32!
And it runs ProgramX, starting at line 32.
For context, I'm trying to get my Tree Farm program to resume after quitting and restarting the game, by having it save how far along it's gotten after each important step (to a separate file/value/variable etc), then using that to know what line to restart at.
I'm fairly new to CC/Lua/programming, using this mod to teach myself the basics, so sorry if I'm asking something that should be obvious.
As in, I say (in code and whatnot): ProgramX, run from line 32!
And it runs ProgramX, starting at line 32.
For context, I'm trying to get my Tree Farm program to resume after quitting and restarting the game, by having it save how far along it's gotten after each important step (to a separate file/value/variable etc), then using that to know what line to restart at.
I'm fairly new to CC/Lua/programming, using this mod to teach myself the basics, so sorry if I'm asking something that should be obvious.
Edited on 27 July 2014 - 06:41 AM