isau
Deity
- Joined
- Jan 15, 2007
- Messages
- 3,071
I'm trying to use Lua to catch an event when a particular player changes eras. I'm not very experienced with Lua and don't have any really good ideas on how to use Firetuner or figure out what parameters each Event uses. I mainly rely on code I see in the existing scenarios which I repurpose (very painfully).
I ventured out a little and tried this:
But it doesn't seem to work as far as I can tell. Any ideas on what I'm doing wrong or how I could improve the process so I can better tell what parameters the event listener functions need?
I ventured out a little and tried this:
Code:
local function fnQuo_FreeCivicBoostOnEraChange( pPlayer )
print ('ERA CHANGED.') ;
end
GameEvents.PlayerEraChanged.Add(fnQuo_FreeCivicBoostOnEraChange);
But it doesn't seem to work as far as I can tell. Any ideas on what I'm doing wrong or how I could improve the process so I can better tell what parameters the event listener functions need?