Need help with LUA coding - detecting famines

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
Post Reply
ahfretheim
Posts: 49
Joined: Sat Apr 05, 2014 9:29 pm

Need help with LUA coding - detecting famines

Post by ahfretheim »

Hey there,

Thanks for reading this message. I was just about to start coding LUA script for the first time in order to add an additional effect of a new form of government I made that isn't supported by the effects triggers (another way a Civil War can occur) and can't seem to find any information about how LUA would detect population loss due to famine. I did see information about effects triggered by an entire city being lost, but not about a single citizen being lost.
cazfi
Elite
Posts: 3107
Joined: Tue Jan 29, 2013 6:54 pm

Re: Need help with LUA coding - detecting famines

Post by cazfi »

At the moment lua scripting interface does not provide complete access to game data, but things have been added in priority order. Since you have a real need for this feature, please open a wishlist (Severity: Wish) ticket about it:
http://gna.org/bugs/?func=additem&group=freeciv

This one is probably easy enough that we can still add it to freeciv-2.6 before the lua API freeze.
ahfretheim
Posts: 49
Joined: Sat Apr 05, 2014 9:29 pm

Re: Need help with LUA coding - detecting famines

Post by ahfretheim »

cazfi wrote:At the moment lua scripting interface does not provide complete access to game data, but things have been added in priority order. Since you have a real need for this feature, please open a wishlist (Severity: Wish) ticket about it:
http://gna.org/bugs/?func=additem&group=freeciv

This one is probably easy enough that we can still add it to freeciv-2.6 before the lua API freeze.
Thanks crazfi! I'll be sure to do that.
Post Reply