OriginalBrand Posted December 30, 2014 I made a basic health bar for the player that worked fine when the script was run in a map's script. But when I put it inside a library of the wad that i tested the script in i got an error "Divided by zero in script 603" (everything else in the library works) here is the script script 603 enter { int monhp; int mtid = 1000; int hdisp; monhp = getactorproperty(MTID, APROP_Health); setfont("NORMAL"); hdisp = (monhp * 100 / health); sethudsize(640,480,0); if (hdisp <= 0) hdisp = 0; int acounter; int bcounter; setfont ("MONHPBAR"); hudmessagebold(s:"a"; 1, 101, CR_GREEN, 170.0, 25.0, 1); for (acounter = 0; acounter <= hdisp; acounter++) { if (hdisp <= 0) break; setfont ("FILLCRIT"); bcounter = bcounter + 2.0; hudmessagebold(s:"a"; 1, acounter, CR_GREEN, 73.0 + bcounter, 25.0, 1); } bcounter = 0; acounter = 0; delay(1); restart; } Never mind fixed the error with if(health != 0) but i'm still confused why i only got the error from my library 0 Share this post Link to post