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

Lua Labs • Re: Custom dialog placement

$
0
0
When I type 'gamemap_x_offset' into the Lua console returns an error.
Of course it would, as that's a WFL variable, not a Lua variable.

There is a WFL console, but that variable wouldn't be found there either, as the WFL console uses the AI context of the current side whereas that variable is part of the context of a given dialog. So there really isn't any place you can type in the name and get its value.

But, if you just want to know what the value is, you can use the debug_print function (edit the existing formula that uses it to call that function and pass the variable's value to it). That'll print the value of the variable to the log whenever it's hit, while not affecting the actual calculation being done.

Statistics: Posted by Celtic_Minstrel — 16 minutes ago



Viewing all articles
Browse latest Browse all 1439

Trending Articles