Follow-up Comment #10, patch #3495 (project freeciv):

> Now I test the (untested) function, but... Where should I insert? Function
turn_cb(turn, year) or function city_nation_swedish()? 

The function should be inserted on its own (separate function). After that you
could change your function as follows:

function  city_nation_swedish()
      local owner = search_player_with_nation("Swedish") 
      if owner then
        local Stockholm = find.tile(208,93)
        create_city(owner,  Stockholm, 'Stockholm')
      else
        log.error("No player with nation 'Swedish'")
      end
end

(all untested)

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?3495>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to