Stat Bar Overlays

by DarkCampainger
Quickly add overlay stat bars for health, mana, experience--anything!
Well, im having a runtime error on the RemoveSaveOverlay proc you posted here:

runtime error: Cannot read null.icon
proc name: removeSavedOverlay (/proc/removeSavedOverlay)
source file: Stat Bar Overlays.dm,224
usr: Guts (/mob)
src: null
call stack:
removeSavedOverlay(Guts (/mob), "HealthBar.dmi")

Line 224 is the [appearence:icon] part:
proc/removeSavedOverlay(atom/A, iconName)
for(var/appearance in A.overlays)
if("[appearance:icon]" == "[iconName]")
A.overlays -= appearance
You can throw a check in there to make sure 'appearance' isn't null before accessing its icon. Not sure how you're getting null entries in your overlays list in the first place, though.
Page: 1 2