Topic: Get general statistics as variables
Sauss-Ente![]() Topic Opener |
Posted at:
Yesterday 19:51 UTC+2.0
Is it possible to use all the values in the general statistics as a variable in a .lua script? For example military points or land. Does something like this exist: p1:get_militarysize? p1:get_landsize? For context: I'm fiddling around with the script files of the second Atlantean campaign level. There we have a function being called "get_produced_wares_count", which sounds like it goes in the right direction. Where do I find a list of all possible kinds of functions? In the search on the Widelands documentation? https://www.widelands.org/documentation/search/?q=get_produced_wares_count doesn't show a result though. ![]() ![]() |
Nordfriese![]() |
Posted at:
Yesterday 21:09 UTC+2.0
The function can't be found by the search as it is unfortunately misspelled in its documentation The full reference is here: https://www.widelands.org/documentation/reference/ IIRC not all statistics are currently accessible from Lua. ![]() ![]() |