Issue535

Title dialog debug mode
Priority idea Status open
Assigned To Keywords dialog
Linked issues Watchers

Submitted on 2011-11-18 13h14 by matthiaskrgr, last changed by matthiaskrgr.

Messages
Author: matthiaskrgr Date: 2011-11-18   13h14
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. :)
History
Date User Action Args
2011-11-18 13:14:17matthiaskrgrcreate