Page 1 of 1

Items that boost talents

Posted: Sat Oct 16, 2010 10:14 pm
by Susramanian
I'd like to make an item that increases the user's level in some talent by X while worn. I can't find any models in the existing files, which is the only way I know how to 'code' :)

Can anybody help me out?

Re: Items that boost talents

Posted: Sat Oct 16, 2010 11:17 pm
by Shoob
try putting

Code: Select all

talents.T_FEATHER_WIND = math.min((talents.T_FEATHER_WIND or 0) + 1, 5)
into the wielder function of the object.

not sure if it works or not, just replace the T_FEATHER_WIND with the talent (still need the T_ in front though) and the 1 with however much you want to increase it by and the 5 will mostly be the same (training talents will be 10 though).

the only reason why you wouldnt make it a math.min would be for monsters who can have higher talent levels than the player.

Re: Items that boost talents

Posted: Sat Oct 16, 2010 11:30 pm
by Susramanian
Thanks a lot, Shoob!