QuoteAlso, should definitions go before the game start function, and is it nessesary to end them in a similar way to how ags automatically ends its functions e.g. #sectionend.
If you mean custom functions, they have to be placed before the code where they are called. They don't have to be enclosed by #section definitions.