Trying to get foreach to work
-
Running out of ideas. I'm using the wolfpack foreach wc did as a template. What I want is slightly different.
Any paratroopers that don't have any of the listed units with them, will have a ...paraBoost unit placed.
I can't get past this one
heres a couple shots.
This a list of all the TTys it should happen.
Here's conditions and trigger
Oh here's xml
global_40_expansion_uhd_boxes.xml
Edit
Well I fixed this to an actual unitI'm just doing it for Germany for starters, but I need to add othe r players as well
-
You are using $ParaBoost$ but you are showing the variables for ParaBoostTTys. I do not find a variable list for just ParaBoost. Maybe you meant ParaBoostTTys in the foreach?
Cheers...
-
By the way, what are you using to edit/show the xml? I see no line numbers, and it could be hard to point to certain things without them.
Cheers...
-
emacs The line is shown on the bottom bar
-
yea it fired up Idk if the behavior will be what I want but a step in the right direction lol
I swear, I look at things for hours and still miss stuff like that lol
-
Thank you. I was comparing what was in the downloaded xml, to what was shown. At or about line 32809 was a line like:
<option name="placement" value="@ParaBoost@:ParaBoost" count="1"/>
But the screen shows the line like:
<option name="placement" value="@ParaBoost@:german_paraBoost" count="1"/>So, the difference was throwing me off a bit.
Cheers...
-
yea I updated to "german_paraBoost" after I posted the xml. I should have posted the new xml as well
-
-
heh heh yea it was like one minute after I posted the xml that I saw it.
It.only changed a couple characters, Surprised it changed the line number.
Thanks for the help as always
-
lol I think it worked or at least partially lol
-
-
so sadly, i can't get it to work before combat. I changed "battle" to before combatMove. That didn't work.
Probably has something todo with the condition(s)
I will continue to try and figure it out
this latest xml
-
Try replacing germanscombatMove with germansCombatMove at line ~ 32810.
Sometimes the simple misspellings can be very hard to find.
Cheers...
-
@wc_sumpton
I feel so stupid lol -
-
Das ist gut
-
@beelee said in Trying to get foreach to work:
@wc_sumpton
I feel so stupid lolHehe don't worry, I make mistakes like these all the time germanCombatMove, attachTo="Russia", option name="condition", mixing up attachmentConditionMinesSZ11 with attachmentConditionMineSZ11... I've seen it all in just four days lol
-
@beelee
Lol see, I just mixed up attachmentCondition... with conditionAttachment -
well thanks to wc the paratroopers auto deploy now. Guess I need to do another update lol