Welcome to the FC events specification discussion page. These events allow you to create scenarios for FC similar in the way to scenarios created for Civ2/ToT. The initial list of events will be small but we'll continue to add new stuff.

If you have any ideas for events or functions for the Freeciv event language, please post them here on this page. The discussion page. Good ideas and suggestions will, in time, be added to the main page.

--CapTVK 12:45, 27 Apr 2005 (PDT)

Too complicated, too much like programming.[]

As it stands it looks way too complicated. I hope the examples bear no reference to the actual syntax used in the scripting itself. The rulesets are understandable right now, this isn't. I would suggest making making it look close to what the current rulesets look like. (same kind of syntax: [] and foo={"",""} ) --Albatrossix 22:25, 23 May 2005 (PDT)

Is There A Way To Declare War via an Event?[]

I'm working on a ruleset for a fantasy world I'm building, and I've come to a roadblock while designing a 'final boss' of sorts.

Long story short, the boss is a special AI empire that appears only under exceptionally rare circumstances. When it spawns, it automatically declares war on all players that meet the criteria. However, the lua documentation says nothing about a "declare war" function. I remember reading about such a function somewhere, but I can't find it. Is it possible? Thanks for reading! If anyone can provide information it would be greatly appreciated!

StillTheRexYo (talk) 06:43, December 21, 2019 (UTC)

  • Probably no such function with current Freeciv API. All I can pretend is to wrap the server into a script (e.g. Python) that, as got some server's output (that is doable with print() Lua function in some callback) modifies the savegame and relaunches it with the modified one, but I hardly will dare to do such a task myself :) Ihnatus (talk) 15:44, December 22, 2019 (UTC)

Thank you for the information! I really hope they add this in the future. It would be really useful! :) StillTheRexYo (talk) 19:10, December 30, 2019 (UTC)

Lua-Created Players Instantly Die[]

Pretty self-explanatory. Players created with a script spawn in and instantly die. This is likely due to the fact that they spawn in with no cities and no units and, because they're dead, won't be able to create any. Has anyone found a way around this?

StillTheRexYo (talk) 00:18, January 1, 2020 (UTC)

  • My bad! It was just an issue because my function for creating the nation's city wasn't working. Works totally fine, now! Have a good day! StillTheRexYo (talk) 01:33, January 1, 2020 (UTC)