You need to consider: the support of the integrated variable $X$, the support of the convoluted variable $Z-X$, and the support of the summed random variable $Z$
Use indicator functions to determine the integration support intervals of $x$ with respect to $z\;$.
$$\begin{align}
f_X(x) & = {\bf 1}_{0\leq x \leq 1}
\\[2ex]
f_Y(y) & = \tfrac 1 2 \;{\bf 1}_{0\leq y\leq 2}
\\[2ex]
f_{X+Y}(z) & = \int_{-\infty}^{\infty} f_X(x)f_Y(z-x) \operatorname d x \; {\bf 1}_{0\leq z\leq 3}
\\[1ex] & = \int_{-\infty}^{\infty}\tfrac 1 2\; {\bf 1}_{0\leq x \leq 1}\;{\bf 1}_{0\leq z-x \leq 2}\;{\bf 1}_{0\leq z \leq 3}\; \operatorname d x
\\[1ex] & = \tfrac 1 2\;\int_{-\infty}^{\infty} {\bf 1}_{0\leq x \leq 1}\;{\bf 1}_{z-2\leq x \leq z}\;{\bf 1}_{0\leq z \leq 3}\; \operatorname d x
\\[1ex] & = \tfrac 1 2\;\int_{-\infty}^{\infty} {\bf 1}_{\max(0,z-2)\leq x \leq \min(1,z)}\;{\bf 1}_{0\leq z \leq 3}\; \operatorname d x
\\[1ex] & = \tfrac 1 2\;\int_{-\infty}^{\infty} {\bf 1}_{0\leq x \leq z}\;{\bf 1}_{0\leq z \leq 1} + {\bf 1}_{0\leq x \leq 1}\;{\bf 1}_{1 < z \leq 2} + {\bf 1}_{z-2\leq x \leq 1}\;{\bf 1}_{2 < z \leq 3}\; \operatorname d x
\\[1ex] & = \tfrac 1 2\;\left(\int_{0}^{z} {\bf 1}_{0\leq z \leq 1}\operatorname d x + \int_0^1\;{\bf 1}_{1 < z \leq 2}\operatorname d x + \int_{z-2}^1\;{\bf 1}_{2 < z \leq 3}\; \operatorname d x\right)
\end{align}$$
A more compact way to arrive at this is to consider that you need to integrate over the supports: $x\in [0;1] , (z-x)\in [0;2], z\in [0;3]$
Which is: $x\in [0;1], x\in [z-2;z], z\in[0;3]
\\[2ex] \langle x,z\rangle \in [\min(0, z-2); \max(1, z)]\times[0;3]
\\[2ex] \langle x,z\rangle \in [\min(0, z-2); \max(1, z)]\times[0;1]\;\cup\;[\min(0, z-2); \max(1, z)]\times(1;2]\;\cup\;[\min(0, z-2); \max(1, z)]\times(2;3]
\\[2ex] \langle x,z\rangle \in [0; z]\times[0;1]\;\cup\;[0; 1]\times(1;2]\;\cup\;[z-2; 1]\times(2;3]
\\$
This gives the integration ranges of $x$ for values of $z$ within each of three intervals.