Page 1 of 1

[QuestPopup] variable not working in List<CustomClass>

Posted: Wed Feb 15, 2023 8:53 am
by laurelhach
Hi Tony,

I'm trying to create a

Code: Select all

List<QuestProperties>() 
to access custom information for my quests. Unfortunately, the QuestEntryPopup doesn't seem to work in a custom class as it seems it can't find any quest variable. It is working though if the quest variable is outside of the class (in the main class).

Code: Select all

    [Serializable]
    public class QuestProperties
    {
        [QuestPopup]
        public string quest;

        [QuestEntryPopup]
        public int questEntry;

        [QuestState]
        public QuestState questState;
    }
Any idea on how I could make it work?

Re: [QuestPopup] variable not working in List<CustomClass>

Posted: Wed Feb 15, 2023 12:43 pm
by Tony Li
I'm afraid that's a limitation of the [QuestPopup] and [QuestEntryPopup] attributes. I'll see what I can do to remove the limitation in a future release.

Re: [QuestPopup] variable not working in List<CustomClass>

Posted: Thu Feb 16, 2023 5:15 pm
by laurelhach
Thank you! :)