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 unit

I'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 lolI 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

-
@beelee
:astonished_face: -
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

-
-
-
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 -
Don't, it took me 3+ hours to find. And I have the fresh eyes so to speak... :zany_face:
Cheers...
-
-
@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 :face_with_tears_of_joy: -
well thanks to wc the paratroopers auto deploy now. Guess I need to do another update lol
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
