[GS] Possible to use a custom SQL table in Lua?

Angryr

Chieftain
Joined
Jul 12, 2014
Messages
40
Location
Indiana, USA
Let's say I were to create a custom SQL table, something like:
Code:
CREATE TABLE GameEvents
(
    EventId TEXT,
    EventType TEXT,
    -- ... Other potential fields   
);

Is there a way to access this is Lua? Like Game.GameEvents or something?
 
:O That's exciting. Oh man, like half the things I wanted to do with scripting were halted because I didn't have that capability, going to have to check that Black Death scenario out. Thanks a ton for the info.
 
Hmm Don't suppose there's a way to evaluate whether a RequirementSet has been met in lua? Would make what I'm doing a lot quicker if it did :P Not finding anything through the scenario examples though.
 
Nope.

You can either chose to apply the modifier to a player or a city or choose not to. But you can't check from within lua directly really whether the modifier's conditions are met as defined within Requirements, etc. You have to make that inherent in your lua script. You also cannot directly un-attach a modifier via lua.


We cannot currently attach a modifier to a unit from an lua script. Let us all rub our weedjee boards and pray Firaxis adds this in a patch in the near future.
 
Back
Top Bottom