Search found 27 matches

by gm1530
Wed Sep 04, 2013 4:19 pm
Forum: Rulesets and modpacks
Topic: new FreeCiv mod development - NExtended
Replies: 118
Views: 132985

Re: new FreeCiv mod development - NExtended

Very interesting the new Tech Tree for Tribal Age!
by gm1530
Sun Jul 21, 2013 9:57 pm
Forum: Rulesets and modpacks
Topic: Lua Script
Replies: 13
Views: 17819

Re: Lua Script

There's no support for image but only text modifications such as bold, italic, underline, color, and making links to units, cities, or tiles - see "Chat tools" in gtk-clients (opened by clicking button next to chat-line) Yes, there are text modifications in Chat tools, but these (tags ie....
by gm1530
Fri Jul 19, 2013 9:52 pm
Forum: Rulesets and modpacks
Topic: Lua Script
Replies: 13
Views: 17819

Re: Lua Script

Is there any possibility to load an image with lua script in notify module? I've searched on the code about ''message'' parameter in notify and I've found: const char *message . This constant is connected (I think) to send_chat. Now.. Is there any possibility to add at ''send_chat'' a markup languag...
by gm1530
Thu Jul 18, 2013 9:33 pm
Forum: Rulesets and modpacks
Topic: Lua Script
Replies: 13
Views: 17819

Re: Lua Script

Did you try unit:get_homecity() ? Yes, it works! There is a lua function: edit.create_road(tile, name). Now, I would like to create a road from POINT A to POINT B. My attempt: function distance_between(x1, y1, x2, y2) local hdist = math.abs(x1 - x2) local vdist = math.abs(y1 - y2) return math.max(h...
by gm1530
Wed Jun 19, 2013 7:55 am
Forum: Rulesets and modpacks
Topic: Lua Script
Replies: 13
Views: 17819

Re: Lua Script

I would like to reward only the units from a specific city. Now the script rewards every unit. I have to insert ''src_tile'' parameter in the script to define the city, but I don't know how to do. function unit_moved_callback(unit, src_tile, dst_tile) local origin = find.tile(321,336) --Wissant (Fra...
by gm1530
Thu May 09, 2013 4:10 pm
Forum: Rulesets and modpacks
Topic: Lua Script
Replies: 13
Views: 17819

Re: Lua Script

Does this work?
if unit.owner:is_human() then
if has_unit_type_name(unit,'Phalanx') then
if dst_tile.id == beta.id then
Yes! Thank you very much :)
by gm1530
Thu May 09, 2013 11:31 am
Forum: Rulesets and modpacks
Topic: Lua Script
Replies: 13
Views: 17819

Lua Script

Hi, The image is a piece of my scenario (attached) http://gm1530.altervista.org/file/englishchannel.png I would like to create two scripts: one for the red line and another for black line. The idea behind black line is a sort of mission. I've tried to create a script, but it doesn't run. The summary...