Quest Entry Syntax

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
diddledoodle
Posts: 3
Joined: Sun May 03, 2020 7:35 pm

Quest Entry Syntax

Post 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!
Attachments
QuestEntryNull.JPG
QuestEntryNull.JPG (63.29 KiB) Viewed 400 times
QuestEntryItem.JPG
QuestEntryItem.JPG (25.69 KiB) Viewed 400 times
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Entry Syntax

Post 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
diddledoodle
Posts: 3
Joined: Sun May 03, 2020 7:35 pm

Re: Quest Entry Syntax

Post by diddledoodle »

Thank you so much!

That code worked!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Entry Syntax

Post by Tony Li »

Great! Glad to help.
Post Reply