Intro
Hallo I am making an rpg and so far it seems like only skill system is left. We will end up with a lot of skills. The way you train them isn’t by the traditonal ap/sp system, we use something like the game “Mabinogi”.
If you don’t know how it works you can read the section below else you can just skip to the problem.
The system
To train a skill you’ll have to do a certain task x amount of times to gain experince. When experince of that skill is on 100% it levels up. When you level up the number of task incresses and new ones may be added, they varies from skills to skills. Some examples to this is:
Sword master lowest rank:
Attack an enemy with Sword. exp 10 amount of times you can do this 10
Defeat an enemy with Sword. exp 20 amount of times you can do this 5
Sword master highest rank:
Defeat Strong enemy with Sword 0.01 2500
Defeat an Awful enemy with Sword 0.1 300
Defeat a Boss enemy with Sword 1.0 80
Cooking:
Make any dish by mixing cooking ingredients.exp 6 repeatible 100
cooking highest rank:
Steam a Dish 20 1
Make a Pie 20 0.5
Eat a Pie 50 0.2
Make Jam 50 0.2
Learn More from Friends or a Book 1 50
The Problem
I’m relatively new to coding and I can only think of one way to program this, however it’s going to take tons of space and a lot of resources on the computer its running on. So my question is how would you program this?
The way I was going to do this is making a script pr class and save all the currently values for all the different skills but we are talking about a game that have a mastery for all kinds of weapons, one skill for each magic and so on. So any ideas are welcome. If you’re unsure what my problem is or how the system works please don’t hassitate to ask…My last 3 questions was ignored :,c
I’m not asking for you to provide the finished code just more the theory behind it.