//! textmacro GenerateAbilities
//! externalblock extension=lua ObjectMerger $FILENAME$
//! i
//! i function set(field, value)
//! i makechange(current, field, value)
//! i end
//! i function setl(field, level, value)
//! i makechange(current, field, level, value)
//! i end
//! i
//! i function setAll(abilId, name, toUnitId, reqId, reqLvl)
//! i setobjecttype("abilities")
//! i createobject("Srtt", abilId)
//! i setl("Cha1", 1, toUnitId)
//! i set("areq", reqId)
//! i set("ansf", name)
//! i set("arqa", reqLvl)
//! i end
//! i
//! i
//! i setAll("aua0", "Axeman", "uaxe", "raxe", "")
//!
//! endexternalblock
//! endtextmacro
This works.
But the problem was in:
"(to "+name+")"
and using "arga" instead of "arqa"