Page 1 of 1

Grim 1 trainSkill

Posted: Tue Jan 03, 2023 6:17 pm
by RayB
I know I can use trainSkill' to add skill points to the specified skill of a champion.
Is there any way to subtract skill points from a champion for a given skill?

Re: Grim 1 trainSkill

Posted: Wed Jan 04, 2023 2:23 am
by minmay
That can only be accomplished in Grimrock 1 using the Champion:setClass() method to reset all their skills to 0. However, this won't remove their bonuses from those skills, and will also reset their level and experience to 0 (without resetting their health and energy to their original values either). There is code to solve some of these problems here, but it does not deal with the issue of losing experience, which is probably the hardest part to deal with.