URL:
  <http://gna.org/patch/?4307>

                 Summary: Add Lua Script Ability to Increase Size Population
Size
                 Project: Freeciv
            Submitted by: markcnz
            Submitted on: Sat 16 Nov 2013 11:39:40 PM GMT
                Category: general
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 

    _______________________________________________________

Details:

Hi,

This is my first post so please forgive me if I get something wrong..

I would like to add more abilities in lua scripting and I thought being able
to increase the city size was a good start.

Attached is the patch using the most current 2.4 branch.

Thanks,
Mark

****** script.lua example usage

-- *********************************************
-- This callback reacts when a city is built
-- *********************************************
function city_built_callback(city)
  edit.city_size_add(find.city(find.player(0),city_name_listed_ID), 5)
end
signal.connect('city_built', 'city_built_callback')




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 16 Nov 2013 11:39:40 PM GMT  Name: lua-increase-city-size.patch 
Size: 2kB   By: markcnz

<http://gna.org/patch/download.php?file_id=19356>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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