Page 1 of 1

Includes

Posted: Sat Mar 22, 2008 2:07 pm
by lodilefty
I see Include commands in the setup section that reference the 'cities, subfactions' and such. I understand that this is common useage to get these blocks of 'common code' in at the start.

However, in some older [BoA] event files, I see
Include Eventsxx.sct
Include Indiansyy.inc

In this case, the .inc file 'looks' like a typical event script file....

Is there any advantage/disadvantage to using "inc" vs "sct" files as 'common' references to include in Events?

Posted: Sat Mar 22, 2008 2:12 pm
by Primasprit
I don't think that the file extension make any difference. The include command does nothing but to virtually copy-paste the code of the included file into the one that contains the include command. The advantage using the .sct extension is that you instantly see that the file is an event file.

Cheers
Norbert

Posted: Sat Mar 22, 2008 8:29 pm
by Jabberwock
Primasprit wrote:The advantage using the .sct extension is that you instantly see that the file is an event file.


The disadvantage is that some systems think it is a Windows Scripting file, which can be a little confusing, until you set this extension to always be opened by notepad.