Communicating with a variable created on dialogue script
Posted: Wed Oct 24, 2018 10:23 am
Hi,
I've just tried this on certain dialogue script:
Just in case, spokeToKing doesn't exist within my Database Variables, thing is, I tried to retrieve that variable from a script later on by doing this (so I could change it from false to true by pressing a button during the conversation (not the dialogue buttons by the way) and then proceed to two possible outcomes depending on the bool value):
Not working. Creating the variable works, but trying to retrieve it and then send it back, no luck so far, still checking the forums though.
Thanks for taking your time with this.
I've just tried this on certain dialogue script:
Code: Select all
Variable["spokeToKing"] = false;
Code: Select all
bool spokeToKing = DialogueLua.GetVariable("spokeToKing").AsBool;
DialogueLua.SetVariable("spokeToKing", true);
Thanks for taking your time with this.