Thank you again for these answers.
No. You can get and set the number of unassigned ability points, but there is no event that tells you when it changes. You could check it on a timer, but that's not really nice.
Well, I guess I could do something like that :
- Get and store in a tmp variable the value of unassigned ability points
- Then build some kind of loop comparing that tmp variable with the actual value of unassigned ability points
- If my tmp variable is greater than the value of unassigned ability points, it would mean an ability point has been assigned
The idea is to watch when a character levels up and gets a new combat ability point. When he does, he'd get a special item (like a "Combat Ability Book"). If he wants to use his point into a vanilla abilities, he'd assign it like he normaly would but that book would be consumed (to make it disappear without consequence).
However, if he wants to use that point to buff his unarmed damage, he would have to combine that book with another custom item (such as a "Martial Artist Mastery" unique item given through a quest).
The "Martial Artist Mastery" item wouldn't be consumed.
The "Combat Ability Book" item would be consumed and the value of unassigned combat abilities would be decremented.
The combination of these 2 item would grant an "Unarmed" item.
The number of "Unarmed" items stacked would represent the level of the ability.
Thoughts?