Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
RPG Stats, yet again! Details »
RPG Stats, yet again!
Mod Version: 1.1, by Zachery (Member) Zachery is offline
Developer Last Online: May 2017 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.8 Rating: (5 votes - 5.00 average) Installs: 63
Released: 03 Aug 2005 Last Update: 01 Sep 2005 Downloads: 151
Not Supported Uses Plugins Template Edits  

This hack is for RPG Based Stats for your users. Mostly just somthing nice to lookat.


If you are wondering how stats are calcuated: http://www.vbulletin.org/forum/showp...0&postcount=37

v1.2 fixed mp


To upgrade, delete the old RPG STats plugin, and add the new one provided in the zip.


All Hail Knoman the original (as far as I can see) creator of this hack which is now spaning vB2.0-3.5

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #31  
Old 03 Sep 2005, 22:34
Bojangles Bojangles is offline
 
Join Date: Sep 2005
Real name: Jeff Yehling
That did work great.. thanks!
Reply With Quote
  #32  
Old 06 Sep 2005, 19:57
Toky0's Avatar
Toky0 Toky0 is offline
 
Join Date: Aug 2003
Love this hack, great work Zachery!
Reply With Quote
  #33  
Old 06 Sep 2005, 23:49
bi11i's Avatar
bi11i bi11i is offline
 
Join Date: Aug 2004
I like this mod, I can see that it provides some interesting figures, but for those of us that know nothing of RPG, what ARE these stats exactly? HP, MP, EXP? I can imagine that EXP might stand for experience, how is experience calculated?
Originally Posted by SnitchSeeker
haiboss, I love your graphical version! Very nice job!

Still, I wonder the same as Kaelon. How are the stats derived (other than math)? What figures does it use to come up with these variables. Or are they all random and completely pointless (other than for fun)?
Reply With Quote
  #34  
Old 07 Sep 2005, 06:37
LockeAG's Avatar
LockeAG LockeAG is offline
 
Join Date: Aug 2005
Originally Posted by bi11i
I like this mod, I can see that it provides some interesting figures, but for those of us that know nothing of RPG, what ARE these stats exactly? HP, MP, EXP? I can imagine that EXP might stand for experience, how is experience calculated?
Mh.. well...

HP : HIT POINTS
MP: MAGIC POINTS
EXP: EXPERIENCE

and I think teh experience its calculated based on the Join Time and the number of post.

I would like to know if its possible to calculate the MP based on the Reputation if it is in use .

Last edited by LockeAG; 07 Sep 2005 at 07:17.
Reply With Quote
  #35  
Old 07 Sep 2005, 15:58
bi11i's Avatar
bi11i bi11i is offline
 
Join Date: Aug 2004
Originally Posted by LockeAG
Mh.. well...

HP : HIT POINTS
MP: MAGIC POINTS
EXP: EXPERIENCE

and I think teh experience its calculated based on the Join Time and the number of post.

I would like to know if its possible to calculate the MP based on the Reputation if it is in use .
well that makes a little more sense, but yes - how are the MP's and HP's calculated?
Reply With Quote
  #36  
Old 07 Sep 2005, 16:51
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Originally Posted by bi11i
well that makes a little more sense, but yes - how are the MP's and HP's calculated?
Again its all math

Let me go find Komans post.. whereever it may be hidden deep in the recesses of the vBulletin 2 hacks.
__________________
Looking for ImpEx?
Reply With Quote
  #37  
Old 07 Sep 2005, 16:55
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Quote:Knoman

HP drops and rises according to the members activeness.
MP determins how long a user has been with the forums, and how active they are.
EXP determins how close a user is to reaching the next level.



Let's break it down to simple English, shall we?


$level = pow (log10 ($post[posts]), 3);
This is a simple logarithm that will calculate the how much post a member needs in order to get to the next level. This is the engine that will control all other calculations. Now, I've cubed it so leveling resembles Final Fantasy; where the max level is 99. If you are into D&D, squaring the formula would be best, requiring a lot of post before a user can reach level 20. In short, the higher the exponent, the quicker it is to level up.

$ep = floor (100 * ($level - floor ($level)));
This is the basis for the Experience system. What i did here, was take the remainder (or mod) from the Level logarithm and converted it to a percentage. I wasnt sure if PHP had a MOD function, so I did it the hard way.

$showlevel = floor ($level + 1);
I cant have a user with level zero, but i didnt want to affect the engine with a false number either. So, I created another variable $showlevel and added 1, which will only be used to show users, and wont affect the calculations.

$hpmulti =round ($postsperday / 6, 1);
if ($hpmulti > 1.5) {
$hpmulti = 1.5;
}
if ($hpmulti < 1) {
$hpmulti = 1;
}
This code here was to add to the randomness. This is my HP bonus multiplier. I took the post per day and divided by six and rounded it to the tenths decimal. I use a few IF functions to prevent it from being too high and too low.

$maxhp = $level * 25 * $hpmulti;
Determins the Max HP. Not much to be said here, 25 just seem to be a nice number.

$hp= $postsperday / 10;
If a person couldnt perform a ten post per day average, HP will drop.

if ($hp >= 1) {
$hp= $maxhp;
} else {
$hp= floor ($hp * $maxhp);
}
Sets the limit on how high your HP will go. Keeps it at or under the Max HP

$hp= floor ($hp);
$maxhp= floor ($maxhp);
HP calcualations are down. Rounding down for viewing sake.

if ($maxhp <= 0) {
$zhp = 1;
} else {
$zhp = $maxhp;
}
Debugs the Divide by Zero error.

$hpf= floor (100 * ($hp / $zhp)) - 1;
Is used in the templates.

$maxmp= ($jointime * $level) / 5;
Determins Max MP. Again, the 5 just seems right.

$mp= $post[posts] / 3;
Determins MP, not sure why I chose to do what I did, but it works. This is the reason why MP is still a mystery to my members and even to me.

if ($mp >= $maxmp) {
$mp = $maxmp;
}
Keeps MP from going above its max.

$maxmp = floor ($maxmp);
$mp = floor ($mp);
MP calculations done. Rounding down.

if ($maxmp <= 0) {
$zmp = 1;
} else {
$zmp = $maxmp;
}
Debugs the divide by zero error.

$mpf= floor (100 * ($mp / $zmp)) - 1;
Is used in the templates.




like i've mentioned earlier, this hack was spun off of role playing games (i.e. final fantasy). hp stands for health points. the more your points, well.... the better your health is. mp stands for magic points, your ability to cast certain spells and such. and, well... you know what experience is.

now, what drives this entire system is this one code:
$level = pow (log10 ($post[posts]), 3);

what that code does is set the standard at when a member is able to level up, and how much hp/mp s/he should recieve. a low level member is able to reach the next level very easily (only requiring a handful of posts). those at the high end levels would require a whole lot more posts to achieve the next level.

the rise and fall of the hp meter is determine by this variable $postperday. what that does is take the total number of posts and devide it by the total number of days the person has been registered. the quotient is then taken and divided even further by the max hp... by doing so, it gives me a percentage that changes constantly.

i've feel that i've explained everything the best way that i could. any further would be me teaching you how to read and understand php... or any programming language for the matter. none of this is technical, it's mostly multiplication and division. this was my very first project with php. i knew nothing about it. but what i did was open a math book and headed to php.net.

you give a man a fish, he feeds for a day.
you teach a man to fish, he feeds for life.
__________________
Looking for ImpEx?
Reply With Quote
  #38  
Old 07 Sep 2005, 17:00
bi11i's Avatar
bi11i bi11i is offline
 
Join Date: Aug 2004
...the post I never could find. Thanks!
Reply With Quote
  #39  
Old 07 Sep 2005, 17:20
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Those are several of his posts from his original thread

I updated the hack post with a link to the post above and gave credits where credit was due
__________________
Looking for ImpEx?
Reply With Quote
  #40  
Old 11 Sep 2005, 02:49
angelo70's Avatar
angelo70 angelo70 is offline
 
Join Date: Dec 2001
plz..
i want view private message..
Reply With Quote
  #41  
Old 12 Sep 2005, 19:36
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Originally Posted by angelo70
plz..
i want view private message..
plz make sense when you post
__________________
Looking for ImpEx?
Reply With Quote
  #42  
Old 12 Sep 2005, 19:55
angelo70's Avatar
angelo70 angelo70 is offline
 
Join Date: Dec 2001
Originally Posted by Zachery
plz make sense when you post
oh
Thanks ^^
Reply With Quote
  #43  
Old 12 Oct 2005, 15:57
freebase69's Avatar
freebase69 freebase69 is offline
 
Join Date: May 2005
Is there a way to incorporate this with RPG Inferno?
__________________
Reply With Quote
  #44  
Old 12 Oct 2005, 18:41
cedced cedced is offline
 
Join Date: Sep 2005
have mod + - EXP ?
__________________
*** Tips Optimize your Website ***
!!! Wallpaper Hot !!! : WWW.FREEZEWALL.COM
Reply With Quote
  #45  
Old 23 Oct 2005, 14:06
Trovador's Avatar
Trovador Trovador is offline
 
Join Date: Dec 2004
Good hack, congratuletion!

Edit:
Hi, i'm interested in changing how you see the level statistics , i want to use pictures of the digits instead of just numbers. like you see in the image.
What should I change to get this??
Attached Images
File Type: jpg image.jpg (14.5 KB, 387 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 17:19.

Layout Options | Width: Wide Color: