Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Formula

Hello community,
for my fishing system I have this formula:

Code:
 

$game_variables[27] = (Math.sqrt($game_variables[26]) * 0.3 + 1).to_int

 
What it does, variable 27 (level) is calculated by variable 26 (xp) and a formula. The guys who can help me know what I mean;) What I want to calculate now is variable 28, the xp needed for the next level. How can I do this? I thought it was something like:
Code:
 

$game_variables[28] = (($game_variables[27] + 1) * 0.3)

 
But that doesnt work, what is the right one? I put this in an event command.

Thanks,
Smith
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top