Won't player:GetStats() work correctly on Firetuner?

seed.of.apricot

Chieftain
Joined
Mar 24, 2015
Messages
8
On Firetuner, I tried this:
Code:
function()
   local listItems = {};
    listItems[1] = Players[0]:GetCulture():GetCultureYield();
    return listItems;
end

it returned some value.
However, when I tried this:
Code:
function()
   local listItems = {};
   listItems[1] = Players[0]:GetStats():GetTourism();
   return listItems;
end

it said
Code:
Failed to populate list:
Runtime Error: [string "return function()..."]:3: function expected instead of nil
stack traceback:
	[string "return function()..."]:3: in function '(anonymous)'
Lua callstack:

So cannot I use this method to obtain the total yield of tourism or total military strength?
I'm considering using GetCulture():GetTourismAt( plotID ) for all the plots in the map or adding up all the strength across the map instead.
 
Back
Top Bottom