Topic: Does anyone know the soldier levels for Frisians and Amazons?

beng
Avatar
Topic Opener
Joined: 2023-07-03, 20:41 UTC+2.0
Posts: 29
OS: Debian 13
Version: 1.21 build 6 i think
Ranking
Pry about Widelands
Location: singapore
Posted at: 2025-12-23, 11:35 UTC+1.0

In the wiki page https://www.widelands.org/wiki/SoldierLevels/ the info on soldier levels for Frisians and Amazons is missing. Does anyone know what the max Attack, Defence, Evade, and Health points numbers are for those tribes?

Incidentally, for those searching, for the set_soldiers() function in lua script, which you can use on buildings that can contain soldiers, the order of the stats is: health attack defence evade For example: hq:set_soldiers({1,4,2,0}, 50) will set hq to have 50 soldiers with health 1, attack 4, defence 2 and evade 0. If you try to set soldiers that have stats higher than the allowed max for each type of stat for that tribe, it will crash. This is why we need the info on max soldier levels for Frisians and Amazons.

On how to set different levels of soldiers in a building, refer to https://www.widelands.org/documentation/autogen_wl_map/#wl.map.MapObject.set_soldiers


Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48 UTC+1.0
Posts: 2769
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2025-12-23, 12:52 UTC+1.0

Those values can be be found in data/tribes/workers/[firians/amazons]/soldier/init.lua, e.g. for frisians

Or with lua code from the soldier description: https://www.widelands.org/documentation/autogen_wl_map/index.html#soldierdescription

If want to update the image in the wiki, this would be highly appreciated :)


Top Quote