• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Creating math formula for costs

Omegha

New Member
Joined
Jan 5, 2013
Messages
20
Reaction score
3
Hey! I need to create formula for cost of buying next skill level.

It should give results similar to:
Skill - Cost

10 - 20
20 - 120
50 - 12k
70 - 160k
90 - 800k
100 - 1.5kk
110 - 5kk

of course for each skill (90-91 skill would cost 800.000 gp).

I will try to do it by my own, but if anyone knows the faster way to finding it out, I will be glad.
 
Last edited:
It hasn't a form it could just follow. (that's why it's called formula)
Btw, you have to do it your own if you want like that.

An example of form is, 3,5,7,9,11,13 and so on... The formula would be (2x+1)
Not, 2,5,10,25,30,60,120,500
 
11,9001633861 / 2 * math.pow(1,130158981, skillLevel)
Like this?

Test out some values to see if they match what you want.
I didn't know whether you want the price to increase with every level or that level 10 - 19 cost 20gp etc..
 
11,9001633861 / 2 * math.pow(1,130158981, skillLevel)
Like this?

Test out some values to see if they match what you want.
I didn't know whether you want the price to increase with every level or that level 10 - 19 cost 20gp etc..

Seems perfect, early values are a bit lower, than I expected, but after I realised that player will need to train more than one skill (magic and/or shield), then prices are fine.
Yeah, I wanted them to increase with every level. Thanks a lot!

@edit
I hope I gave you rep, dunno if I can with so little amount of posts.
 
Last edited:
Back
Top