So that was fun, and not fun at the same time. I'm going to post what I have so far, in case anyone is interested in using it. What I did was add a bunch of variables and if statements to track skill gains, so if you, like me, jam your 'D' key down all night long, all you need to do is finish the round to see how much you gained. There is one limitation: it resets every round (which is what I wanted, and achieved by fluke). I have no fucking clue how to make the numebrs persist, or a reset button, because I have 0 experience with javascript and graphical interfaces. Anyway, here's the goods:
Copy and paste the following at the end of the //globs (global variables) section:
CODE
var _onehand = 0;
var _twohand = 0;
var _dualwield = 0;
var _staff = 0;
var _shield = 0;
var _cloth = 0;
var _light = 0;
var _heavy = 0;
var _elemental = 0;
var _divine = 0;
var _forbidden = 0;
var _deprecating = 0;
var _supportive = 0;
var _curative = 0;
Next, use the search function to find "#ba9e1c". Make a new line, then paste:
CODE
//skill gain counter
if (content.match(/0.01 points of one-handed weapon proficiency./)) {
_onehand = _onehand + (.01);
} if (content.match(/0.02 points of one-handed weapon proficiency./)) {
_onehand = _onehand + (.02);
} if (content.match(/0.03 points of one-handed wewapon proficiency./)) {
_onehand = _onehand + (.03);
} if (content.match(/0.01 points of two-handed weapon proficiency./)) {
_twohand = twohand + (.01);
} if (content.match(/0.02 points of two-handed weapon proficiency./)) {
_twohand = twohand + (.02);
} if (content.match(/0.03 points of two-handed weapon proficiency./)) {
_twohand = twohand + (.03);
} if (content.match(/0.01 points of dual wielding proficiency./)) {
_dualwield = _dualwield + (.01);
} if (content.match(/0.02 points of dual wielding proficiency./)) {
_dualwield = _dualwield + (.02);
} if (content.match(/0.03 points of dual wielding proficiency./)) {
_dualwield = _dualwield + (.03);
} if (content.match(/0.01 points of staff proficiency./)) {
_staff = _staff + (.01);
} if (content.match(/0.02 points of staff proficiency./)) {
_staff = _staff + (.02);
} if (content.match(/0.03 points of staff proficiency./)) {
_staff = _staff + (.03);
} if (content.match(/0.01 points of shield proficiency./)) {
_shield = _shield + (.01);
} if (content.match(/0.02 points of shield proficiency./)) {
_shield = _shield + (.02);
} if (content.match(/0.03 points of shield proficiency./)) {
_shield = _shield + (.03);
} if (content.match(/0.01 points of cloth armor proficiency./)) {
_cloth = _cloth + (.01);
} if (content.match(/0.02 points of cloth armor proficiency./)) {
_cloth = _cloth + (.02);
} if (content.match(/0.03 points of cloth armor proficiency./)) {
_cloth = _cloth + (.03);
} if (content.match(/0.01 points of light armor proficiency./)) {
_light = _light + (.01);
} if (content.match(/0.02 points of light armor proficiency./)) {
_light = _light + (.02);
} if (content.match(/0.03 points of light armor proficiency./)) {
_light = _light + (.03);
} if (content.match(/0.01 points of heavy armor proficiency./)) {
_heavy = _heavy + (.01);
} if (content.match(/0.02 points of heavy armor proficiency./)) {
_heavy = _heavy + (.02);
} if (content.match(/0.03 points of heavy armor proficiency./)) {
_heavy = _heavy + (.03);
} if (content.match(/0.01 points of elemental magic proficiency./)) {
_elemental = _elemental + (.01);
} if (content.match(/0.02 points of elemental magic proficiency./)) {
_elemental = _elemental + (.02);
} if (content.match(/0.03 points of elemental magic proficiency./)) {
_elemental = _elemental + (.03);
} if (content.match(/0.01 points of divine magic proficiency./)) {
_divine = _divine + (.01);
} if (content.match(/0.02 points of divine magic proficiency./)) {
_divine = _divine + (.02);
} if (content.match(/0.03 points of divine magic proficiency./)) {
_divine = _divine + (.03);
} if (content.match(/0.01 points of forbidden magic proficiency./)) {
_forbidden = _forbidden + (.01);
} if (content.match(/0.02 points of forbidden magic proficiency./)) {
_forbidden = _forbidden + (.02);
} if (content.match(/0.03 points of forbidden magic proficiency./)) {
_forbidden = _forbidden + (.03);
} if (content.match(/0.01 points of deprecating magic proficiency./)) {
_deprecating = _deprecating + (.01);
} if (content.match(/0.02 points of deprecating magic proficiency./)) {
_deprecating = _deprecating + (.02);
} if (content.match(/0.03 points of deprecating magic proficiency./)) {
_deprecating = _deprecating + (.03);
} if (content.match(/0.01 points of supportive magic proficiency./)) {
_supportive = _supportive + (.01);
} if (content.match(/0.02 points of supportive magic proficiency./)) {
_supportive = _supportive + (.02);
} if (content.match(/0.03 points of supportive magic proficiency./)) {
_supportive = _supportive + (.03);
} if (content.match(/0.01 points of curative magic proficiency./)) {
_curative = _curative + (.01);
} if (content.match(/0.02 points of curative magic proficiency./)) {
_curative = _curative + (.02);
} if (content.match(/0.03 points of curative magic proficiency./)) {
_curative = _curative + (.03);
}
Last, but not least, search for "takenPerRound + '</td></tr>' +", create a new line, and paste:
CODE
'<br><tr><td align="left" colspan="2"><strong>Skill Gains:</strong></td></tr>' +
'<tr><td align="left"> One-Hand: ' + _onehand + '<td> Two-Hand: ' + _twohand + '</td></tr>' +
'<tr><td align="left"> Dual-Wield: ' + _dualwield + '<td> Staff: ' + _staff + '</td></tr>' +
'<tr><td align="left"> Shield: ' + _shield + '<td> Cloth Armor: ' + _cloth + '</td></tr>' +
'<tr><td align="left"> Light Armor: ' + _light + '<td> Heavy Armor: ' + _heavy + '</td></tr>' +
'<tr><td align="left"> Elemental: ' + _elemental + '<td> Divine: ' + _divine + '</td></tr>' +
'<tr><td align="left"> Forbidden: ' + _forbidden + '<td> Deprecating: ' + _deprecating + '</td></tr>' +
'<tr><td align="left"> Supportive: ' + _supportive + '<td> Curative: ' + _curative + '</td></tr>' +
This will be your result (the skill gains part, I hand tailored the other part to my tastes too):
(IMG:[
i871.photobucket.com]
http://i871.photobucket.com/albums/ab271/seeker4015/Battlebuddyedit.jpg)
Let me know what you all think, it was a pain in the ass to do (IMG:[
invalid]
style_emoticons/default/dry.gif)