My question is very similar to Finite Number of Partitions of Unity in a Compact Hausdorff Space, but my problem doesn't involve compact supports, so I think this question is different: (I wasn't able to adapt its answer to my problem)
Let $X$ be a compact $T_{2}$ topological space, and let $X = \bigcup_{\lambda \in \Lambda} U_{\lambda}$ be an open covering of $X$. Prove that there exists an $n \in \mathbb{N}$, and continuous functions $f_{1},...,f_{n}:X \to [0,1]$ such that:
$(\forall i \in \{1,...,n\})(\exists \lambda_{i} \in \Lambda) f_{i}|_{U_{\lambda_{i}}^{c}} \equiv 0$
$(\forall x \in X) \sum_{i=1}^{n} f_{i}(x)=1.$
So first as first, obviously, I take a finite subcover $U_{\lambda_{1}},...,U_{\lambda_{n+1}}$ , and I apply Urysohn's lemma on the complements of the sets $V_{1} = \bigcup_{i=1}^{n+1} U_{\lambda_{i}}$, $V_{2} = U_{n+1} $ (if $n+1=1$, the matter is trivial), and I get functions $f$, $1-f = g$, where $f$ is taken from Urysohn's lemma, so $f(V_{1}^{c}) = \{0\}$, $g(V_{2}^{c}) = \{0\}$. Now, the subspace $V_{2}^{c}$ is also compact and $T_{2}$, since it's closed, so now I want to repeat this process, but I have no induction hypthesis.
So now I get the following idea, similar to the answer in the linked question: I want to prove that for every $n$, and every $X = \bigcup_{i=1}^{n} U_{i}$, where $U_{i}$ are open, I can construct functions $f_{1},...,f_{n}$ satisfying 1. and 2.
For $n=2$, I use Urysohn's lemma as described.
For $n \implies n+1$, I proceed as described as well , and then I use the induction hypothesis on $V_{2}^{c}$, and the cover $V_{2}^{c} = \bigcup_{i=1}^{n} (U_{i} \cap V_{2}^{c})$ getting $f_{1}, f_{2}, ..., f_{n}: V_{2}^{c} \to [0,1]$ such that $f_{i}|_{V_{2}^{c} \setminus U_{i}} \equiv 0$ and 2. for $X = V_{2}^{c}$. However, I don't know how to extend $f_{1},..., f_{n}$ to $X$. Obviously, I want $f_{i}\equiv 0$ on $(X \setminus U_{i}) \setminus (V_{2}^{c} \setminus U_{i})$, but what do I do on $U_{i} \cap V_{2}$? And if I do figure out how to define $f_{i}$ on $U_{i} \cap V_{2}$, how do I prove that that extension is continuous?