Grim 1 trainSkill

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Posts: 135
Joined: Fri Mar 06, 2015 3:45 am

Grim 1 trainSkill

Post by RayB » Tue Jan 03, 2023 6:17 pm

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?

Posts: 2753
Joined: Mon Sep 23, 2013 2:24 am

Re: Grim 1 trainSkill

Post by minmay » Wed Jan 04, 2023 2:23 am

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.

Post Reply