Sign in to follow this  
C_Programmer0101

Unity Stat Leveling System

Recommended Posts

Hello Community, I am curious if there is an example leveling system out there that I can use. The type of leveling system is for a RPG game and will get a person from level 1 to 40. Any suggestions thanks.

Share this post


Link to post
Share on other sites
I, for one, would answer your question, but there's not enough "stuff" to go on. I need more information than "for a RPG game". Go back, include some more details, and maybe we can help you out.

Share this post


Link to post
Share on other sites
Thanks for your response :)

I want to create a leveling system where a hero can gain points for each kill he gets. After a certain amount of points he will level up to level 2. The cap off is 40. I have a great idea on how I can do it but would like to view stuff on proven ways that works. I would like for the code to be in C++ even though the game I am programming is not in C++ I use C like scripting. The game I am making is 3D. What specific information would you need in order to assist me better?

Share this post


Link to post
Share on other sites
EDIT:
Never mind, you said not c++. But you would have to call c++ functions anyway for your scripting language, so why not just add script functions that call c++ code?


It wouldn't be that difficult. You could do something like this where cCharacter is your character's class:

void cCharacter::killNPC(/*input*/)
{
//Do the regular kill stuff
xp+=NPC.level; //where xp is your characters experience points nad NPC is the person you killed
CheckXP(); //Check to see if level up is necessary
return;
}

void cCharacter::CheckXP()
{
int xp_needed = 100; //You can change that
if(xp>=xp_needed && level <= 40) {
level++; //Increment level
xp=0; //Reset experience
}
return;
}

Share this post


Link to post
Share on other sites
Most leveling systems are not a linear distribution of experience vs levels, usually the distribution is exponential increase of some sort until it possibly tapers off in the upper levels (assuming you want them to max out the character)

This should also increase the reward the person gets while settling into the game, quickly achieving goals, and allowing them to quickly increase character stats will greatly increase their drive to further develop their character. By weening them off the speed of achieving rewards, it should draw them further into the game, increasing their desire to be rewarded.

Also as the character increases level and achieves more skill points, the enemies they could encounter would generally be tougher and give more experience. So increasing exponentially experience required may still only give a linear distribution of time/level. I would think you would want time/level to increase exponentially as well, so you would have to take into account this as well.

your experience per level would depend entirely on the amount of experience the player gets from each kill, as well as the length of the game/number of killable (experience gaining) things within the game. If your game is only a few levels long, being able to only reach level 3 at the end makes the rest of the leveling pointless.

I haven't made anything more than a simple rpg though (stunning state of the art 2-d graphics, green dot for the hero, and red for the enemies), so there might be someone else on here more knowledgeable who will be able to help you more.

Share this post


Link to post
Share on other sites
I just set mine up so the player had three stats (STR/DEX/INT). Each level required N * 1000 points to achieve (so you needed 2000 experience points to get to level 2, 3000 to level 3 on top of that, etc) and gave you three points to spend how you wish on your stats.

The problem, of course, is that it's not really an experience "curve" so much as it is an experience line...

Share this post


Link to post
Share on other sites
The easiest thing to do is play a few games and take elements you like from them. Diablo 2 and World of Warcraft have decent leveling systems. Guild Wars is good too (although much faster to max level than the previous two). Or, you could check out the old Dungeons & Dragons Player's Handbook and see how it's implemented there. All of the systems are very similar anyway..

Share this post


Link to post
Share on other sites
Have to agree with thesilencer, look at old pen and paper RPGs. They are the giants that we are standing on the shoulders of. I have a closet filled with RPG books from ages ago (1991-ish) that I still go back to sometimes to look at how other people have done their leveling systems, damage systems / charter generation systems.

..And, well truthfully, allot of them sucked, palladium games was full of great ideas backed up my bad systems. Those bad systems are just as useful though- to see how NOT to have characters level up / calculate damage etc.

Another note: if your RPG has strict classes (ie magic users will never be good at swords and fighters are not gonna ever through fireballs) you might look into some sort of fixed stat distribution per level then have a tree of skills per level, just a thought.

Share this post


Link to post
Share on other sites
I am sorry about the confusion of what language that I use. I use C++ and do C like scripting to clear that up. Thanks for the examples shown above. I played and still play games listed up above. I know what systems I like but liking and applying them to your own game is a whole different animal in itself. Experimentation is what I am doing but I will go back and redesign a flow chart with some psuedo code to help out a bit better.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Forum Statistics

    • Total Topics
      627764
    • Total Posts
      2978976
  • Similar Content

    • By KARTHI
      Free software
       
      1. Lumberyard (Game engine) open-source and free tool
      Amazon Lumberyard is a free cross-platform triple-A game engine developed by Amazon and based on the architecture of Cry Engine, which was licensed from Crytek in 2015.
       
      2. Sculptris (sculpture tool) open-source and free tool
      Sculptris is a virtual sculpting software program, with a primary focus on the concept of modeling clay. It entered active development in early December 2009, and the most recent release was in 2011.
       
      3. Make human (game model creator) open-source and free tool
      Make human is an open-source 3D computer graphics software middleware designed for the prototyping of photorealistic humanoids. It is developed by a community of programmers, artists, and academics interested in 3D modeling of characters.
       
      4. Ipi soft (motion capture software) not free tool
      iPi Motion Capture is a scalable markerless motion capture software tool that supports 1 or 2 Kinect cameras or 3 to 6 Sony PlayStation Eye cameras to track a human action and convert it into a motion capture file
       
       5. Blender (Complete tool) for modeling, texturing and so on (open-source and free tool)
       Blender is a professional, free and open-source 3D computer graphics software toolset used for creating animated films, visual effects, art, 3D printed models, interactive 3D applications and video games.
                 
      6. Audacity (music editor) open-source and free tool
      Audacity is a free open source digital audio editor and recording computer software application, available for Windows, OS X, Linux and other operating systems.
                 
      7. Awesome bump (bump map editor) open-source and free tool (optional)
      Awesome Bump is a free program written using Qt library designed to generate normal, height, specular or ambient occlusion textures from a single image.
       
      8. Faceware (facial animation) not free tool
      Faceware Technologies is an American company that designs facial animation and motion capture technology. The company was established under Image Metrics and became its own company at the beginning of 2012.
       
      9. GIMP (image editing) open-source and free tool
      GIMP is a free and open-source raster graphics editor used for image retouching and editing, free-form drawing, converting between different image formats, and more specialized tasks. Through this you can also create bump maps
       
      10. Meshlab (mesh repair) open-source and free tool (Optional)
      MeshLab is an advanced 3D mesh processing software system that is oriented to the management and processing of unstructured large meshes and provides a set of tools for editing, cleaning, healing.
       
      11. LibreOffice (create documents) open-source and free tool
      LibreOffice is a free and open source office suite, a project of The Document Foundation. It was forked from OpenOffice.org in 2010, which was an open-sourced version of the earlier StarOffice.
                 
      12. Atom (coding software) open-source and free tool
      Atom is a free and open-source text and source code editor for macOS, Linux, and Microsoft Windows with support for plug-ins written in Node.js, and embedded Git Control, developed by GitHub.
                 
       
      Useful websites
      free image
                 
      Reference images will be found on Pinterest
       
      Free Sounds
       
      1.      Freesound.org
      2.      99Sounds.org
      3.      NoiseForFun.com
      4.      Incompetech.com
      5.      OpenGameArt.org
      6.      RaisedBeaches.com
      7.      Musopen.org
      8.      PlayonLoop.com
      9.      Bensound.com
      10.   SoundJay.com
      11.   Dig.ccmixter.org
      12.   Soundgator.com
      13.   Pacdv.com
      14.   Freesfx.co.uk
      15.   Soundtrack.imphenzia.com
      16.   Bxfr.net
       
      Download the free music tracks from these websites
       
      1. http://incompetech.com/music/
      2. http://dig.ccmixter.org/
      3. http://www.joshwoodward.com
      4. http://www.youtube.com/audiolibrary
       
      I hope this information will help full to you. I am got so stress to collect this data so don't waste it 
      🤗🤗🤗🤗🤗🤗🤗🤗🤗🤗🤗🤗🤗🤗🤗🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔
       
       
    • By rXpSwiss
      Hello,
      I am looking for a team to stop developing project alone and start doing bigger things.  I would like a team that is organized and serious even of it is just a hobby. I don't want a project to be dropped every week and the team to disband after 2 months. Even though it is a hobby the quality and complexity of the game should be on par with a game that would be released on a major platform.

      I have experience with UE4, Unity and making my own engine with OpenGL. I prefer UE4 for 3D and Unity for 2D but I am willing to work with both.
      Every one of the games I worked on (personal project) involve multiplayer and netcode, I used what UE4 provided but for unity I used Forge Remastered which gave me a bigger control on how to optimize everything.
      I play several instruments, know about game design and am able to do small modeling task but I am before everything a programmer.
      I play mostly competitive fighting games these days (SFV, MvCi, GG, T7) but before I started getting serious into these types of games it was mostly FPS (CS1.6, UT2k4, Quake 3) and Dota-like. As you can see I love competitive multiplayer games but I play solo games too. I have a preference for darker theme games(F.E.A.R, HL, Shin Megami Tensei/Persona, Last of Us, SH2, RE7) even though I play everything offering me a challenge or some peace (Don't Starve, Stardew Valley, Darkest Dungeon, Zelda etc).
      I do have several ideas for games with a very clear direction gameplay, marketing and art but I am not looking for a team to work on my ideas, I just have them if needed.
      Feel free to ask questions here or PM me if you prefer.
      Best regards,
      rXp
    • By KARTHI
      Please reply me about this
    • By KARTHI
      Currently I using makehuman to make a 3d models but I am not satisfied with that model. If any use this please reply about the quality and details of models. 
      🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔
    • By KARTHI
      I planned to make a space game so I need a knowledge about 3d planet making so anyone help me to make it possible
      🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔
  • Popular Now