|
Post by Eric on Apr 28, 2004 16:15:02 GMT -8
An RPG based upon gaining of levels instead of posts. Of course... You gain levels with post count... Here it is, I figured out how to make it so more posts are needed after each level. <script> //http://elitedesigns.proboards20.com var Atk = 13;var Def = 9;var cash = 15;var cs = "$";var cn = "Money";var MP = 17;var HP = 20; if(location.href.indexOf('action=display')){ function ws(wording,stat){ getMini[i].innerHTML+='<center><font size="1">'+wording+': '+stat+'<font></center>' } getMini = document.getElementsByTagName("td"); for(i=0;i<getMini.length;i++) { if(getMini[i].width=="20%" && getMini[i].innerHTML.match("Posts")){ miniText = getMini[i].innerHTML.split(":"); for(p=0;p<miniText.length;p++){ if(miniText[p].match("Posts")){ var pc = miniText[p+1];var pc = pc.split(/<br/i)[0]; var Lvl = 1;var goal = 10;var stats = parseInt(pc); for(g=10;g<stats;g*=2){ Lvl++ } var Atkg = Atk*Lvl;var Defg = Def*Lvl;var cashg = cash*stats;cs = "$"+cashg;var MPg = MP*Lvl;var HPg = Lvl*HP; getMini[i].innerHTML += '<br'+'><center><font size=2><b>Stats</b></font></center>' ws("Level",Lvl);ws("Attack",Atkg);ws("Defense",Defg);ws(cn,cs);ws("Magic",MPg);ws("Health",HPg); }}} else if(getMini[i].width=="20%" && getMini[i].innerHTML.match("Guest")){ }}} </script> Goes in : Board Footers No editing needed, however if you would like to change how much you gain per level up, just change the stuff at the top.
Last Edit: Apr 28, 2004 16:57:25 GMT -8 by Eric
|
|
|
Post by ShadowyOne on Apr 28, 2004 16:15:44 GMT -8
Cool, another RPG hack. Do you have a screenshot preview?
|
|
|
Post by Silent on Apr 28, 2004 17:11:39 GMT -8
Good job Blade, I figured you would get this since you created a money code and they're very similar for some features. It is simple like my first ne, you should keep improving it and adding more features.
|
|
|
Post by Eric on Apr 28, 2004 17:37:23 GMT -8
Good job Blade, I figured you would get this since you created a money code and they're very similar for some features. It is simple like my first ne, you should keep improving it and adding more features. Almost exactly the same, except with more features and such... Now I am woking on adding element, race, and type/class.
|
|
100%
|
Post by Aaron on Apr 28, 2004 19:40:34 GMT -8
Almost exactly the same, except with more features and such... Now I am woking on adding element, race, and type/class. Nice code Blade! It's going to be interesting once you get the new features.
|
|
|
Post by Eric on Apr 29, 2004 3:50:26 GMT -8
Thanks Naruto, I've figured out how to already, just a matter of whether SSD allows me to use their idea or not.... Anyways, a previwe
|
|
|
Post by ShadowyOne on Apr 29, 2004 7:04:15 GMT -8
Cool! A table and some images would make it better.
|
|
|
Post by Eric on Apr 29, 2004 12:58:34 GMT -8
Well I'm trying to make this script as universal as possible, and inserting a table messes up Mozilla so I don't really want to do that....
|
|
|
Post by elixir on Jul 13, 2005 0:08:42 GMT -8
Is there away to make it so you only gain levels and not show the stats and to where you only gain Exp for posting in a certain board?
Last Edit: Jul 13, 2005 12:44:10 GMT -8 by elixir
|
|