Oct 16, 2004 09:48
Cartographer
Cartographer now has (in an unreleased version) support for scriptable filters.
The scripting language is "Lua". You can download documentation and a stand-alone version of Lua to try it out at:
http://www.lua.org/
It might be worth your time learning it if you're interested in writing filters for the next release of Cartographer.
An example of what you can do is this script:
[code:1:ed96f48f01]-- A filter to fill the screen (or selected area) with diagonal
-- "strokes" using the current pen.
for n = 1, 100 do
x = math.random() * 225 + 10
y = math.random() * 225 + 10
line(x, y, x + 10, y + 10)
end[/code:1:ed96f48f01]
If you save the above and place it in the filters directory, it is loaded up and added to the "Filters" menu. Clicking on the filter runs the script. You can run it multiple times and even limit the effect of your script to the current selection. (The above script uses your currently selected tile type).
The background of the following map was generated using the above script:
http://www.winbolo.net/mapcollectioninfo.php?id=5278
The scripting language is "Lua". You can download documentation and a stand-alone version of Lua to try it out at:
http://www.lua.org/
It might be worth your time learning it if you're interested in writing filters for the next release of Cartographer.
An example of what you can do is this script:
[code:1:ed96f48f01]-- A filter to fill the screen (or selected area) with diagonal
-- "strokes" using the current pen.
for n = 1, 100 do
x = math.random() * 225 + 10
y = math.random() * 225 + 10
line(x, y, x + 10, y + 10)
end[/code:1:ed96f48f01]
If you save the above and place it in the filters directory, it is loaded up and added to the "Filters" menu. Clicking on the filter runs the script. You can run it multiple times and even limit the effect of your script to the current selection. (The above script uses your currently selected tile type).
The background of the following map was generated using the above script:
http://www.winbolo.net/mapcollectioninfo.php?id=5278