User avatar
Posts: 4380
Joined: Sat Mar 11, 2006 12:18 am
Location: UK

Unit DB: area and altarea question

Thu Sep 15, 2011 12:15 pm

Hi folks, I know area is used to give a bonus or penalty to units depending on their location - but what of altarea?
Does it serve the same function?

If so you could limit a unit to MIDDLE_STATES and CANADA for example?

Thanks, Chris

User avatar
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Thu Sep 15, 2011 1:16 pm

Yes, this is the point, alt_ meaning "alternate" or "alternative"...FYI, in games where we have a construction module, this also serves as a designation of the areas where units can be built/ uses the same kind of logic :)

User avatar
Posts: 25487
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Fri Sep 16, 2011 1:10 pm

be cautious with area, it will only work if the model is a militia or irregular. Alt also is only used as a fall-back solution if the recruitment area is invalid, and will not be checked for the rest.

Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 2 guests