Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    EXP = Level And Exp Needed

    Help
    3
    9
    277
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Rxvlism
      Rxvlism last edited by

      Can anyone help me I’m stumped, my friend made this formula. I need help making this in Fuze And I need the EXP And Skill Level in a array or structure so I can make more skills after.

      // Formula

      Y=L*(C)^(X)
      L is starting amount of xp required for lvl 1
      C is a constant you pick.
      For example if C is 1.2, the next level will reuire 20% more xp than the last.
      X is the current level
      Y is the amount required for the next level

      1 Reply Last reply Reply Quote 0
      • mixaal
        mixaal F last edited by

        I assume you need pow not exp in this case: Y = L * pow(C, X)

        1 Reply Last reply Reply Quote 0
        • Rxvlism
          Rxvlism last edited by

          Y = L * (C) pow (X)

          I’m trying to write the formula in Fuze

          L*(C)X != L(C)^(X)
          Go to wolfram alpha and type in
          Y=1001.2^x
          And in a different tab
          Y=100
          1.2*x
          They will not be the same.

          1 Reply Last reply Reply Quote 0
          • Rxvlism
            Rxvlism last edited by MikeDX

            Y=100 * 1.2^x
            Y=100 * 1.2*x
            *** correction

            I have no idea why it was auto correcting my formula sorry for any confusion

            mixaal 1 Reply Last reply Reply Quote 0
            • mixaal
              mixaal F @Rxvlism last edited by

              @Rxvlism

              1. Y = 100 * pow(1.2, x)
              2. Y = 100 * 1.2 * x

              If you need exp(x) you can write it as pow(2.71828, x).

              See:
              https://www.maplesoft.com/support/help/Maple/view.aspx?path=exp
              https://fuzearena.com/help/view/pow
              https://en.wikipedia.org/wiki/E_(mathematical_constant)

              1 Reply Last reply Reply Quote 0
              • Rxvlism
                Rxvlism last edited by

                Lol is there a way I can delete this post lol I’ve figured it out or should I just post my solution for others to use

                1 Reply Last reply Reply Quote 0
                • Martin
                  Martin Fuze Team last edited by

                  Post your solution for others would be the correct way

                  1 Reply Last reply Reply Quote 1
                  • Rxvlism
                    Rxvlism last edited by

                    Ok sounds good

                    1 Reply Last reply Reply Quote 0
                    • Rxvlism
                      Rxvlism last edited by Martin

                      So This is the solution I’ve came to in Fuze.

                      SkillEXP = 0
                      SkillLevel = 0     // (X)
                      Level1EXP = 50    // (L)
                      Constant = 1.2     // (C)
                      AmountNextLevel = 0     // (Y)
                      
                      // Formula 
                      // Y = L * (C) ^ (X) 
                      
                      Loop
                           AmountNextLevel = Level * pow( SkillLevel, Constant )
                      //
                           joy = controls ( 0 )
                           If joy.a then 
                                SkillEXP += .05 
                           endif
                           If joy.a then 
                                SkillEXP += .1 
                           endif
                           If joy.a then 
                                SkillEXP += 1 
                           endif
                      //
                           If SkillEXP >= AmountNextLevel then
                      SkillLevel += 1 
                      endif
                      //
                      PrintAt( 0, 0, “Skill Level - ”, SkillLevel )
                      PrintAt( 0, 1, “Current EXP - ”, int(SkillEXP) )
                      PrintAt( 0, 2, “EXP Needed - ”, int(AmountNextLevel) - int(SkillEXP) )
                      PrintAt( 0, 3, “Amount To Next Level - “, int(AmountNextLevel) )
                      PrintAt( 0, 25, int(AmountNextLevel), “ = “, Level1EXP, “ * (“, Constant, “) ^ (“, SkillLevel, “)” )
                      

                      [edit by Martin] Added code tags. Please see the last entry in the FAQ: https://fuzearena.com/forum/topic/226/faq-common-questions-and-answers/4

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post