Error with maxConstructionsPerType
-
I receive the following error when loading the scenario
GameParseException: Missing property definition for option ''maxConstructionsPerType'' in attachment ''unitAttachment''
Here is my code
<attachment name="unitAttachment" attachTo="fort" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType"> <option name="defense" value="2"/> <option name="createsResourcesList" value="-1:PUs"/> <option name="hitPoints" value="2"/> <option name="isAAforCombatOnly" value="true"/> <option name="targetsAA" value="infantry:cavalry"/> <option name="maxRoundsAA" value="3"/> <option name="requiresUnits" value="infantry"/> <option name="isConstruction" value="true"/> <option name="constructionType" value="fort"/> <option name="constructionsPerTerrPerTypePerTurn" value="1"/> <option name="maxConstructionsPerType" value="5"/> </attachment>I want to limit the building of forts to 1 per turn, up to a max of 5 per territory.
Is there something wrong with my code.
-
I think the option you are looking for is "maxConstructionsPerTypePerTerr" as there no "maxConstructionsPerType".
Cheers...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login