Announcement

Collapse
No announcement yet.

SLIC: Peace bonus?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SLIC: Peace bonus?

    Anyne have an idea how in SLIC I can calculate how many turms a player has been at Peace? And I'd have to make it so that the human won't get the bonus for starting a war one turn and making peace next.


    What I want to do is have a player earn 1 point per turn for peace. At 10 years of peace there is a goldand Pw bonus of 2% of the total PW and Gold produced. at 20 - 5% etc. I'd probably work out the percentages later but I want to make a bonus system for non-war mongers....
    Formerly known as "E" on Apolyton

    See me at Civfanatics.com

  • #2
    Either of the following can be used to test if a player is at peace:

    Code:
    INT TurnsAtWar(int < player>, int < player>)
    
    Returns -1 if they've never been at war and otherwise what it says (0 means they have been but are not now at war).
    
    INT TurnsSinceLastWar(int < player>, int < player>)
    
    Returns  -1 if they've never been at war and otherwise what it says (0 means they are now at war).

    Comment


    • #3
      Awseome! Thanks Peter!
      Formerly known as "E" on Apolyton

      See me at Civfanatics.com

      Comment

      Working...
      X