Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

Event and towns within a state

Thu Dec 13, 2007 9:32 am

When I use this set of conditions within an event, it works. Units will appear at a randomly selected region within the state which is not enemy controlled.

SelectRegInArea = $LA
PickFromRegList = NotEnemy


But when I add "OwnedCities", the event does not work. The unit will not appear at all when I want the unit to appear in a friendly controlled level one or greater town within LA.

SelectRegInArea = $LA; OwnedCities
PickFromRegList = NotEnemy


According to the script report, I have to designate regions:

Line 2993: SelectRegInArea, no region selected
Line 2994: [Warning] Pick From Region List: No region in the pick list.
Line 2996: SelectFactions, 1 Faction selected: United States of America
Line 3004: [REPORTING] ApplyCreateGroup command, no region selected
Line 3007: [Warning] ApplyCreateUnit command, no group selected


Yet I have found other events which use the "OwnedCity" command which don't use a list of regions.

Basically I want units to appear within any level 1 or greater town within a state which are not controlled by the enemy without having to list every level one town in the state.

Any ideas why the "OwnedCity" condition is not working-for me?

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

Thu Dec 13, 2007 3:32 pm

are you sure the faction in question owns a town in LA?

Try that:

SelectRegInArea = $LA; OwnedCities;NotEnemy
PickFromRegList
Image


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

Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

Thu Dec 13, 2007 6:58 pm

Pocus wrote:are you sure the faction in question owns a town in LA?

Try that:

SelectRegInArea = $LA; OwnedCities;NotEnemy
PickFromRegList


Thanks! Moving "NotEnemy" to the "SelectRegInArea" line works.

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 7 guests