dogface Posted January 8, 2012 Posted January 8, 2012 I'm setting up certain types of NPC's to talk to the player, then go and wait someplace specific, and then engage in dialogue with the player when approached. Does anybody know any way I can bar the player from talking to the NPC while they're walking to their destination? Ideally, nothing would happen when E is pressed, or they'd just say a random line with no dialogue options, like non-smalltalk NPC's generally do.
prideslayer Posted January 11, 2012 Posted January 11, 2012 The easy way is to flag them as 'walking' and then in the AI package you're using to walk them there, in the completion script, remove or reset the flag. You could do this with a quest var (if you have few NPCs you want to support this way), or via some kind of DontTalkToMe token if there are a lot of them and you don't want to clutter up the quest script. In their dialog topics in the quest, you'd check the state of the flag (or for the presence of the token in their inventory). If all the topics they have are checked this way, then they will only converse via generic smalltalk stuff from mods other than yours. If there is only one NPC you're worried about, you can use quest stages and the getstage/setstage functions as well.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.