Well, there's something clearly wrong in what you've posted (pasted?):
But there's a working example starting here:
https://github.com/Dugy/Legend_of_the_I ... n.lua#L757
(Totally without testing it, I think you need to use u.__cfg, not the u you get from wesnoth.units.find_on_map() )
Code:
local modifications = u, "modifications")
https://github.com/Dugy/Legend_of_the_I ... n.lua#L757
(Totally without testing it, I think you need to use u.__cfg, not the u you get from wesnoth.units.find_on_map() )
Statistics: Posted by white_haired_uncle — Today, 1:52 am