@Cernel the HTML needs to be fixed within the constraints of the HTML rendering. There is no code fix for us to apply here. We're not modifying the HTML, we're not rendering it ourselves. There is no way we're going to change anything (short of rebuilding an HTML renderer, IE; a web-browser) that makes this exact HTML render how you want.
@Frostion So, to summarize and make sure, is the latest issue at hand that disabling any units doesn't disable their AA attacks nor their ability to give support, while it correctly disables their regular attacks, instead? Isn't that maybe just intended?
@eagledrc If you send me your mod, I will post on my site. I have a lot of mods not in the scenario repository as well as 2 mods that in the scenario repository but don't work in the versions in the repository.
Complete Scenario List
@Cernel thx man, i had to make the reliefTiles map a bit transparent, cut it up with the imagetilebreaker and replaced the old reliefTiles with the new ones.
The map is, apart from some balancing basicly ready thanks to you guy.
@redrum said in Trigger when units are present on map?:
@Frostion Yeah, as @Cernel pointed out not a bad feature request.
@Frostion Not a wonderful solution but, for now, one might do this with a limited amount of coding by using "eaches" on the conditions, then having as many same conditions assigned to the trigger as the number of units specified in the conditions themselves, then a condition type equal to the minimum number you want (in your case, 5), if you are following me. However, I'm not sure if it would work, as eaches are normally used to make the trigger firing that many times.
EDIT: Nevermind, checked pos2 it says that eaches are just 1s, condition wise.
@RyansPlace You'll need to unzip the map file then go to "\map\games" directory inside it. There you'll see the various game XMLs for that map. Open the one that corresponds to the game you want to edit then find those 2 properties and change them to editable="true".
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