I'm not sure if it's supposed to be translated in this way because the line is flagged with SyntaxError: Unexpected token ':'. I'm not familiar with setting a function to a variable, though, so I'm not sure what the issue is or if this segment needs to be moved to another script.
After converting my game from Q5 to QJS, my Start script effectively became the following within settings.js:
settings.setup = script:function() { [my startup code] }
I'm not sure if it's supposed to be translated in this way because the line is flagged with
SyntaxError: Unexpected token ':'
. I'm not familiar with setting a function to a variable, though, so I'm not sure what the issue is or if this segment needs to be moved to another script.