Jump to content
Sign in to follow this  
Eliwan

Bug with Exponents?

Recommended Posts

(I post this here because I think that the reason why the exponents aren't working properly is because of RMVXA opposed to the script in use. Also, no idea what tags to use. xD)

 

In a game that we're making, we're using Kread-EX's Skill Upgrade script and we came up with this issue:

 

First the formula--

http://i.imgur.com/68xswuh.png

So that should yield 15/30/60/120/240/480/960/1920... and so on, or 0/15/30/60/120/240/480/960...-- yet we get:

http://i.imgur.com/6zmYsuB.png 0 -> +1
http://i.imgur.com/wspOwwE.png +1 -> +2
http://i.imgur.com/1Jfgg5G.png +2 -> +3
http://i.imgur.com/bi6I0tA.png +3 -> +4
http://i.imgur.com/nxk3jdU.png +4 -> +5

or 30/31/28/29/26 if you don't want to check the images.

 

We've tested numerous methods, another time we got -15/-45/0/30/15 (I think), another time we got 30/15/0/45/60 (or some equally random ordering of multiples of 15)

 

All we're trying to do is make the cost of the skill upgrade increase exponentially-- sorta punishing the player for levelling one skill a lot and not putting any points into the other skills; yet RMVXA doesn't handle the exponents well and yields odd results for our formulae.

 

Anyway, thanks for reading this ^-^; Not sure if there's a fix to the issue or if it's just an unfixable problem (which would suck for us D:)...

Share this post


Link to post
Share on other sites

Wow. Thank you so much. <3 It works perfectly.

 

(By the way, what does "exclusive OR" mean?... I have no idea)

Share this post


Link to post
Share on other sites

It's a bitwise operation. If you'd like to learn more about them, you can read up at various sources:

 

http://en.wikipedia.org/wiki/Bitwise_operation

 

Basically you deal with bits (0's and 1's.) For the most part you probably won't need to use them especially with a high level language like Ruby, but they're useful at low level.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted