Legend of Grimrock 2

Legend of Grimrock 2

133 ratings
How to respec a character
By Haze System
Here I will show you how you can change your character's name, race, sex, and class, as well as alter skills.
   
Award
Favorite
Favorited
Unfavorite
Enabling Console
First, you will need to find the configuration file for Legend of Grimrock 2.

  • Navigate to Documents/Almost Human/Legend of Grimrock 2
  • Open grimrock.cfg in a text editor of your choice
  • Search for "console" (lines 27 and 28) and edit the two lines to look as follows:
    console = true consoleKey = 192
  • Alternatively, "consoleKey" can be left at the value 220, which is the \ | key.

Now when you are in-game or in the dungeon editor you will be able to open the console by hitting the ` ~ key on your keyboard.

For a list of other possible keys to put the console key on, check out this page:

http://www.indigorose.com/webhelp/tu/Program_Reference/Misc/Virtual_Key_Codes.htm

Find the key you want in the character column on the right, and use the corresponding number in the decimal column.

In choosing a key for the in-game console, be sure to avoid any conflicting usages of a key, i.e. you don't want to put it on the W key, as it would open and close every time you try to move forward in the game.
Editing the Character
To be able to edit your characters you must be in game. Find a safe place that you can sit and not worry about being attacked.

First, you will need to determine which character you would like to change. The characters are laid out in the UI as below:

1
2
3
4

Note which number corresponds to the character you wish to alter. Now, you will want to open the in-game console with the ~ or \ key as you defined in the config file. In the commands below, replace the capital X with the number of your character (e.g. getChampion(3) will use your 3rd character).

Copy and paste the commands into the console in-game and edit them as needed. Replace the italicized text at the end with one of the options listed.

Note: Commands and options are case sensitive. If you get an error saying something about "nil value" check all case, make sure options that should be in quotes are in quotes, and make sure you have the proper characters in the right place, such as the colons.

Set enabled
party.party:getChampion(X):setEnabled(enabled)
Definition:
Disables a character completely. The character will appear as an empty slot, but can be re-enabled at any time. Can also be used to create a new character if a slot was left empty at character creation.

Options:
false - Will disable an existing character.
true - Will re-enable a character or create a blank level 1 Human Fighter if used on an empty slot.

Example:
party.party:getChampion(2):setEnabled(true)

Set name
party.party:getChampion(X):setName("name")
Definition:
Sets the name of a character. Note that the enclosing quotation marks are required.

Options:
Any text string. Limit of 20 characters.

Example:
party.party:getChampion(4):setName("Lauren")

Set race
party.party:getChampion(X):setRace("race")
Definition:
Sets the race of the character.

Options:
"human", "minotaur", "lizardman", "insectoid", or "ratling"

Example:
party.party:getChampion(3):setRace("ratling")

Set class
party.party:getChampion(X):setClass("class")
Definition:
Sets the class of the character. Note: Does not change stats or skills.

Options:
"alchemist", "barbarian", "battle_mage", "fighter", "knight", "rogue", or "wizard"

Example:
party.party:getChampion(1):setClass("battle_mage")

Set Sex
party.party:getChampion(X):setSex("sex")
Definition:
Sets the sex of the character. Note: Only changes the voice of the sounds the characters make in-game.

Options:
"male" or "female"

Example:
party.party:getChampion(2):setSex("female")

Set Portrait
party.party:getChampion(x):setPortrait("assets/textures/portraits/race_gender_xx.tga")

Options:
race: human, minotaur, insectoid, lizardman or ratling
gender: male, or female
xx: 01 to 07 for all humans, 01 to 06 for male ratlings, 01 to 04 for everything else
NOTE: choosing a portrait that did not exist crashed my game. Always be sure to save before making changes, and choose only portraits that exist.

I have not tested it yet, but I believe that you can create a custom portrait, drop it in the appropriate folder, and name it whatever you want. Then instead of using the file name as I've described here, simply use your custom one.

Example:
party.party:getChampion(1):setPortrait("assets/textures/portraits/minotaur_male_02.tga")

Credit for how to change your portrait is given to Dr.Disaster


That covers all of the relevant commands for changing the character itself.
Changing skills
Change stats

party.party:getChampion(character number):setBaseStat("attribute",number)

Example:
party.party:getChampion(2):setBaseStat("willpower",18)

Level up
party.party:getChampion(X):levelUp()
Definition:
Gives just enough experience points to get to the next level.

Options:
No options.

Example:
party.party:getChampion(3):levelUp()

Give skill points
party.party:getChampion(X):addSkillPoints(amount)
Definition:
Gives the character the indicated number of skill points.

Options:
Any number. Only 80 skill points are needed to level every skill from 0 to 5.

Example:
party.party:getChampion(3):addSkillPoints(420)

Train skill
party.party:getChampion(3):trainSkill("skill", levels, dontSpendPoints)
Definition:
This command increases or decreases a given skill by a certain number of points.

Options:
  • skill: "accuracy", "air_magic", "alchemy", "armors", "athletics", "critical", "concentration", "dodge", "earth_magic", "fire_magic", "firearms", "heavy_weapons", "light_weapons", "missile_weapons", "throwing", "water_magic"
  • levels: Number in levels to increase or decrease skill. If a negative number is used, the skill level will be decreased, and a positive number will increase the skill level. If decreasing, leave out the final option or make it false to refund the skill points used.
  • dontSpendPoints (optional):
    true - Doesn't use character's skill points.
    false - Removes from skill points the number of levels indicated in command.
    Defaults to false.

Example:
Increase level
party.party:getChampion(4):trainSkill("light_weapons", 3, true)
Decrease level
party.party:getChampion(4):trainSkill("light_weapons", -3)

Traits
Add trait
party.party:getChampion(X):addTrait("trait_name")
Remove trait
party.party:getChampion(X):removeTrait("trait_name")

Example:
Add trait
party.party:getChampion(2):addTrait("head_hunter")
Remove trait
party.party:getChampion(2):removeTrait("head_hunter")
48 Comments
Trax 9 May @ 2:00pm 
Nice work
Haze System  [author] 23 Nov, 2023 @ 1:17pm 
happy it helped so much 😄
Gay Lord 13 Nov, 2023 @ 9:29am 
Just wanted to add to the thanks and give this guide an award! I realized about 10% into the game that my rogue was actually a fighter. Was about to give up my playthrough until I found this guide. Missed about 4 levels of level up bonuses for the rogue, but whatever! Thanks and thanks for saving my playthrough <3
76561197970458507 18 Aug, 2022 @ 8:42am 
For anyone playing Lost City with OP characters. You can reduce resistances using the Base stat command too - you might have to reduce them a LOT if you used Tomes etc, as the character sheet will max out at 100 Resistance but in fact the game stores the parameters much higher.

eg.

party.party:getChampion(2):setBaseStat("resist_cold",-1000)
Haze System  [author] 12 Aug, 2022 @ 6:20am 
thanks Sir Dreweof! I'll update the guide :)
SirDruseof 8 Aug, 2022 @ 11:35am 
Not sure why, but I couldn't get it to work without typing "party." before any of these commands. Maybe it has something to do with playing a player made campaign rather than the default, but maybe it'd help people with the same problem as me.

Also, I didn't see it in here, but traits can be added/removed in with : party:getChampion(X):addTrait("trait_name")
party.party:getChampion(X):removeTrait(trait_name")

so Ex;
party.party:getChampion(2):addTrait(head_hunter")
party.party:getChampion(2):removeTrait(head_hunter")
Sknarfm 14 Jul, 2022 @ 6:34pm 
@malcomdale thanks! just tried to fix a mistake with a character skill. Your tip works.
malcolmdale 6 Feb, 2022 @ 2:10am 
I had to change the syntax to party.party:etc for all your commands. Sorry its so late but maybe somebody e;se is still playing.
Haze System  [author] 27 Aug, 2021 @ 7:42am 
You're welcome! And thanks for the update. I take it all the other commands don't use the "party." part anymore? I'll update the guide to reflect that.

I haven't played LoG2 in years but have been meaning to get back to it and beat it someday haha.
monkeychuka 26 Aug, 2021 @ 1:50am 
I had to change the command syntax slightly to get it to work e.g.:

party:getChampion(2):addSkillPoints(19)

Thanks so much for this! It was driving me nuts that my warrior had specced into Maces and I kept finding all these cool Swords...