CHeck variables on Quest status change
Posted: Thu May 03, 2018 7:02 pm
Hi Tony
Is there a way to have Variable values read when a quest state is changed?
Say my player has three firewood items in their inventory (the corresponding variable value for firewood in Dialogue System is 3). So if my quest requires the player collect three firewood items they would already have that number in their inventory. However, because I am using the Dialogue System Trigger set to "On Use" and is registered every time an item is added to the inventory there is nothing to check the variable value on start. The player either needs to drop an item and add it back to their collection or add more items to their collection. At the moment when the quest starts it says 3 or 3 firewood collected but the quest is not set to complete because the counted needs an "On Use" message.
My apologies if there is an obvious answer for this but is there some type of global command that can check variable values on all quest changes, or at least when set to active?
Thanks again,
Nathan
Is there a way to have Variable values read when a quest state is changed?
Say my player has three firewood items in their inventory (the corresponding variable value for firewood in Dialogue System is 3). So if my quest requires the player collect three firewood items they would already have that number in their inventory. However, because I am using the Dialogue System Trigger set to "On Use" and is registered every time an item is added to the inventory there is nothing to check the variable value on start. The player either needs to drop an item and add it back to their collection or add more items to their collection. At the moment when the quest starts it says 3 or 3 firewood collected but the quest is not set to complete because the counted needs an "On Use" message.
My apologies if there is an obvious answer for this but is there some type of global command that can check variable values on all quest changes, or at least when set to active?
Thanks again,
Nathan