Page 1 of 1

Quest Entry Syntax

Posted: Sun May 03, 2020 7:43 pm
by diddledoodle
Hello,

I added a custom property called "Count" to an item in my dialouge database. I am trying to display the value of that property in a Quest Entry.

Based on the example in the Quest video tutorial, I tried entering this into the Quest Entries:

Code: Select all

[var=Item["Orange"].Count]/3
Unfortunately this gives me an error that says "nil.Count". Do you have any advice on how to fix this? Thanks!

Re: Quest Entry Syntax

Posted: Sun May 03, 2020 7:54 pm
by Tony Li
Hi,

The [var=variable] markup tag only works for variables. Since Item["Orange"].Count is not a variable, you'll have to use the [lua(code)] markup tag:

Code: Select all

[lua(Item["Orange"].Count)]/3

Re: Quest Entry Syntax

Posted: Sat May 16, 2020 2:10 pm
by diddledoodle
Thank you so much!

That code worked!

Re: Quest Entry Syntax

Posted: Sat May 16, 2020 2:22 pm
by Tony Li
Great! Glad to help.