V VainApocalypse Warlord Joined Aug 10, 2010 Messages 245 Jul 24, 2017 #1 Does anyone know the LUA code for determining if the turn number is greater than x. if turn > x do [thing] etc... Last edited: Jul 25, 2017
Does anyone know the LUA code for determining if the turn number is greater than x. if turn > x do [thing] etc...
LeeS Imperator Joined Jul 23, 2013 Messages 7,241 Location Illinois, USA Jul 25, 2017 #2 Code: if Game.GetCurrentGameTurn() > 10 then --do stuff here end See Opening Post of Gedemon's lua objects thread for link to google spreadsheet with listing of lua functions and objects: https://forums.civfanatics.com/threads/lua-objects.601146/
Code: if Game.GetCurrentGameTurn() > 10 then --do stuff here end See Opening Post of Gedemon's lua objects thread for link to google spreadsheet with listing of lua functions and objects: https://forums.civfanatics.com/threads/lua-objects.601146/
V VainApocalypse Warlord Joined Aug 10, 2010 Messages 245 Jul 25, 2017 #3 LeeS said: Code: if Game.GetCurrentGameTurn() > 10 then --do stuff here end See Opening Post of Gedemon's lua objects thread for link to google spreadsheet with listing of lua functions and objects: https://forums.civfanatics.com/threads/lua-objects.601146/ Click to expand... Thanks for the spreadsheet!
LeeS said: Code: if Game.GetCurrentGameTurn() > 10 then --do stuff here end See Opening Post of Gedemon's lua objects thread for link to google spreadsheet with listing of lua functions and objects: https://forums.civfanatics.com/threads/lua-objects.601146/ Click to expand... Thanks for the spreadsheet!