Code: Select all
Where first variable is the quest person you want to check second variable is LastNPCClicked data from QuestMachine. Check code of QuestMachine.IsNPCDataEqual() to see how the StaticNPC data and Quest Person data are matched. It's matched using a position hash, local mapID, nameSeed, and buildingKey. A match on all these values should guarantee you're talking to any specific StaticNPC.
There's more I probably need to do around this for your needs. The Questor setup is very loose at the moment, it's something I was going to delve into more when conversations started in 0.5 - something you're pulling together much faster than expected. Due to how rough things are on my end, I don't expect good results in its current state.
If you go ahead with those dialogs, please let me know how you go and what troubles you run into. I'll do what I can to help when possible.