I've made that tree, but I need to do some improvements and I don't know how. First of all, I want to paint the squares, making them purple, and the letters white. Second, I want to make the arrows purple to. Third,the boxes with the massage "Thanos fica com a joia" in a darker purple and the boxes with the message "Thanos fica sem a joia" in a lighter purple. Last, I need to be able to put the probabilities next to the squares, and I don't know how.
Thank you guys for your help
\usepackage{forest}% for version 1
\begin{document}
\begin{forest}
for tree={
grow'=0,
draw,
align=c,
font=\sffamily,
rounded corners,
parent anchor=east,
child anchor=west,
edge path={%
\noexpand\path [\forestoption{edge}] (!u.parent anchor) -- ++(5pt,0) |- (.child anchor)\forestoption{edge label};
}
},
highlight/.style={
thick,
font=\sffamily\bfseries
}
[{Peter Quill \\ rouba a joia}
[{Kree captura Quill}
[{Quill foge sem a joia}]
[{Quill foge com a joia}
[{Quill tenta vender a joia}
[{Luta com Ronan}
[{Vence}
[{Joia é entregue a Tropa Nova}
[{Thanos consegue a joia}]
]
[{Quill fica com a joia}
[{Thanos vence}
[{Thanos fica com a joia}]
]
[{Quill vence}
[{Thanos fica sem a joia}]
]
]
[{Quill entrega a joia para Youndu}
[{Youndu vence}
[{Thanos fica sem a joia}]
]
[{Thanos vence}]
[{Thanos fica com a joia}]
]
]
]
[{Perde}
[{Thanos fica sem a joia}]
]
]
[{Quill vende a joia}
[{Thanos fica sem a joia}]
]
]
[{Quill escapa}
[{Quill fica com a joia}
[{Quill vende a joia}]
[{Quill vence}]
[{Thanos vence}
[{Thanos fica com a joia}]
]
]
]
]
]
]
]
]
\end{forest}
\end{document}
fill=purple,text=white,edge=purple,
into your tree declaration.