Page 1 of 1

Compile quest text for custom text fields

Posted: Tue Oct 25, 2022 8:36 am
by kimosabe
Hi,

I have the following problem when trying to display quest status to a custom text field:

Image

Is there a way (class) for compiling text and replacing every [var=""] with the actual variable value?

Thanks,
Kimo

Re: Compile quest text for custom text fields

Posted: Tue Oct 25, 2022 10:58 am
by Tony Li
Hi,

Yes. Run the text through FormattedText.ParseCode(). This will replace [var=variable] and [lua(code)] tags with their values.