Skill Leveling Limitations and/or Requirements
- David Ward
- Posts: 103
- Joined: Wed Jan 07, 2015 11:44 pm
- Location: Vancouver, BC, Canada
Skill Leveling Limitations and/or Requirements
Is there a way to put a cap on increasing skills, or rather....is there a way to make it so that a skill can only be increased if the character reaches a certain level?
One thing I found with Grimrock 2 was that it was too easy to skill-up. Having 5 skill points for a character that was at level 5 was deadly. Is there a way to limit this?
For example...is there a way to make it so a character has to be at level 4 in order to be able to raise ANY skill to 2. They need to be level 7 to be able to raise any skill to 3...etc.
One thing I found with Grimrock 2 was that it was too easy to skill-up. Having 5 skill points for a character that was at level 5 was deadly. Is there a way to limit this?
For example...is there a way to make it so a character has to be at level 4 in order to be able to raise ANY skill to 2. They need to be level 7 to be able to raise any skill to 3...etc.
Re: Skill Leveling Limitations and/or Requirements
Hi David, I haven't looked in to what you are asking but many of your questions are better placed in the mod creation section of the forums. That is where most of the modders (and thus people who know about scripting and the game engine) hang out and your questions will be more readily answered.
- David Ward
- Posts: 103
- Joined: Wed Jan 07, 2015 11:44 pm
- Location: Vancouver, BC, Canada
Re: Skill Leveling Limitations and/or Requirements
D'oh. Okay thanks.
Re: Skill Leveling Limitations and/or Requirements
You would have to implement your own skill system to do this correctly (easy to do in this game). If you are lazy and want a fast but bad solution, you can check the champions' skill levels whenever they have the potential to change and cancel any skill training where the requirements aren't met, but of course this still allows players to put the skill points there and click "accept", so it's much less elegant.
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.
Re: Skill Leveling Limitations and/or Requirements
I don't think that is possible. What you want is something like this :
Except setMaxSkillLevel doesn't exist. (The above comment was made while I was typing this reply)
What you could do for every champion and all their skill levels :
But you have to do it for each time a player increases a skill beyond your limitation and you have to keep track of which skill was increased and put it back to its limit.
Edit : I didn't write the full script for every champion and skill
Code: Select all
local ch = party.party:getChampion(1)
if ch:getLevel() < 3 then ch:setMaxSkillLevel(2)
What you could do for every champion and all their skill levels :
Code: Select all
local ch = party.party:getChampion(1)
if ch:getSkillLevel("alchemy") == 3 and ch:getLevel() < 3 then ch:setSkillLevel("alchemy",2) ch:setSkillPoints(0)
hudprint("Your max skill level = 2 please distribute them another way")
Edit : I didn't write the full script for every champion and skill
Last edited by Frenchie on Sun Feb 01, 2015 5:16 am, edited 1 time in total.
- David Ward
- Posts: 103
- Joined: Wed Jan 07, 2015 11:44 pm
- Location: Vancouver, BC, Canada
Re: Skill Leveling Limitations and/or Requirements
"You would have to implement your own skill system to do this correctly (easy to do in this game)."
Is it? How so? It seems like there are quite a few *hard-coded* bits that can't just be done away with. Is it a matter of making an entirely new list of skills? Am not sure how to go about that. It seems like there are some limitations on the character creation screen all around. I posted more about this here: viewtopic.php?f=22&t=9409
Is it? How so? It seems like there are quite a few *hard-coded* bits that can't just be done away with. Is it a matter of making an entirely new list of skills? Am not sure how to go about that. It seems like there are some limitations on the character creation screen all around. I posted more about this here: viewtopic.php?f=22&t=9409
- David Ward
- Posts: 103
- Joined: Wed Jan 07, 2015 11:44 pm
- Location: Vancouver, BC, Canada
Re: Skill Leveling Limitations and/or Requirements
Thanks Frenchie. It seems like the thing to do would be to adjust the skills themselves, so if a player wants to increase a skill for a character to 5 as fast as possible (1 point per level on the same skill), that the skill wouldn't be so overpowered by the time they do that. Remaking skills seems to be a challenging feat, however.
Re: Skill Leveling Limitations and/or Requirements
It would be great if that setMaxSkillLevel() could be made.
Have you thought about a skill tree? For example you need at least 2 levels in light weapons and be level 3 before you can invest in heavy weapons. The same for athletics vs dodge, throwing vs missile weapons, concentration vs accuracy vs critical, etc. You could also restrict alchemy to a magic user and you won't see a wizard with heavy weapons.
Have you thought about a skill tree? For example you need at least 2 levels in light weapons and be level 3 before you can invest in heavy weapons. The same for athletics vs dodge, throwing vs missile weapons, concentration vs accuracy vs critical, etc. You could also restrict alchemy to a magic user and you won't see a wizard with heavy weapons.
Re: Skill Leveling Limitations and/or Requirements
Just don't load the standard skills, write your own arbitrary skill system in Lua just like you would anywhere else, and use PartyComponent.onDrawSkills to know when its interface should be displayed.David Ward wrote:"You would have to implement your own skill system to do this correctly (easy to do in this game)."
Is it? How so? It seems like there are quite a few *hard-coded* bits that can't just be done away with. Is it a matter of making an entirely new list of skills? Am not sure how to go about that. It seems like there are some limitations on the character creation screen all around. I posted more about this here: viewtopic.php?f=22&t=9409
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.
- David Ward
- Posts: 103
- Joined: Wed Jan 07, 2015 11:44 pm
- Location: Vancouver, BC, Canada
Re: Skill Leveling Limitations and/or Requirements
That sounds awesome. I wouldn't even know where to begin. I didn't know you could "not load" the standard skills.Just don't load the standard skills, write your own arbitrary skill system in Lua just like you would anywhere else, and use PartyComponent.onDrawSkills to know when its interface should be displayed.
Would the same go for races, classes, and traits? You could just not load the standard ones already built in, make new ones, and implement accordingly?