Changing a productionFrontier
-
Map uses a single Production Frontier for all players. This is what I have:
<attachment name="TransportC7" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="gameProperty" value="Transport Cost 7"/>
</attachment><attachment name="triggerAttachment_TransportCost7" attachTo="Russians" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="trigger" value="TransportC7"/> <option name="productionRule" value="frontierRules:-buyTransport"/> <option name="productionRule" value="frontierRules:buyTransportC7"/> <option name="when" value="before:russianPurchase"/> <option name="uses" value="1"/> </attachment>Unfortunately it's not working. I thought I remember seeing this done before but I can't find it. I don't want to give everybody their own production if I don't have to.
Anyone care to clue me in ?

Thanks
-
Second line should be
<option name="conditions" value="TransportC7"/>right? -
Hi Michael thanks for the reply. Yea it should be but trigger will still work. Anyway I think I need to give everyone their own production. I just thought I remembered seeing a game a few years ago that didn't do it that way.
-
@beelee check the name of your <productionFrontier> it might be something like 'production'.
In the line :
<option name="productionRule" value="frontierRules:-buyTransport"/>
'frontierRules' is the wrong value. Change it to the <productionFrontier> name.Hope this helps.
Cheers...
-
@wc_sumpton
Heh heh
Thanks again for bailing me out. I was getting ready to dive in on separate for everyone 
-
XOB says:
An option withintriggerAttachment
Parameters:value: A colon separated pair, Format: 'productionFrontier:productionRule'
Adds or removes the productionRule at beginning of the purchase phase.
Prefix with '-' to remove the productionRule.
Note: There is a productionRule element under production.I have:
<productionFrontier name="productionG">
<frontierRules name="buyParatroopers"/>Now I need a trigger that removes buyParatroopers
My attempt doesn't work:
..
<attachment name="triggerAttachmentGHC" attachTo="Germans" javaClass="TriggerAttachment" type="player">
<option name="when" value="after:germanEndTurn"/>
<option name="uses" value="1"/>
<option name="trigger" value="conditionAttachmentGHC"/>
<option name="productionRule" value="productionFrontier:-buyParatroopers"/>
</attachment>what is the solution?
-
The 'productionFrontier' name is "productionG" so to remove "buyParatroopers" the line should read:
<option name="productionRule" value="productionG:-buyParatroopers"/>Cheers...
-
That's it. Now it works. Thx
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