## [1.1x] How to make a skill's max level rise every six levels.

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

Rattlecage
Angel
Posts: 932
Joined: Sun Apr 13, 2003 8:46 pm
Location: The Frozen North
Contact:

### [1.1x] How to make a skill's max level rise every six levels.

How do I make it so a skill's max level rises every six levels? I'm looking to do something like in the mod, Median XL where a skill starts out with a max level of 2 at its required level, and it increases by 1 every six levels. I've read 1.10 Formulae Guide, and I know I have to put something in the "skpoints" column in Skills.txt, but I still can't figure it out on my own. Any help is appreciated. Thanks!
No beating heart I felt. I brought no sights to the silver lips; no warmth from the gold.

k0r3l1k
Angel
Posts: 626
Joined: Sun Sep 09, 2007 3:11 am
Location: Arizona, Prescott

### Re: [1.1x] How to make a skill's max level rise every six levels.

You pretty much need to put an ifcheck into the sklpts field. The following example should accomplish what you want.

(((ulvl+1) > (blvl + (base req level))) ? 1 : 199

I will type out what exactly this means to elaborate.

If Character's level plus one is greater than the skill's base level plus the required level of this skill, then skill point cost will be 1; otherwise it will be 199.

Keep in mind, there is no variable to reference the skill's base level, you will need to alter the formula to insert that number.