Changing Culture via lua not working

Starrynite120

Prince
Joined
Jul 15, 2015
Messages
472
I'm trying to make lua functions that will change culture say whenever you complete a wonder if you have an affinity perk. However, none of the functions I write to give culture via lua are working. I tried both Player:ChangeJONSCulture and Player:ChangeCulture but neither worked. What's weird is that in a PlayerDoTurn GameEvent the Player:ChangeCulture is working, but not on anything else I tried. Anyone know what I'm doing wrong?
 
ChangeJONSCulture was what it was in Civ5 (Jon is for Jon Shafer, the lead of vanilla Civ5). In BE a bunch of the naming was cleaned up and it should ChangeCulture. If it isn't working than it is likely that there is an issue elsewhere in algorithm. Can you post the code you're using?
 
So I'm not sure what I was doing wrong, but I rewrote the code and it works now. Must have just missed something obvious the first time. Thanks for the clarification though.
 
Top Bottom