I meant the entire algorithm, down to the smallest detail.
ERM has an operator that allows you to find out what will be offered on the next level. This means that Slava has found the entry point to the desired function in the Heroes of Might and Magic code. Perhaps (in ERM, you can't be sure of anything in advance - everything needs to be tested :rolleyes:), this operator will allow you to write a script that generates a tree for a specific hero. The only question is, in what form should this tree be presented? At most, a script can create a text file. This means that another program is also needed to convert these text files into a visual format, for example, a graph. This would undoubtedly be useful for offline play, but it would require a lot of work... However, if someone takes on the second part of the work (interpreting the text file), I could try to handle the first part. But it will only work in WoG and add-ons based on it; unfortunately, it won't work for the classic SoD.
Of course. In the sense that you are talking about, the tree is broken; in a mathematical sense, that number is changed.
Most likely, it is not the number that changes, but its interpretation by the algorithm. After all, if a hero acquires a skill from a witch, instead of the chance of getting it as a new skill, there is a chance to improve it. That is, the skill from the right slot "moves" to the left.