So i want to make a game, but i need to calcuate a lot of things per player. (Every player has a lot of stats, like strength etc…, and i need to use that to put it in a formula that will calculate the amount of damige a hit will deal to a enemy.)
I was wondering how i could achieve this. (it could be anything, as long as it helps me)
I though about it for a while and searched the internet, but i found nothing what i want to achieve. I wanted to make this, by using tables for every player. But i failed.
Could someone help me?
Should i use events, to tell the script when to calculate something, and where should i store my data?
I dont exacly get what you are trying to say. My problem is that i need to handle a lot of values. The formula’s are not what i am asking for, but thanks for the idea!
Yes, but no. Instead of using leaderboards and a heck ton of intvalues, i want to make this with a table for every player, and that the information in the table changes, and when that happens it will calculate the damige
And i want to connect eachothers stats (different players) together, to get the amount of damige it will deal to the target.
(So like the target has x defence and you deal x damige than you deal x damige)
Yeah so then do what I said
get every player’s stats, then add all of the player’s stats and divide it by the players. Then Multiply it by the Defense (it should be under 1 or they will do more damage)
Yeah but i want to get the stats, but how should i do that? ( Basicly thats the question) and do this 10x over to calculate the damige (use 10 different stats, like how tired you are and things like that)