Can Lua code (running during game) modify database values?

Pazyryk

Deity
Joined
Jun 13, 2008
Messages
3,584
This may be a really easy question or really hard. If you know how to do this, could you post a little snippet of example code for me? (Would be greatly appreciated. :))

I understand that, in most cases, this would be a very bad idea because the database will be reset to previous values by xml/sql code when you reload your current game. However, some things like Trait modifications seem to be retained in the gamesave file rather than reset. I'm trying to figure out how to exploit this.
 
Top Bottom