Jump to content
  • Advertisement
Sign in to follow this  
TreeGuy

Levels and Exp in Lua

This topic is 561 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm having trouble with getting an extremely simple leveling system scripted in lua. I'm probably just over thinking it. I'm trying ro get it to make the main character to level when he hits x amount of exp and did so by checking if the current exp is greater than the exp needed to level, then add 1 to level, increase hp by 1.5 times, increase damage by 1, subtract the exp needed from the current exp, and multiply the exp needed by 1.5 times. I might be placing it in the wrong place or just doing it completely wrong altogether. Either way, any input is greatly appreciated.

Share this post


Link to post
Share on other sites
Advertisement

It's kind of hard to answer to this. The way you describe it, it sounds like a reasonable way to level up, given that we know nothing about how do you want your level system to work. It's not really clear what you are asking.

Are you having trouble implementing the level system you described? Then post the relevant code and state what behaviour you are expecting and what behaviour you are getting. If your code is throwing errors, it would be useful to know so.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!