I have two text objects, "r1" and "r2".
And if this is true:
left(r1.text, 1) == "{"
right(r1.text, 1) == "}"
Then this happens:
r2: set text to left(r1.text, len(r1.text)-1)
r2: set text to right(r2.text, len(r2.text)-1)
Here is the problem:
I want the the text returned by r2 to to be replaced by a global variable with the name extracted by r2.
I need this so my external files that are dialogues can show variables from the game, which could look like {kills} or {player name}.
So how can i do that?
I have tried global(r2.text) but it doesent work...