 # anyone know the creation time formula?

10 posts

 01 = 100% 08 = 098% 64 = 096% how does that work? it’s powers of 8 (i may have said that wrong). 100% is 8^0, 98% is 8^1, 96% is 8^2, so on. I made a spreadsheet with more Info about this: [https://docs.google.com/spreadsheets/d/1PJANSGfZLvlgBSaL0wLvpBeIKuJUYmmyO49ID5U42HQ/edit#gid=0](https://docs.google.com/spreadsheets/d/1PJANSGfZLvlgBSaL0wLvpBeIKuJUYmmyO49ID5U42HQ/edit#gid=0) really? so it’s steps instead of formula? yes, well thats easier to write in code than to think of some complicated formula It’s actually pretty easy to do it if you use logarithms. I don’t know what language you’re using or what functions it has, but here’s a formula that would do it for you: newTime = 50\*baseTime / (50- (log(creationScore)/log(8)) ) the log(8) at the end is unnecessary if your logarithm function can use a base of 8. Thanks, I might try this, if the result is kinda similar only more rounded. I never really needed logarithms until now and didn’t really learn it in school so I don’t really have experience using them. Atm the code is like this: BigInteger baseValue = CreatingPower; int percent = 0; while (baseValue \> 10 && percent \< 90) { percent+=2; baseValue = baseValue / 8; } return (BaseDuration \* (100 – percent) / 100); I don’t know if log is compatible with what you’re using for BigIntegers, but if it is, you should have the same result if you replace the code with this (or the equivalent): int percent = min(90, 2\*log(CreatingPower)/log(8)); return (BaseDuration \* (100 – percent) / 100); It is not really compatible with it. BigInteger is a Class I wrote by myself, cause unity doesn’t support it and I need it for high values like I use in this game. I think I will keep my code for now. At least iam sure it works there shouldn’t be much difference either. Thanks anyway. to me it looks like cube roots: cube root of 8=2, 100-2=98; cube root of 64=4, 100-4=96; etc, but i could easily be wrong