User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Includes

Sat Mar 22, 2008 2:07 pm

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?
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]
[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]

[CENTER]Rules for new members[/CENTER]
[CENTER]Forum Rules[/CENTER]

[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

User avatar
Primasprit
Posts: 1614
Joined: Mon Jun 19, 2006 7:44 pm
Location: Germany

Sat Mar 22, 2008 2:12 pm

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

User avatar
Jabberwock
Posts: 2204
Joined: Thu May 31, 2007 12:12 am
Location: Weymouth, MA
Contact: ICQ

Sat Mar 22, 2008 8:29 pm

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.
[color="DimGray"] You deserve to be spanked[/color]

Image

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 9 guests