Displaying Flag(boolean) Status Attribute

Every time I try to set up a flag/boolean as a player status attribute it will error out if I use the default ! method of replacing. I have also tried using "!", but it seems it will only work if you leave the value section empty, but it reverts to the default formating.

Error I get:
Error running script: Error compiling expression 'Replace(format, "!", value)': FunctionCallElement: Could find not function 'Replace(String, String, Boolean)'


Hello.

I wrote out a detailed reply, but the site won't let me post it in the forum. (This is usually because some character in the code conflicts with the Markdown, I think.)

Sorry, you can't post that here.


I posted the reply in a GitHub Gist: https://gist.github.com/KVonGit/0e447d1f21335854134e85c32b39304b


Thank you so much @K.V.! You are amazing! I wasn't expecting such a detailed and well-written answer, well done! I had a hunch that the built in method just didn't accept it, and glad it was an easy fix.

I ended up doing this method.

Desktop Editor
If you are using the desktop version of Quest, you can override the FormatStatusAttribute function* and change its script to convert boolean values to strings, which would solve the problem.

You are a lifesaver, thank you again.


Log in to post a reply.

Support

Forums