I have a quest item with a Useable and Dialogue Trigger script attached, as well as a variable named "Arrows" but when I enter, the object gets disabled, yet doesn't increment the count in the Database. No idea why. It's not returning any errors and no other scripts are modifying the value at that time. What am I missing or doing wrong?
Variables not Incrementing On Trigger
Re: Variables not Incrementing On Trigger
Hi,
Use the Watches tab. (Select Menu > Add All Runtime Variables)
The Dialogue Editor shows the initial read-only values of the dialogue database, not the current runtime values stored in the Lua environment. The exception is the Watches tab. You can also watch the runtime values using the separate Variable View window.
Also, add UpdateTracker() to your Dialogue System Trigger's Lua code:
This will tell the quest tracker HUD to update itself based on the updated variable value.
Use the Watches tab. (Select Menu > Add All Runtime Variables)
The Dialogue Editor shows the initial read-only values of the dialogue database, not the current runtime values stored in the Lua environment. The exception is the Watches tab. You can also watch the runtime values using the separate Variable View window.
Also, add UpdateTracker() to your Dialogue System Trigger's Lua code:
Code: Select all
Variable["Arrows"] = Variable["Arrows"] + 1;
UpdateTracker()