Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Calin Leafshade on Wed 19/01/2011 15:09:54

Title: The Export Keyword.
Post by: Calin Leafshade on Wed 19/01/2011 15:09:54
Is there any rationale for using the export keyword now that the global variables pane has been introduced? Either technical or organisational

Title: Re: The Export Keyword.
Post by: Khris on Wed 19/01/2011 15:46:02
If I'm not mistaken you still need export to create global pointers and arrays.
Title: Re: The Export Keyword.
Post by: Denzil Quixode on Wed 19/01/2011 16:56:17
You also need it for script modules that you'd like to be able to easily export and import as self-contained files.
Title: Re: The Export Keyword.
Post by: RickJ on Wed 19/01/2011 18:18:11
Most programmers prefer to everything in the source files rater than in some squirrelly dialog box / unreadable binary file thingy.   Just saying...
Title: Re: The Export Keyword.
Post by: Gilbert on Thu 20/01/2011 01:36:19
In addition, if you want some variables to be shared only among a certain number of rooms you can import these variables in these rooms' scripts, instead of the header. This keeps things organised and would purposely make other rooms not able to access these variables. This of course, is not important to most users and they probably find it easier to use the dialog boxes.
Title: Re: The Export Keyword.
Post by: Calin Leafshade on Thu 20/01/2011 01:39:49
thanks for the input guys. Very helpful.