Preventing skill point allocation base on conditions

Post here about all aspects of D2 mod making whether it's information, problems or whatever. Please specify whether your post is relating to Classic D2 or the Expansion.

Moderator: Nizari

Post Reply
User avatar
Posts: 27
Joined: Fri Apr 03, 2020 12:13 pm
Location: Canada

Preventing skill point allocation base on conditions

Post by kain_abel_666 » Sun Jan 10, 2021 11:37 pm

I am trying to prevent players from being able to invest in certain skills once they have selected a certain other.

Each character starts with +2 to Mastery, a custom stat that allows them to invest in each trees passive mastery skill.
These mastery skills are required to be invested in prior to being able to select the starter skills.
The mastery allots the character +1 to Choice_1, a custom stat, and i want the skill allotment to require the player have this stat.
The mastery will also reduce the mastery stat so that players can only invest in 2 Mastery (trees) or chose only one (keeping one will add bonuses to skill damage via conditional synergies).

I haven't been able to find a way to block the investment of skill points - the skpoint column in Skills.txt helps me from advancing the skill level but it allows players to invest(waste) point in the skills with no benefit.

I remember this feature in LRdO with their passives and i wish i could figure it out.

Any help would be much appreciated.
Banished to the space between worlds

User avatar
Junior Member
Posts: 130
Joined: Fri Dec 01, 2017 2:08 am

Re: Preventing skill point allocation base on conditions

Post by Cypress » Mon Jan 11, 2021 3:55 am

You don't need to use precious stats/states on that, you can reference the base skill level instead. All you need to do is make a conditional that sets the required skill points to an unattainably high value, like 999, when you have invested into the defined skills.

Post Reply

Return to “General Mod Making”