 |
 |
 |
Battle Buddy, your HentaiVerse companion, How else does Chuck Norris play HentaiVerse? (current: v.2.1.8) |
|
Aug 18 2009, 09:13
|
TheBigR
Group: Gold Star Club
Posts: 4,321
Joined: 29-October 06

|
This is fantastic. People have wanted the monsters stats next to the bars for a long time now but theres an issue. (IMG:[ i623.photobucket.com] http://i623.photobucket.com/albums/tt311/TheBigRau/monster.jpg) Also I dont really want the rainbow text so is there a way to simply have the hp count without the colouring? Regardless, some credits are coming your way (IMG:[ invalid] style_emoticons/default/wink.gif) This post has been edited by TheBigR: Aug 18 2009, 09:15
|
|
|
Aug 18 2009, 09:19
|
Red of EHCOVE
Group: Gold Star Club
Posts: 9,493
Joined: 28-April 07

|
Here's an idea for a new feature: add a timer counter to status effects. Particularly useful for spells that should be recast when they have a duration of zero (but the status effect still shows).
This post has been edited by Red_Piotrus: Aug 18 2009, 09:19
|
|
|
|
 |
|
Aug 18 2009, 09:29
|
gillian
Group: Gold Star Club
Posts: 228
Joined: 20-December 08

|
QUOTE(TheBigR @ Aug 18 2009, 00:13)  This is fantastic. People have wanted the monsters stats next to the bars for a long time now but theres an issue. (IMG:[ i623.photobucket.com] http://i623.photobucket.com/albums/tt311/TheBigRau/monster.jpg) Also I dont really want the rainbow text so is there a way to simply have the hp count without the colouring? Regardless, some credits are coming your way (IMG:[ invalid] style_emoticons/default/wink.gif) I've updated the script to put a white background on the monster's hp (it does cover the monster status icons a bit, but you will always be able to see the HP). Grab the latest using the same link: [ dekandustry.com] http://dekandustry.com/fromfriends/hv_battle.user.jsAnd if you want to disable the rainbow text, right-click on the GreaseMonkey icon, select "Manage User Scripts...", then choose to edit the "HV Battle..." script. Find the function letsJQuery() and comment out code you don't want. For only monster HP, it'd look like this: (IMG:[ img195.imageshack.us] http://img195.imageshack.us/img195/5530/codecomment.png) If all this coding stuff sounds like black magic, don't worry, I'll just make another script that does monster HP only (but I'll wait till the next release) --------- And @Red_Piotrus, I'm not sure what you mean. Status effects on your character? Like potions? My character doesn't have any buffs/debuffs right now so I can't really test (IMG:[ invalid] style_emoticons/default/laugh.gif) This post has been edited by gillian: Aug 18 2009, 09:33
|
|
|
|
 |
|
Aug 18 2009, 17:45
|
Cyriel
Group: Catgirl Camarilla
Posts: 4,720
Joined: 29-December 08

|
Pro update and thanks for integrating my changes :3 E: I found a bug ! (IMG:[ invalid] style_emoticons/default/biggrin.gif) If you click on the monsters health (numerical values) you skip a turn. And the overcharge indicator seems gone. plus some mobs steal your casting color for some reason, deriving from the orange. That and the crit for a spell is called "blasts" just in case. This post has been edited by Cyriel: Aug 18 2009, 18:01
|
|
|
Aug 18 2009, 22:37
|
grumpymal
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08

|
How about moving the HP counter beside the monster's name? The old GreaseMonkey script that showed mob health did it that way and that ought to eliminate the need to have the white background and reduce the change of accidentally clicking it and losing a turn.
|
|
|
|
 |
|
Aug 19 2009, 00:22
|
ootoro
Group: Members
Posts: 5,460
Joined: 19-March 09

|
QUOTE(Cyriel @ Aug 18 2009, 10:45)  Pro update and thanks for integrating my changes :3 E: I found a bug ! (IMG:[ invalid] style_emoticons/default/biggrin.gif) If you click on the monsters health (numerical values) you skip a turn. And the overcharge indicator seems gone. plus some mobs steal your casting color for some reason, deriving from the orange. That and the crit for a spell is called "blasts" just in case. Eh? I've been wanting a way to skip turns for a while. I hate using a potion near the end of a random/arena battle and losing half the effects 'cause the fight ends.
|
|
|
|
 |
|
Aug 19 2009, 00:36
|
NoNameNoBlame
Group: Gold Star Club
Posts: 7,641
Joined: 20-July 08

|
QUOTE(torotuna @ Aug 19 2009, 00:22)  Eh? I've been wanting a way to skip turns for a while. I hate using a potion near the end of a random/arena battle and losing half the effects 'cause the fight ends. Click "Item", then click a monster.
|
|
|
Aug 19 2009, 04:37
|
gillian
Group: Gold Star Club
Posts: 228
Joined: 20-December 08

|
Just got home - really sorry for anyone who lost a turn due to clicking on the monster hp! I've updated the script to move the monster HP beside the monster's name, and also clicking on the monster's HP will NOT cause you to lose a turn. Also added the "blasts" magic crit (I never got a magic crit yet...maybe today!) Please update to v0.2.1 by grabbing the latest using the same link: [ dekandustry.com] http://dekandustry.com/fromfriends/hv_battle.user.js
|
|
|
Aug 19 2009, 08:18
|
tsunamisan
Newcomer
  Group: Gold Star Club
Posts: 87
Joined: 18-February 09

|
That's a great addon. much appreciated =)
|
|
|
Aug 19 2009, 13:05
|
Ido013
Group: Members
Posts: 740
Joined: 27-March 09

|
Sweet nice additions, I knew I should've asked about this instead of bumping the other one XD Just wish it would work with random encounters more often, it works once in two moons :/
|
|
|
Aug 19 2009, 15:50
|
Cyriel
Group: Catgirl Camarilla
Posts: 4,720
Joined: 29-December 08

|
you should add this CODE } else if (content.match(/you unleash/i)) { node.css("color", "#5c8200");
|
|
|
Aug 19 2009, 16:39
|
major_blood
Group: Members
Posts: 11,892
Joined: 6-January 08

|
This is amazing! I don't really know how to improve it since my ideas usually suck, but keep on improving it. Now I wish I learned how to do all this technical stuff.....
|
|
|
Aug 19 2009, 18:39
|
EvolutionKing
Group: Gold Star Club
Posts: 9,454
Joined: 2-May 07

|
Once I saw monsters with Infinity/*** HP at the beginning of a battle, but then I refreshed and it was back to normal.
|
|
|
Aug 19 2009, 20:26
|
gillian
Group: Gold Star Club
Posts: 228
Joined: 20-December 08

|
Guys I've updated the script to display status effect durations (your char only). Also fixed bugs, and script works in random battles too. Sorry for the short post-I'm at work, but will update main post when I get home. Use the old link to grab changes: [ dekandustry.com] http://dekandustry.com/fromfriends/hv_battle.user.jsLet me know if any bugs. Cheers.
|
|
|
|
 |
|
Aug 19 2009, 21:46
|
Galdric
Newcomer
  Group: Members
Posts: 92
Joined: 28-June 06

|
Ok, let me start off by saying that I know nothing of greasemonkey, so I don't know if it's possible, but it would be nice if you could have some kind of pop up over the monsters saying what their elemental weakness' and strengths are (Kind of like what currently happens in the equipment page). At the moment I'm just listing then with a modified listMonsterHP function, but it doesnt show the text if it's too long. (It wraps around so that the text winds up underneath the health bar (IMG:[ invalid] style_emoticons/default/rolleyes.gif) ) Here's the modified listMonsterHP function so you can see what I've done. CODE *snip* Updated code is now posted in my next reply.
There are probably better ways of doing this, and I know I don't have all of the Monster IDs, but it works for now. - Galdric This post has been edited by Galdric: Aug 19 2009, 23:19
|
|
|
|
 |
|
Aug 19 2009, 22:45
|
grumpymal
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08

|
QUOTE(Galdric @ Aug 19 2009, 15:46)  Ok, let me start off by saying that I know nothing of greasemonkey, so I don't know if it's possible, but it would be nice if you could have some kind of pop up over the monsters saying what their elemental weakness' and strengths are (Kind of like what currently happens in the equipment page). At the moment I'm just listing then with a modified listMonsterHP function, but it doesnt show the text if it's too long. (It wraps around so that the text winds up underneath the health bar (IMG:[ invalid] style_emoticons/default/rolleyes.gif) ) Here's the modified listMonsterHP function so you can see what I've done. CODE snip
There are probably better ways of doing this, and I know I don't have all of the Monster IDs, but it works for now. - Galdric Interesting idea, beats having to memorize them (though I'm sure some members already have). I would just shorten/abbreviate the elements to fit them in. And here's the list of MIDs (pretty sure that's all of the mobs). Just check the Bestiary to get their elemental data. 1 Green Slime 2 Tentacle Monster 3 Mantitcore 4 Cockatrice 5 Giant Panda 6 Fire Fox 7 Scary Ghost 8 Rabid Hamster 9 Cookie Monster 10 Blue Slime 11 Zombie Cow 12 Manthra 13 Mind Raper 14 Blue Hedgehog 15 Apathetic Canuck 16 Manbearpig 17 White Bunneh 18 Mithra 19 Dalek 20 Konata 21 Mikuru Asahina 22 Ryouko Asakura 23 Yuki Nagato 24 Real Life 25 Mutant Peacock 26 Amphibious Sperm Whale
|
|
|
|
 |
|
Aug 19 2009, 22:49
|
Red of EHCOVE
Group: Gold Star Club
Posts: 9,493
Joined: 28-April 07

|
Those are some excellent ideas, but it is dependent on people updating the bestiary. I will see if I ave time to implement some changes discussed here to help with that.
|
|
|
Aug 19 2009, 22:55
|
grumpymal
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08

|
QUOTE(Red_Piotrus @ Aug 19 2009, 16:49)  Those are some excellent ideas, but it is dependent on people updating the bestiary. I will see if I ave time to implement some changes discussed here to help with that. A lot of the wiki needs some overhauling with all the huge changes made in the last two updates. And just some overhauling in general, some pages could be consolidated and other split apart and some general all-around clean-up.
|
|
|
|
 |
|
Aug 19 2009, 23:19
|
Galdric
Newcomer
  Group: Members
Posts: 92
Joined: 28-June 06

|
Thanks for the Monster IDs. Here's the function with all of the monsters in it, plus the info from the eh wiki page. CODE function listMonsterHP() { // HP Variables var mobHps = new Array(); var regexHp = /HP=\d+?\s/igm; var counter = 0; // Monster ID Variables var mobIDs = new Array(); var regexID = /MID=\d+?\s/igm; var counter = 0; // get hp of mobs, backward order $("#togpane_log td:first-child").each(function() { var node = $(this); if (node.html() == "0") { regexHp.lastIndex = 0; // reset var match = regexHp.exec(node.next().next().html()); if (match != null) { mobHps[counter] = match[0].replace("HP=", "") * 1; counter++; } } }); // get ID of mobs, backward order $("#togpane_log td:first-child").each(function() { var node = $(this); if (node.html() == "0") { regexID.lastIndex = 0; // reset var match = regexID.exec(node.next().next().html()); if (match != null) { mobIDs[counter] = match[0].replace("MID=", "") * 1; counter++; } } }); counter = 1; // 1 based $("#monsterpane > div").each(function() { var monster = $(this); if (monster.height() < 100) { // @TODO: check for victory screen var monsterHp = mobHps[mobHps.length - counter]; // backwards var monsterCurrHp = 0; var divHpBar = monster.children().eq(2).children().eq(0); var isDead = divHpBar.children("img").size() > 0; // @TODO: check for dead.png if (!isDead) { var hpPercent = divHpBar.children().eq(0).children("img").eq(1).width() / divHpBar.children().eq(0).children("img").eq(0).width(); monsterCurrHp = Math.floor(hpPercent * monsterHp); } // add to display var monsterName = divHpBar.parent().prev().children().eq(0); // Stuff for Monster ID var monsterID = mobIDs[mobIDs.length - counter]; // backwards var monsterStrength = "" var monsterWeekness = "" if (monsterID == 1) { // Green Slime monsterStrength = "Wind" monsterWeekness = "Cold" } else if (monsterID == 2) { // Tentacle Monster monsterStrength = "None" monsterWeekness = "Fire" } else if (monsterID == 3) { // Mantitcore monsterStrength = "Holy" monsterWeekness = "Cold" } else if (monsterID == 4) { // Cockatrice monsterStrength = "Cold" monsterWeekness = "Fire, Holy" } else if (monsterID == 5) { // Giant Panda monsterStrength = "Cold" monsterWeekness = "Fire" } else if (monsterID == 6) { // Fire Fox monsterStrength = "Fire" monsterWeekness = "Cold" } else if (monsterID == 7) { // Scary Ghost monsterStrength = "None" monsterWeekness = "Holy" } else if (monsterID == 8) { // Rabid Hamster monsterStrength = "Fire" monsterWeekness = "Elc, Wnd, Hl" // Elec, Wind, Holy. Shortened so that it actually shows up. } else if (monsterID == 9) { // Cookie Monster monsterStrength = "Cold, Holy" monsterWeekness = "Wind" } else if (monsterID == 10) { // Blue Slime monsterStrength = "Elec" monsterWeekness = "Wind" } else if (monsterID == 11) { // Zombie Cow monsterStrength = "Wind" monsterWeekness = "Elec" } else if (monsterID == 12) { // Manthra monsterStrength = "None" monsterWeekness = "Wind" } else if (monsterID == 13) { // Mind Raper monsterStrength = "Elec" monsterWeekness = "Fire" } else if (monsterID == 14) { // Blue Hedgehog monsterStrength = "Cold, Holy" monsterWeekness = "Elec" } else if (monsterID == 15) { // Apathetic Canuck monsterStrength = "Cold" monsterWeekness = "Fire" } else if (monsterID == 16) { // Manbearpig monsterStrength = "None" monsterWeekness = "None" } else if (monsterID == 17) { // White Bunneh monsterStrength = "Fire" monsterWeekness = "None" } else if (monsterID == 18) { // Mithra monsterStrength = "Fire" monsterWeekness = "None" } else if (monsterID == 19) { // Dalek monsterStrength = "Cold, Fire" monsterWeekness = "None" } else if (monsterID == 20) { // Konata monsterStrength = "None" monsterWeekness = "None" } else if (monsterID == 21) { // Mikuru Asahina monsterStrength = "Wind, Fire" monsterWeekness = "Holy" } else if (monsterID == 22) { // Ryouko Asakura monsterStrength = "Cold, Fire" monsterWeekness = "None" } else if (monsterID == 23) { // Yuki Nagato monsterStrength = "Elemental" monsterWeekness = "None" } else if (monsterID == 24) { // Real Life monsterStrength = "?" monsterWeekness = "?" } else if (monsterID == 25) { // Mutant Peacock monsterStrength = "Holy" monsterWeekness = "Elec, Wind" } else if (monsterID == 26) { // Amphibious Sperm Whale monsterStrength = "None" monsterWeekness = "F" // Fire. Shortened so that it actually shows up } monsterName.after("<div style='position:relative;display:inline;background-color:white;color:#333;padding:0 2px;margin-left:6px'>("+monsterCurrHp+"/"+monsterHp+" HP) (W="+monsterWeekness+") (S="+monsterStrength+")</div>"); counter++; } }); }
- Galdric This post has been edited by Galdric: Aug 19 2009, 23:35
|
|
|
|
 |
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|