Text with Tags

I’ve created a script that essentially displays a set text. I’m trying to add effects through dialogue tags like this: “[r]Hello[r/] Example.” My end goal is to ignore anything in brackets and change the text inside the brackets, but not affect anything outside of the brackets. How would I be able to do something like this? Thanks for your help!

Hi @Kolalamonkeys

Basically, you search for “[” and “]” and replace everything in between these to coordinates. You can use the IndexOf method to find the positions, and the String.Substring method to divide your strings into parts without the brackets.