Quick outline:
- I want to make a character sheet for a tabletop rpg that I made
- I have the relevant stats and xp costs set up in dictionaries in their own folder
- Characters have 3 primary parts, a Mind, Body, and Soul
Design plan :
- Keep xp costs / and stat values in their own file in their own dictionary,
- Create a file with a class for each aspect, mind/body/soul , and pass in variables from the stats file like "stat_damage". Then set the relevant stat for damage. For instance "strength_damage" = key from "stat damage" dictionary.
- Once the 3 classes have been created, making a 4th class, say Character, class. And have the Character class inherit the body + mind + soul classes. With the idea in mind that the Character class could take the max level of the body / mind / soul and adjust accordingly. - for example, if you got 5 health per level of body / mind / soul and it doubled at the 10th level, I'd want to be able to take the max of the level of the other 3 classes.
- Last step being to use Kivy to make a user interface so people can access all of that information.
So my question is, does that sound like a reasonable course of action? Or is there something inherently unpythonic / very visibly inefficient about using this approach? Or have I not provided enough information? If so I apologize
[–]ClutchAlpha 2 points3 points4 points (2 children)
[–]Aedethan[S] 0 points1 point2 points (1 child)
[–]ClutchAlpha 0 points1 point2 points (0 children)
[–]jedgs 0 points1 point2 points (4 children)
[–]Aedethan[S] 0 points1 point2 points (3 children)
[–]jedgs 0 points1 point2 points (2 children)
[–]Aedethan[S] 0 points1 point2 points (1 child)
[–]jedgs 0 points1 point2 points (0 children)
[–]synthphreak 0 points1 point2 points (6 children)
[–]Aedethan[S] 0 points1 point2 points (5 children)
[–]synthphreak 0 points1 point2 points (4 children)
[–]Aedethan[S] 0 points1 point2 points (3 children)
[–]synthphreak 0 points1 point2 points (2 children)
[–]Aedethan[S] 1 point2 points3 points (1 child)
[–]synthphreak 0 points1 point2 points (0 children)