Dynamically adjust Leadership of units
Hi,
I'm currently trying to dynamically modify the leadership per unit of, say, trolls. To be more precise, I want the leadership of a specific unit to be as high as the hero's current leadership.
What I've already tried without success (leadership is a local variable initialised with the hero's leadership):
Attack.atom_setpar("troll","leadership",leadership ) -- apparently this method does not exist
Attack.act_leadership(cell,leadership) -- this method also doesn't exist as it seems
Attack.act_attach_modificator(cell,"leadership","l eadtroll_mod",leadership) -- has no visible effect
Is it even possible to do what I want? Any help is appreciated!
Regards
|