@beelee So for the first one:
<attachment name="triggerAttachment_Battleship_Ordered_to_Vichy_Port" attachTo="French" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
<option name="conditions" value="conditionAttachment_Axis_Conquer_All_France:Vichy_active:conditionAttachmentFrenchBB"/>
<option name="chance" value="3:6"/>
<option name="when" value="before:frenchCombatMove"/>
<option name="uses" value="1"/>
I believe uses only is used up if it actually fires (you hit the chance) so you can't use that for what you are trying to do. You instead need to have another trigger that does fire after this one (say during after:frenchCombatMove) which sets a condition to false which is used in your trigger. As you also mention, if it only happens on a certain turn(s) then you could use the turns parameter instead.
The second one looks correct except that if the BB would arrive before the 2 uses, it then fires once the BB leaves. So you would need to set a condition to be false once the BB returns so the notification doesn't show when it leaves.
@Frostion Good for you, then be sure that the first AA firing mixes well with the battle sound, as they will play at once. Probably the following ones will too, unless the battle sound is short or players have to think during AA casualties selection (unless it is random).
For WWII scenarios, and thinking about the way the 88s were used in reality (ignoring their use in the late-model panzers), it would be nice if:
AA were treated like any other unit for purchase, movement, etc, except as below:
on defense, AA acts as flak/air defense if any attacking aircraft are present, and as anti-tank/inf artillery if no aircraft are present, at start of defensive fire phase (SBR is just a special type of attack, so AA would be 'flak mode'). No input required from defending player.
on offense, the attacking player has to specify the default mode of the AA guns (flak vs anti-tank) during combat movement, similar to how bombers have to select 'bomb vs attack' in most current maps (I have no idea how complex the coding would be for this, but existing bomber behavior shows that this is possible). If the Attacker wants some of each, move them in two separate moves, just like we do now with bombers attacking and bombing a single territory today.
In 'flak mode', AA hits more rarely (1/6 in most maps), but cherry-picks aircraft only for casualties
In 'anti-tank mode', AA behaves like Artillery in most maps, with better hit chance (say 2/6), but allows full defender-choice on casualties.
If all defending aircraft are eliminated but attack still underway, then AA is in 'anti-tank' thereafter.
So, in effect, AA would just be artillery with a special 'anti-air' mode available.
Cost, cargo size, movement rates, and combat strengths would need to be balanced carefully. If a player wants to buy a bunch of AA rather than 'normal' artillery, then it should be an option, but come with a cost premium. I would think that a slightly higher cost and the fact that they would still count as a placement should prevent unreasonable AA unit spamming.
@Frostion The only way I can think if to achieve this (without having a unique Swiss Infantry unit) would be to create another hypothetical unit... call it "Swiss Advantage" (it could even be invisible) This unit could then just support the Swiss infantry units... and you could trigger it to be added and removed each turn based on where Swiss infantry meet the condition of being in a mountain terrain.
@all ok glad you mentioned what mod/map this is for ... we been getting lots of threads and questions for questionable "projects" and had you mentioned at the start your mod/map then I would not have wondered!
Plus your title "simple Trigger help" also got me suspicious.
Sure call me the forum nerd that likes to keep the trolls in check ... if a guy who was on his student council and quarterbacked his highschool and football teams and played Can-Am baseball 10 years is a nerd
well went ahead and renamed them. It didn't fix my issue though. The reason i originally asked, was I had gone through 4 players and they all worked and the 5th one started nuttin up.
I guess I just needed to struggle for a couple more hours lol. The 5th Player is unique and doesn't have a "Place" phase. It has "EndTurn" instead. About fried my poor little brain
Oh well, hopefully the next 48 hours will be more productive heh heh
Also pointing out that, in a game like TripleA, where 1 round may be several months, but you can perform 1 single movement with each air unit, that movement is representing a number of going back and forth from the two territories you are landing on (that may be the same if you land where you started), as many as the implied real time would allow, at least in my mind. So, say, if you have 1 infantry and 1 transport, and the transport can transport 1 infantry per turn, that infantry should be the amount that you can transport over the course of the implied real time represented by the round (assuming you have 1 turn per round).
Similarly, for example, in a game where "Germany" is a single territory, and you bomb it from "United Kingdom", landing in there too, I see that like those bombers doing that same operation for many times over, in game being simplified by you doing it only once.
@RoiEX I wonder if the apostrophe is ok to have in file names (I suppose not)? For example, "New York" in the xml has to be "New_York" in the file name of the image (right?). Can, instead, "Bishop's Stortford" remain as "Bishop's_Stortford" in the image file name?
Anyways, I see your point: there may be more undesirable characters than just the space, that you may have in names inside the game file (xml), and, differently from the underscore, that is clearly representing a space, they may be not so obvious to convert for visualization.
Though, I think TripleA could be fine simply disallowing all of them in names. I think the space is the only one you don't want to pass, even though, of course, you could still write "New York" as "NewYork" (not a fan).
By the way, are you aware that this system of disallowing spaces in names entirely is already partially in place? For example, you cannot have units (and other things) with spaces in them.
So, @RoiEX or any developers, can you explain me why, as a potential mapmaker, I am allowed to have a territory called "New York" in the name, calling its image file name as "New_York", while I'm forbidden having a unit called "AA Gun", and I, instead, have to call it "AAGun" or "AA_Gun", or whatever, and exactly the same as its image file name, instead?
TripleA has already a few different methods. Substantially, what I would prefer is that it goes with only one of them in all cases, preferably one that allows a better look to the final user (I think we can all agree that "New York" and "Horse Artillery" look better than "New_York" and "Horse_Artillery" or "NewYork" and "HorseArtillery", right?). Wouldn't this be at least better? But I know I'm talking mostly theorically, as I realize there would be huge compatibility issues.