XP formula not working out correctly.

Resolved
  1. SteamSeedOPMay 1, 2026, 2:14 PM

    If i use the formula 45*(x*x*x)-21*x{x>0} i would expect level 3 to need 1160 XP but instead it only requires 144 xp. I am lost on what is happening.

  2. SteamSeedMay 1, 2026, 2:15 PMSolution

    Bloody discord formatting haha

  3. JasperMay 1, 2026, 2:18 PM

    45*(x*x*x)-21*x{x>0}

  4. Jasper`45*(x*x*x)-21*x{x>0}`
    SteamSeedMay 1, 2026, 2:29 PM

    thats the one!

  5. FinnyMay 4, 2026, 5:49 PM

    Fun looking formula

  6. CeejMay 6, 2026, 10:23 AM

    Dipping in here to keep track of it, as SteamSeed and I are working together on this. Really keen to get the formula working!

  7. SteamSeedIf i use the formula 45*(x*x*x)-21*x{x>0} i would expect level 3 to need 1160 XP but instead it only requires 144 xp. I am lost on what is happening.
    JasperMay 6, 2026, 10:42 AM

    Admittedly I haven't used the bot or been on discord in a bit but

  8. JasperMay 6, 2026, 10:42 AM
  9. JasperMay 6, 2026, 10:42 AM

    The docs seem to indicate using level instead of x

  10. JasperMay 6, 2026, 10:42 AM

    @Ceej

  11. CeejMay 6, 2026, 1:47 PM

    thanks @Jasper will have a look at that

  12. JasperThe docs seem to indicate using level instead of x
    FinnyMay 6, 2026, 3:11 PM

    Yes this is correct you use {level} instead of x

  13. FinnyMay 6, 2026, 3:11 PM

    And there is no need for the restriction in the custom formula since we only ever start at 0!

  14. FinnyMay 6, 2026, 3:20 PM

    Got it to work with this formula: `45 * ({level} * {level} * {level}) - 21 * {level} `

  15. CeejMay 7, 2026, 8:59 AM

    Yes! I managed to get it to work yesterday now too.

  16. CeejMay 7, 2026, 9:00 AM

    Thanks so much for looking at this though 🙂

  17. FinnyGot it to work with this formula: `45 * ({level} * {level} * {level}) - 21 * {level} `
    Answer OverflowMay 7, 2026, 9:19 AM