|
| 27 Apr 2016 04:44 PM |
| I'd like to make a level system. How would I script that? |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2016 04:47 PM |
| Like, what equation to make an infinite amount of levels? Or how to make levels in general? |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2016 04:47 PM |
Algorithm
if xp >= level.Value * 150 then xp = 0 level = level + 1 end
|
|
|
| Report Abuse |
|
|
|
| 27 Apr 2016 04:54 PM |
| Like how to make levels in general such as max level 100. You need BlahBlah xp to go up a level. |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Apr 2016 05:05 PM |
Basicly make a GUI with a word something like Exp: 0 Level: 0
then when a mob/however you want something killed add exp to a value. So in starter GUI place a number value. That value will go into all players.
game.Players.LocalPlayer.PlayerGui.Value = game.Players.LocalPlayer.PlayerGui.Value + whatever xp you want.
You can also do the same but instead of adding a value in starter gui do it in a leaderstat instead. |
|
|
| Report Abuse |
|
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
|
| 27 Apr 2016 05:06 PM |
Not everytime someone is going to make it for you. You should be able to put use brain and figure a wayout. *Not Insult*
|
|
|
| Report Abuse |
|
|
|
| 27 Apr 2016 05:29 PM |
| I never asked for somebody to "make it" for me. I asked how would I make a level system. If you don't understand my question yet then figure it out rn or don't respond please. I'm not here for negative comments. Thank you everybody above for the help. No need to be so ignorant. I'm not trying to insult you myself but that's not a way to approach somebody without knowing the question. That's just simple ignorance. |
|
|
| Report Abuse |
|
|
| |
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
|
| 27 Apr 2016 05:38 PM |
I was just saying that since I've seen you asked alot lately here without any sample code which kinda indicates you didn't even try to find a way. I don't think that's arrogant tbh...
|
|
|
| Report Abuse |
|
|
|
| 27 Apr 2016 11:07 PM |
| I would like you to view my posts and see how many times I asked. I only asked 4 times. You act as if I've asked you to script me a whole game. Please leave my post if you are going to be ignorant. |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2016 11:08 PM |
| learn tables + data storage, then you got your level system. |
|
|
| Report Abuse |
|
|
| |
|
Pirate275
|
  |
| Joined: 06 Feb 2016 |
| Total Posts: 12 |
|
|
| 27 Apr 2016 11:58 PM |
Start off by scripting stats for it. Stuff like Level, EXP, MaxEXP or you can use Ranks. Then you want to create a GUI that shows the player's stats like so.
Level ---------- EXP/MAXEXP
Then have a script somewhere (not sure) doing the following:
if EXP.Value >= MaxEXP.Value then EXP.Value = 0 -- Reset the EXP MaxEXP.Value = MaxEXP.Value * 1.25 Level = Level + 1 wait() end
It would be something along the lines of that.
|
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
|
| 28 Apr 2016 12:07 AM |
Values you'll need. -Level -Exp -ExpToNextLevel -MaxLevel
So then you just if not(Level >= MaxLevel) then if Exp >= ExpToNextLevel then Level = Level + 1 ExpToNextLevel = ExpToNextLevel + 100 end end |
|
|
| Report Abuse |
|
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
|
| 28 Apr 2016 05:20 AM |
| That's not ignorant lol. I think you should learn definitions of words before you use them... |
|
|
| Report Abuse |
|
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 28 Apr 2016 06:39 AM |
eRanged, OP asked "how would ***I*** make a level system"
You went on to directly say "Not everytime someone is going to make it for you."
You didn't even read the title yet you're arguing that wasn't ignorance. |
|
|
| Report Abuse |
|
|