Page 1 of 1

Event and towns within a state

Posted: Thu Dec 13, 2007 9:32 am
by Jagger
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?

Posted: Thu Dec 13, 2007 3:32 pm
by Pocus
are you sure the faction in question owns a town in LA?

Try that:

SelectRegInArea = $LA; OwnedCities;NotEnemy
PickFromRegList

Posted: Thu Dec 13, 2007 6:58 pm
by Jagger
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.