Lesson Calc

by Malarious

Back to Mechanic's Corner.

Malarious2008-05-02 20:06:30
This is for zmud, use settings to import text and it should run just fine.

Its free though donations are appreciated, I figure I might just code some stuff and hand it out for fun.
Malarious2008-05-02 20:20:27
findlesson is the alias to start it..

though you can change its name.

It will give you a box to select rank and then prompt for %.. enter a whole number for percent.

Information it asks:
-Your rank
-Your percent
-Target rank
-Target percent

in that order... the rounding errors shoudl be done.. and its a little more complicated than it needs be so the boxes for output always have their lines in a row (if someone has a good way to do it in an easier way I am all for it).

EDIT: Seperate calculator written in C/C++ coming in less than a week.
Sarrasri2008-05-02 20:26:08
Hmm. Well, just tried it out for the heck of it, and I have to say, it's pretty neat. I suppose I like the fact I won't need to do the calculations myself with a calculator now.
Malarious2008-05-02 20:28:08
Glad you liked it and it was helpful!

Yeah I wanted it to be functional yet look kind of nice. Made it easy to use so I could use it while tired too tongue.gif
Elodres2008-05-03 02:11:32
Cool, thanks so much! Can't wait for the C++ version to come out
Sahra2008-05-03 11:24:42
thanks Mal, this is really neat and an easy way to help me figure out how many credits to buy with my tax rebate check. Only thing for me was that the box started on prompt lin and looked sorta ugly, so I just added a #EC "" before the start of the box for a newline, now it looks all pretty! ^^
Enero2008-05-07 03:45:22
What would be even more neat is a calculator that would tell you how much Lessons/Credits would you need for a class change. wink.gif

For example, how much would it take to go from Bard to Guardian/Wicca. You select current rank, current skill and lesson pool, then pick the desired skill and lesson pool. Then the calc shows you how many lessons would you get back, how many would you need to read the desired skill level, or what level would you reach without investing any additional lessons.
Malarious2008-05-17 03:31:54
QUOTE(Enero @ May 6 2008, 11:45 PM) 509616
What would be even more neat is a calculator that would tell you how much Lessons/Credits would you need for a class change. wink.gif

For example, how much would it take to go from Bard to Guardian/Wicca. You select current rank, current skill and lesson pool, then pick the desired skill and lesson pool. Then the calc shows you how many lessons would you get back, how many would you need to read the desired skill level, or what level would you reach without investing any additional lessons.


That varies based on lesson pool to and from, that WOULD cost credits and be a fair bit of a larger program. AKA you lose 20% flatly, but you lose 20% more if you convert them to thei main pool (Mysticism or willpower to spirit lessons). repeat for all skills lost.

On another note, I got busy with classes but I will get the other version out soon (might do it in something I havent used in awhile like fortran or something though too).
Jasato2008-05-25 00:59:03
Dude, this is f-ing awesome. Simple, straight forward, and helpful. Even has an "i'm sexy" appeal.

I give thee, two thumbs up!
Malarious2008-07-06 04:26:44
Ello ello!

Ok I had forgotten about the zmud code for awhile (havent gotten to the stand alone program for a few reasons). Anyway I looked over some feedback and make some changes, there are now -2- seperate calculators. The first one calculates those with bound credits, the second one ignore bound credits (usually because you have used them!).

Updates:
-TrueInept is now a choice, this is the default and tells it not to even as for a % of a rank.
-It will now not ask your target percentage if you are aiming for trans.
-I have redone the system by which it calculates percentage lessons (this should grealty reduce the size of that area from a line per rank to being only one line of code entirely).
-Added the #ec " " at the start and end of the output so you will definitely see it on its own line.
-Altered the rounding formula to now assume a half a credit, so it correctly rounds this time
Achius2008-07-11 17:06:23
Useful stuff, thank you smile.gif
Malarious2008-12-02 10:24:40
Ok here is the standalone for all you non Zmud users...

It is written in Java so it can work on any platform etc etc. The source was also included in case you wanted to edit it or self compile it or maybe learn a little java. I warn you that since it is like 5AM now I may have made it messy somwhere.. if you have a fix for it PM me! I used an array so I could avoid the MANY if statements like the Zmud version.



I will also be making an update for the zmud version most likely in a bit.

P.S. It is in a zip file because I cant attach .class
Malarious2010-04-20 11:01:22
I decided to just go head and put up a text file of the code for a C++ version of the calculator.

It may look odd like having showRanks() as a function, or the lineBreak(int) function. But I did it so it was easily readable and less spammy while reading. I have my own coding methods and thats one I keep to.

Its color coded according to how I usually format the text.