- Honestly, I don’t think
dialog
is bad for this? Maybenpc_dialog
ornpc_dialog_tree
if you want to be less ambiguous? - Something like
prompt
,query
, ornpc_prompt
maybe? reply
,response
, orplayer_response
? Mayberesponse
could be the container that holds areply
(the text the player says) and a link to the next prompt?
Yeah, I have some Python scripts that reflow selected passages of code for me using this approach. It always feels so weird when I’m using some OS that seemingly doesn’t support any sort of GUI scripting.
It’s worth noting that while you can simulate mouse clicks and key strokes within any app, some support a few direct scripting commands. For example, in Terminal, you don’t need a GUI script to open a new window and type in it to run some command. You can just issue an AppleScript command to
tell app "Terminal" to do script "top"
or whatever. That’s because Terminal’s scripting library includes ado script
command.For more on this, you can fire up Script Editor and go Open Dictionary. You will see a list of all apps with any sort of scripting support and be able to get documentation on what you can do with it.