View Single Post
  #1  
Old 01-17-2012, 07:33 PM
Ratatwisker Ratatwisker is offline
Registered Member
 
Join Date: Jun 2009
Posts: 2
Default 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
Reply With Quote