How do i make a branch become invisible?

Hello so im rn trying to make some paths for a focus tree. And i need help with making paths invisible so that nothing gets confusing. So like does the allow branch feature do that? Or what? Please help ty.

Just going to use the focus tree from your Canada Focus Tree mod as an example with this.

In the Patriation focus, you may have the "Allow Branch" value:

NOT = {

has_completed_focus = CAN_strengthen_the_commonwealth_ties

}


And in the Strengthen the Commonwealth Ties focus:

NOT = {

has_completed_focus = CAN_patriation

}


Then in the reward for both of those focuses you will need to add:

mark_focus_tree_layout_dirty = yes


As this will refresh the focus tree layout, and the checks for whether the focuses should show or not will be checked again - as allow_branch is checked on game start only.

So with those set, if someone takes Patriation, they will no longer see Strengthen the Commonwealth Ties, and all of the focuses which require it. 

This also means that if "1st Canadian Parachute Battalion" was checking if either of the previous focuses was complete, instead of checking for both, that would still show, but would only have the 1 requirement.  

Just going to use the focus tree from your Canada Focus Tree mod as an example with this.

In the Patriation focus, you may have the "Allow Branch" value:

NOT = {

has_completed_focus = CAN_strengthen_the_commonwealth_ties

}

tysm now i understand

And in the Strengthen the Commonwealth Ties focus:

NOT = {

has_completed_focus = CAN_patriation

}


Then in the reward for both of those focuses you will need to add:

mark_focus_tree_layout_dirty = yes


As this will refresh the focus tree layout, and the checks for whether the focuses should show or not will be checked again - as allow_branch is checked on game start only.

So with those set, if someone takes Patriation, they will no longer see Strengthen the Commonwealth Ties, and all of the focuses which require it. 

This also means that if "1st Canadian Parachute Battalion" was checking if either of the previous focuses was complete, instead of checking for both, that would still show, but would only have the 1 requirement.  

-jordsta95