[closed] Custom dialog placement

Discussion of Lua and LuaWML support, development, and ideas.

Moderator: Forum Moderators

User avatar
ZombieKnight
Posts: 183
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

Re: Custom dialog placement

Post by ZombieKnight »

Sorry?
I don't understand what you meant to say.
(tho probably means find it yourself, as I know you...)
>> If so what tools should I use to search?
I had saurian in profile before, but I've merged my discord profile with forum one...
User avatar
Celtic_Minstrel
Developer
Posts: 2243
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: Custom dialog placement

Post by Celtic_Minstrel »

ZombieKnight wrote: April 19th, 2024, 3:50 pm 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.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
User avatar
ZombieKnight
Posts: 183
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

Re: Custom dialog placement

Post by ZombieKnight »

Yes, you're right...
I have no experience with these...
Becouse of working wml exaple I've managed to put them on the right place. ^^
I had saurian in profile before, but I've merged my discord profile with forum one...
Post Reply