You can look at ctx with
wesnoth.interface.add_chat_message(wesnoth.as_text(ctx))
then you'll probably see that it is not the lua table you expected. You might want to use the wml
module to work with it.Statistics: Posted by Soliton — Today, 9:22 am