Trigger on condition if player is AI?
-
@Rolf-Larsson I was looking for a way to give AI-players a trigger related boost during the game, almost gave up to the possibility:
untill I saw Rolf's Feudal Japan 2 map, seeing a condition set on if player is AI?
So, it seems possible after all? anyone knows other examples?<attachment name="conditionAttachmentOdaNonHuman" attachTo="Oda" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player"> <option name="gameProperty" value="Oda Human Player"/> <option name="invert" value="true"/> </attachment> <attachment name="triggerAttachmentOdaNonHuman1" attachTo="Oda" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="conditions" value="conditionAttachmentOdaNonHuman:conditionAttachmentAIBonus"/> <option name="chance" value="1:10"/> <option name="purchase" value="Ashigaru" count="1"/> <option name="when" value="before:odaPurchase"/> </attachment> <property name="Oda Human Player" value="false" editable="true"> <boolean/> </property>
-
You need to set the information in the game options, it does not automatically determine AI status.