jd678
|
  |
| Joined: 18 Apr 2008 |
| Total Posts: 11529 |
|
|
| 07 Sep 2013 10:29 PM |
// LEVEL UP SCRIPT/CODE global.level+= 1; global.nextexp = round(bias(0.15, (global.level+1)/100)*global.maxexp);
Explanation:
0.15 -- the bias curve (global.level+1)/100 -- next level divided by maximum level, used to find the EXP amount needed to get to next level global.maxexp -- maximum EXP player can earn
--@Jd678_RBLX |
|
|
| Report Abuse |
|
|
jd678
|
  |
| Joined: 18 Apr 2008 |
| Total Posts: 11529 |
|
| |
|
|
| 07 Sep 2013 10:38 PM |
http://wiki.roblox.com/index.php/Function_Dump/Mathematical_Functions And there is no += operator in Lua... |
|
|
| Report Abuse |
|
|
jd678
|
  |
| Joined: 18 Apr 2008 |
| Total Posts: 11529 |
|
|
| 07 Sep 2013 10:40 PM |
@not
this isn't Lua coded obviously....
I was wondering if I could do something similar in lua
--@Jd678_RBLX |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2013 10:45 PM |
| Well you asked if it can be done "for lua" suggesting you wanted a translation into Lua :) |
|
|
| Report Abuse |
|
|
jd678
|
  |
| Joined: 18 Apr 2008 |
| Total Posts: 11529 |
|
|
| 07 Sep 2013 11:04 PM |
@cm32
I guess I did, but what I mostly meant is if I can create something similar to a bias curve :S
--@Jd678_RBLX |
|
|
| Report Abuse |
|
|