Jump to content

Script to Detect if the player is in dialogue


Apollodown

Recommended Posts

Hey folks, I've been banging my head against this one for a bit, does anybody know how to detect if the player is currently in dialogue? I know the workaround to find who they're in dialogue with, but can't for the life of me figure out if they are actually in dialogue at all.

 

:D

Link to comment
Share on other sites

Unfortunately, the above link is for the Construction Set which is not for Skyrim but rather its predecessors. The only stock function related to determining if the player is in dialog is IsInDialogueWithPlayer which you have already mentioned. SKSE has added the appropriate functions which work similar to what is described at the above link.

 

IsMenuOpen is the function and the valid menus are listed on the UI script page

If IsMenuOpen("Dialogue Menu")
;do something
EndIf

This if statement will allow processing whenever the dialog interface is active. Since the dialog interface is only active when the player is party to dialog, it would be a good indicator to use.

 

If you want to process something after dialog has taken place, you could use

While IsMenuOpen("Dialogue Menu")
;do nothing
EndWhile
;do something
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...