# get the conversation as a dictionary
convtree = xml_to_dict (npc.dialogues[npc.currentdialog])
- import pprint
- pprint.pprint (convtree)
scrwidth = screen.get_width ()
scrheight = screen.get_height ()
# a dialgoue ID of 0 always exits the conversation
# return the unique response ID
if dlg_id == "0":
- print current_resp
return current_resp
# not reply mode