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?
Grim 1 trainSkill
Re: Grim 1 trainSkill
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.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.