@rogercooper said in Change maxBuiltPerPlayer by a trigger:
@victoryfirst Could this be used to change any value on an unit attachment? Potentially very useful.
For example, in Axis & Allies: Pacific, Commonwealth and American units have a defense strength of one on the first turn. They could start 1 and then be upgraded to their regular values at the end of the Japanese turn.
Yes, definitely yes. Just tried this in my improved module for Axis and Allies D-Day.
The module was already finished for some time but I thought it would be a good idea to add some various game options to help balance the game. The_Good_Captain made a series on A&A D-Day where he recommended some balancing changes. There was one he didn't mention in his video but did consider and that was: "Allied Bombers attack at 4 instead of 3". The game is too pro-German and having this as an optional rule helps out the Allies.
<attachment name="BombersAttackAt4" attachTo="USA-UK" javaClass="RulesAttachment" type="player">
<option name="gameProperty" value="Allied Bombers Attack At 4"/>
</attachment>
<attachment name="triggerAttachmentBombersAttackAt4" attachTo="USA-UK" javaClass="TriggerAttachment" type="player">
<option name="conditions" value="BombersAttackAt4"/>
<option name="unitType" value="UKbomber:USAbomber"/>
<option name="unitAttachmentName" value="UnitAttachment" count="unitAttachment"/>
<option name="unitProperty" value="attack" count="4"/>
<option name="uses" value="1"/>
<option name="when" value="before:ParaSurpriseBattle"/>
</attachment>
87fac4a0-a27c-4711-9aa7-d84957427a36-image.png
There you have it! Very useful indeed.