Page 1 of 1

[HELP] How to reset imported heroes back to level 1?

Posted: Sun Mar 10, 2013 8:39 pm
by Alcator
Hello, everyone,

is there a way to modify the level of a Champion in a negative direction, i.e., reduce the Level of Champion? It is very easy to "up-level" a Champion to a specific level if their level is lower, but I couldn't find a way to change it back down.

Since for custom dungeons, you can import your characters from a different game, it has a tendency to make combat/puzzles trivial (when you import artifficially boosted champions). I'd really like to RESET heroes to level 1, in some way. Is it possible?

Re: [HELP] How to reset imported heroes back to level 1?

Posted: Sun Mar 10, 2013 9:02 pm
by Dr.Disaster
You can't. Heroes never lose levels in LoG. If you want to "import" level 1 heroes you have to create new ones.

If you want to re-use the same level 1 hero group for different mods as your personal default party create that party once and then save it to a specific named savegame like "My Level 1 Default Party". Then you can import this group into any game you want as long as you don't overwerite that savegame.

Re: [HELP] How to reset imported heroes back to level 1?

Posted: Sun Mar 10, 2013 9:11 pm
by Neikun
It is the player's option to make the mod easier on themselves by importing. Anyone who wants to experience the mod in its intended manner will play it with a regular party.

Re: [HELP] How to reset imported heroes back to level 1?

Posted: Sun Mar 10, 2013 10:23 pm
by thomson
There is a way. champion:setClass() has a bug and you can exploit it. When you change a class of your champion, it has funny side effects. In particular, it sets level to 1 and experience to 0. With a bit of code, you can use it to level down.

p.s.
This bug exists in 1.3.7. Please don't tell Petri or Antti, as they may fix it ;)

Re: [HELP] How to reset imported heroes back to level 1?

Posted: Sun Mar 10, 2013 11:41 pm
by Komag
that's an interesting bit I had no idea about, thanks!

Re: [HELP] How to reset imported heroes back to level 1?

Posted: Mon Mar 11, 2013 3:24 am
by Marble Mouth
Hi thomson. I've also noticed that changing a character's class can be used to remove their skills. I didn't think to wonder if this was how setClass was supposed to work. Some things go away automatically when you do this, like the ability to cast certain spells. Some things don't go away automatically, like the stat bonuses the character already got for learning a skill (e.g. Strength +1 from Swords 4), but you can also reset these stats if you want to. The ability Porter from Athletics 20 behaves really oddly. When the character's skills get reset, they don't lose the bonus (+15 kg carrying capacity) from Porter. If they level up Athletics to 20 again but previously had Porter, then they won't gain the bonus again. I stopped testing individual skills after that, since this doesn't seem like something I really wanted to mess around with.

Re: [HELP] How to reset imported heroes back to level 1?

Posted: Tue Mar 12, 2013 4:11 pm
by Ixnatifual
I don't think it's very polite to down-level the player's heroes this way. I'd suggest to make a note in the dungeon's description that the dungeon is intended for new level 1 characters. Alternatively you may be able to steal Komag's monster leveling technique to have the dungeon scale with the player's characters if he imports a high-level party.

Ultimately up to you how you do things in your own dungeon, of course. Just my 5 cents.

Re: [HELP] How to reset imported heroes back to level 1?

Posted: Thu Mar 14, 2013 12:30 pm
by Xanathar
Well for some kind of mods it's kinda inevitable - for example it's impossible to do a switching of NPCs (for recreations like EOB for example, or other mods based on that concept) without being able to reset the level.