SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF2 Modding => Topic started by: Rayce on May 02, 2014, 11:17:20 AM

Title: Random Crazy Lua Question.
Post by: Rayce on May 02, 2014, 11:17:20 AM
Is it possible to use the command "ScriptCB_DoFile()" to load another mission script?
Title: Re: Random Crazy Lua Question.
Post by: SleepKiller on May 02, 2014, 04:14:30 PM
To load another mission? You want to execute a different mission script to the one currently being executed?
Title: Re: Random Crazy Lua Question.
Post by: Rayce on May 02, 2014, 04:32:07 PM
Quote from: SleepKiller on May 02, 2014, 04:14:30 PM
To load another mission? You want to execute a different mission script to the one currently being executed?
Yes in order to make changes to the second mission without needing the script. (Don't worry, this is only for personal mods)  Anyway, now that gametoast is back up, you guy can close this if you want.
Title: Re: Random Crazy Lua Question.
Post by: SleepKiller on May 02, 2014, 06:04:15 PM
Quote from: CommanderAwesome on May 02, 2014, 04:32:07 PM
Yes in order to make changes to the second mission without needing the script. (Don't worry, this is only for personal mods)
I think you can re-define functions in lua. So yeah it probably is possible, I don't know much about how SWBFII works but isn't there a function that gets executed before ScriptInit does? That's where you would want to put it probably.
Title: Re: Random Crazy Lua Question.
Post by: Rayce on May 02, 2014, 06:10:22 PM
Quote from: SleepKiller on May 02, 2014, 06:04:15 PM
I think you can re-define functions in lua. So yeah it probably is possible, I don't know much about how SWBFII works but isn't there a function that gets executed before ScriptInit does? That's where you would want to put it probably.
Maybe. (I'm good with Lua but not THAT good, still a lot of things I don't know.)

EDIT
Issue is resolved, see HERE (http://www.gametoast.com/viewtopic.php?f=27&t=30114&p=503516#p503516)
EhPortal 1.34 © 2024, WebDev