1 You need the animal graphics. I used the (amplio2) "animals.png" file, link -
http://forum.freeciv.org/f/download/fil ... &mode=view
This file goes in "...share/freeciv/amplio2/animals.png"
2 Need a new file "..share/freeciv/amplio2/animals.spec" which refers to that "animals.png" file with these lines -
Code: Select all
[file]
gfx = "amplio2/animals"
3 That file needs to be referenced by the "...share/freeciv/amplio2.tilespec" file, which needs lines -
Code: Select all
files =
"amplio2/animals.spec",
In the next steps, "dino" is the name of my custom ruleset, substitute it with the name of yours.
4 Edit "..share/freeciv/dino/terrain.ruleset" and add the terrain(s) for each animal. For example, under [terrain_deep_ocean] edit the line
Code: Select all
animal = "Kraken"
5 Edit "..share/freeciv/dino/units.ruleset" to add the animal units. The Kraken example -
Code: Select all
[unit_animal_kraken]
name = _("Kraken")
class = "Sea"
tech_req = "None"
obsolete_by = "None"
graphic = "u.kraken"
graphic_alt = "None"
sound_move = "m_generic"
sound_move_alt = "m_generic"
sound_fight = "f_generic"
sound_fight_alt = "f_generic"
build_cost = 10
pop_cost = 0
attack = 2
defense = 1
hitpoints = 10
firepower = 1
move_rate = 2
vision_radius_sq = 2
transport_cap = 0
fuel = 0
uk_happy = 0
uk_shield = 1
uk_food = 0
uk_gold = 1
flags = "NoBuild", "Cant_Fortify", "Unbribable", "IgZOC"
roles = ""
helptext = _("\
Watch out for wild animals.\
"), _("\
Krakens live in Deep Oceans, and can attack adjacent tiles.\
")
Code: Select all
[effect_barb_disappear]
type = "Retire_Pct"
value = 10
reqs =
{ "type", "name", "range", "present"
"NationGroup", "Barbarian", "Player", TRUE
"Nation", "Animal Kingdom", "Player", FALSE
"Age", "5", "Local", TRUE
"CityTile", "Center", "Local", FALSE
}
Optional stuff:
8 If you would like to have killing an animal give a bonus, edit your "..share/freeciv/dino/script.lua" and add a unit_lost_callback(). See this link -
http://forum.freeciv.org/f/viewtopic.ph ... 556#p98995
9 Since the start of the game is now more dangerous, I like to add a strong defender to the start units. In file "..share/freeciv/dino/game.ruleset" -
Code: Select all
set =
{ "name", "value", "lock"
"startunits", "cwxD", FALSE
...
Code: Select all
set =
...
"animals", 30, FALSE