NEWBIE conditions-trigger question

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

NEWBIE conditions-trigger question

m3tan
The answer is probably pretty simple but I don't have a firm grasp on how conditions and triggers interact yet. I have two triggers, Swedish_Iron_Ore_Norwegian_Corridor and Swedish_Iron_Ore_Baltic_Route for awarding 3 steel resources to Germany. I want the Norwegian_Corridor to only activate on Winter turns, say turn 2,6,10 etc..., and the Baltic_Route for all non-Winter turns 1,3,4,5,7,8,9 etc... These are my conditions and triggers:

                                <attatchment name="triggerAttachment_Swedish_Iron_Ore_Norwegian_Corridor" attatchTo="Germans" javaClass="games.strategy.triplea.attatchments.TriggerAttachment" type="player">
                                <option name="trigger" value="conditionAttachmentGermansNorwayNotEnemy:conditionAttachmentGermansSwedenNotEnemy"/>
                                        <option name="conditionType" value="AND"/>
                                        <option name="resource" value="steel"/>
                                        <option name="resourceCount" value="3"/>
                 </attatchment>

                                <attatchment name="triggerAttachment_Swedish_Iron_Ore_Baltic_Route" attatchTo="Germans" javaClass="games.strategy.triplea.attatchments.TriggerAttachment" type="player">
                                <option name="trigger" value="conditionAttachmentGermansControlBaltic:conditionAttachmentGermansSwedenNotEnemy"/>
                                        <option name="conditionType" value="AND"/>
                                        <option name="resource" value="steel"/>
                                        <option name="resourceCount" value="3"/>
                 </attatchment>

                                <attatchment name="conditionAttachmentGermansNorwayNotEnemy" attatchTo="Germans" javaClass="games.strategy.triplea.attatchments.RulesAttachment" type="player">
                                        <option name="conditions" value="conditionAttachment_Germans_5_Allies_Do_Not_Control_Norway:conditionAttachment_Germans_5_Norway_Axis_Or_ProAxis_Or_Strict"/>
                                        <option name="conditionType" value="AND"/>
                                        <option name="turns" value="2:6:10:14:18:22"/> 
                                </attatchment>

                                <attatchment name="conditionAttachmentGermansControlBaltic" attatchTo="British" javaClass="games.strategy.triplea.attatchments.RulesAttachment" type="player">
                                        <option name="alliedOwnershipTerritories" value="114 Sea Zone" count="1" />
                                        <option name="invert" value="true"/>
                                        <option name="turns" value="1:3-5:7-9:11-13:15-17:19-21:23-25"/> 
                                </attatchment>

What seems to be happening is that it is checking and updating the conditions on those turns, but it's checking the triggers every turn. Logically that makes sense but it's not what I want. How do I check the TRIGGER and NOT the conditions on those specific turns? I don't know and can't find the XML command to do that. Any pointers would be greatly appreciated...
Reply | Threaded
Open this post in threaded view
|

Re: NEWBIE conditions-trigger question

panguitch
Conditions must precede triggers in the xml.
And "meta conditions" must follow their constituent conditions.

That have something to do with it?

Greyhawk Wars
TripleA in the original Dungeons & Dragons world

Reply | Threaded
Open this post in threaded view
|

Re: NEWBIE conditions-trigger question

m3tan
I've met all those conditions. Again, its checking the trigger every turn. I want the trigger to fire only on certain turns...
Reply | Threaded
Open this post in threaded view
|

Re: NEWBIE conditions-trigger question

crazy_german
                <property name="Use Triggers" value="true" editable="true">
                        <boolean/>
                </property>


Make sure this in the XML, its a very easy mistake to make
Correctly crazy, disingenuously German
Reply | Threaded
Open this post in threaded view
|

Re: NEWBIE conditions-trigger question

m3tan
Thanks guys. I moved option name=turns to an attachment further down and all is working properly.

One other quick question - is there a way to suppress messages for failed rolls for chance triggers? I'm creating a bunch of 1 in 6 random events and I could see it becoming quite a nuisance clicking through all the messages that basically state "nothing happened..."  
Reply | Threaded
Open this post in threaded view
|

Re: NEWBIE conditions-trigger question

panguitch
Sadly, the mapmaker can't do this. Individual players must do it in game.
Game > User Notifications > Show Trigger/Condition Chance Roll

Greyhawk Wars
TripleA in the original Dungeons & Dragons world