Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 2146

WML Workshop • Re: Help visualizing [wml_message] / debug macros in in-game chat

$
0
0
According to implementation of [wml_message], it is visible in chat if to_chat=yes https://wiki.wesnoth.org/LuaAPI/wesnoth#wesnoth.log

Code:

function wml_actions.wml_message(cfg)wesnoth.log(cfg.logger, cfg.message, cfg.to_chat)end
Personally I never used those options. I use [chat] from WML and wesnoth.message() or print() from Lua. In fact, for debugging it is especially useful to avoid macros since then I can reexecute WML without having to leave scenario.

Statistics: Posted by Ravana — Today, 6:19 pm



Viewing all articles
Browse latest Browse all 2146