[Solved] Getting some context in conditions
Posted: Thu Jun 09, 2016 11:50 am
Hi!
I'm thinking of better conversation structuring, since conversation/quest tables are getting bit out of hand in terms of size. What I need is to automate some condition checks.
For instance I assign a custom field of "Item" type to conversation to hold relative quest name.
Then I want to create formal conversation template -
Conversation having dialogue entry for "unassigned","active", "success","failed" quest states.
Ordinary we have to do checks in these entries like this GetCurrentQuestState("QuestName") == "unassigned"
But since we have a quest field in conversation object, how can I get current evaluated Conversation id?
To do the following: GetCurrentQuestState(Conversations[ID].quest) == "unassigned"
How can i get this ID?
This will be very helpful for restructuring dialogues based on quests.
Best regards,
Iegor
I'm thinking of better conversation structuring, since conversation/quest tables are getting bit out of hand in terms of size. What I need is to automate some condition checks.
For instance I assign a custom field of "Item" type to conversation to hold relative quest name.
Then I want to create formal conversation template -
Conversation having dialogue entry for "unassigned","active", "success","failed" quest states.
Ordinary we have to do checks in these entries like this GetCurrentQuestState("QuestName") == "unassigned"
But since we have a quest field in conversation object, how can I get current evaluated Conversation id?
To do the following: GetCurrentQuestState(Conversations[ID].quest) == "unassigned"
How can i get this ID?
This will be very helpful for restructuring dialogues based on quests.
Best regards,
Iegor