Deleted Player

Sat Aug 16 0:05:38 EDT 2008

Possible combat bug?

Quote

100% You attack for
289
48%
window.setTimeout("delayShowAttackBox0()", 1000); function delayShowAttackBox0() { document.getElementById('attackbox0').style.visibility = "visible"; window.setTimeout("delayShowAttackBox1()", 1000); } 74% Aidan attacks for
151
48%
function delayShowAttackBox1() { document.getElementById('attackbox1').style.visibility = "visible"; window.setTimeout("delayShowAttackBox2()", 1000); } 74% You attack for
285
But your attack was BLOCKED!
48%
function delayShowAttackBox2() { document.getElementById('attackbox2').style.visibility = "visible"; window.setTimeout("delayShowAttackBox3()", 1000); } 48% Aidan attacks for
153
48%
function delayShowAttackBox3() { document.getElementById('attackbox3').style.visibility = "visible"; window.setTimeout("delayShowAttackBox4()", 1000); } 48% You attack for
269
0%
function delayShowAttackBox4() { document.getElementById('attackbox4').style.visibility = "visible"; window.setTimeout("delayShowAttackBox5()", 1000); } 20% Aidan attacks for
162
0%
function delayShowAttackBox5() { document.getElementById('attackbox5').style.visibility = "visible"; window.setTimeout("delayShowAttackBox6()", 1000); } 0% Dogmeat from the enemy guild attacks for
1,457
0%

[edit]bah he had 4hp left (smiley) I think it would be better to show actual HP not a %...[/edit]



Edited 1 time(s). Last edited by @ Sat Aug 16 0:08:32 EDT 2008

Glorgoth

Member

Total Posts: 691
Online Status: Offline
Sat Aug 16 4:46:08 EDT 2008

Actually, I happen to agree. I think that's a great idea. Please, Cyber?

~Retired Geezer~

Cyberkilla

Admin

Total Posts: 5,984
Online Status: Offline
Sat Aug 16 9:11:26 EDT 2008

Quote
Actually, I happen to agree. I think that's a great idea. Please, Cyber?


I'm not sure if there is enough room to put 'x,xxx' characters on each side.
I'll try though.

EDIT:
I haven't tried your idea yet, but I have fixed the stupid rounding issue.
It should show 1% where it showed 0% before. It should make sense now.

I had type-casted the variable to an integer and THEN called Math.ceil() on it to round it up.
I removed the type casting and it should be working now.


Invisible War ][
Edited 1 time(s). Last edited by Cyberkilla @ Sat Aug 16 9:14:58 EDT 2008

Deleted Player

Sat Aug 16 9:15:12 EDT 2008

Well what about doing like 5k or whatever as long as they're over 1k hp then when they get down to triple digits you can just show triple digits.


Cyberkilla

Admin

Total Posts: 5,984
Online Status: Offline
Sat Aug 16 9:22:52 EDT 2008

Quote
Well what about doing like 5k or whatever as long as they're over 1k hp then when they get down to triple digits you can just show triple digits.


That would work. I'm interested to see whether I've actually fixed the problem this time, but we can try it your way later if you still think it is the better option.
I just thought percentages were easier to understand.


Invisible War ][

Deleted Player

Sat Aug 16 9:25:02 EDT 2008

Percentages are easier to understand but if you run into a situation like that where they have 3-4hp left out 600 it's less than a % so it gets rounded down making it appear as if they have none.