Update of patch #2627 (project freeciv):
Status: In Progress => Ready For Test
_______________________________________________________
Follow-up Comment #1:
It turns out it's also an excellent way to exercise trouble with cities
changing hands, and we seem to have a lot of that at the moment.
Test with something like:
/lua print(civil_war(find.player(0),50))
Documentation for the scripting reference on wiki
<http://freeciv.wikia.com/wiki/Events_Reference_Manual#Actions>:
civil_war (player, probability) '''New in 2.4'''
<em class="comment">
-- Possibly throw a player into civil war.
-- probability is the percentage chance of the
civil
-- war occurring (use 100 for certainty), or
if it
-- is zero, the normal calculation is used
(affected
-- by government, happiness, etc).
-- If the chance is not met, nothing happens.
-- If the chance is met, civil war happens as
usual,
-- with appropriate messages sent to the
players.
-- Returns the new AI player or nil.
</em>
(file #12818)
_______________________________________________________
Additional Item Attachment:
File name: trunk-lua-civil-war.diff Size:5 KB
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?2627>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev