The current -d mode is not very useful because there is a lot repetitive output.
To more easily debug dialogs, it would be nice if there would be a
dialog-specific debug mode which prints available nodes, selected nodes, given
cookies into stdout.
This is what it could look like for Francis dialog:
Started dialog with "Francis"
FirstTime LuaCode
francis_help = 150
--------------------------
EveryTime Lua Code
if has_cookie("bot_attack") -> false
show(0)
add_cookie("bot_attack")
set_rush_tux(0)
end
if (npc_dead("InvaderBot)) and -> false
---
nodes shown: 0 : "Uhh... Where... Uh... Who am I? Oh, my head..."
---
selected: 0 "Uhh... Where... Uh... Who am I? Oh, my head..."
set bot_destination("FrancisSafe")
hide: 0 "Uhh... Where... Uh... Who am I? Oh, my head..."
end_dialog()
I hope you get the general idea, feel free to discuss. :)
|