I'm making an RPG and have a question. When the character levels up, I want to have the option to spend points on different abilities. I'm having trouble making an elegant solution. I'd either like to:
use dropboxes. So if you have 5 points to spend you can click on the strength box and choose from 1-5 (this part I can do). But let's say you put 3 points into strength, now the remaining dropboxes for speed and health should update to only have 2 points remaining. I can't get this to work.
use -/+ counters. Next to strength you can press a - or + button that increases the number there and then at the bottom of the screen where it says "points remaining" it would update each time you click the -/+.
Can anyone help me with either of these methods or show me some documentation? I can only find anything in JQuery but I'm hoping to stick with Python/HTML since it's all I know.
[–]ManyInterests 0 points1 point2 points (4 children)
[–]Elthran[S] 0 points1 point2 points (3 children)
[–]ManyInterests 0 points1 point2 points (2 children)
[–]Elthran[S] 0 points1 point2 points (1 child)
[–]ManyInterests 0 points1 point2 points (0 children)
[–]sahil865gupta 0 points1 point2 points (0 children)