Difference between revisions of "Debugging"
m
"getdistance player >0" CHANGED TO "getdistance player > 0"
imported>Haama (Note on PlaceAtMe's reference and same-frame usage) |
imported>P.lo m ("getdistance player >0" CHANGED TO "getdistance player > 0") |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
__TOC__When something just isn't working right, look here for possible causes and ways to track down the bug. | |||
== Comma Instead of Period == | == Comma Instead of Period == | ||
Line 41: | Line 39: | ||
When called in a scripteffect spell, the statement sometimes evaluates true for the player. The easiest solution is to add another condition to double-check it, such as: | When called in a scripteffect spell, the statement sometimes evaluates true for the player. The easiest solution is to add another condition to double-check it, such as: | ||
getdistance player >0 | getdistance player > 0 | ||
However, [[getDistance]] is unreliable if the player is swimming. | However, [[getDistance]] is unreliable if the player is swimming. |