- Forums
- Bug Reporting
- Subject
Deleted Player
Possible combat bug?
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 I think it would be better to show actual HP not a %...[/edit]
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.
Deleted Player
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.