Original Post
Hi. I've been thinking about how to use Python as a way of programming conversations between the player and an NPC in an RPG game. So what I'd like is the ability to write a .py file which corresponds to a conversation. When the player talks to an NPC, the appropriate script runs. For example: status = get_quest_status("kill_troll_under_bridge") if (status == 0) say("Please, go kill the troll!") else do: result = ask_yesno("Thank you for killing the troll! Will you take this money?") if (result) give_player_money(100) else say("But thou must!") while (not result) I'm sorry if this isn't correct Python... but my question is: how can I set up a Python function which actually suspends the script, and resumes the script once the game decides it's time? For example, the say() function should tell the game engine to display the text in a dialog box, and resume the script once the user has buttoned past the dialog. Any help would be greatly appreciated. Thanks :) james