Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: tiagocorreia on Fri 28/04/2006 12:00:06

Title: Multiple files with scripts
Post by: tiagocorreia on Fri 28/04/2006 12:00:06
Hi,

Currently there is a global script, and the rooms have also their own scripts.

Is it possible to add more files with scripts external to this ones?

I would like this, since the global script is starting to get very big.
Title: Re: Multiple files with scripts
Post by: Ashen on Fri 28/04/2006 12:18:20
You might be able to move some of it into Module scripts.
I don't think it's really necessary - if the script's big, then it'll be big however you organise it - but you might find it neater as a series of modules contaning related functions. However AFAIK some things (I think GUI Control functions and Character interactions? I remember having some problems with them, anyway) HAVE to be in the Global Script. (Although this is probably workroundable, by having the Global Script function call a Module function.)