Code:
set slice text(sl, 0)
The error means that the sl variable has a zero in it. The only way that could happen is if this line failed:
Code:
sl := lookup slice(carlhealth, hud)
The reason this is failing is because you should NOT be passing the variable "carlhealth" as the first argument. You should be passing the sli:codename lookup code for the slice in your collection that will display the health value.
In the slice editor, press ENTER on your health text slice. look where it says "Lookup Code:" do you have name there for the lookup code? Or is it blank.
If you name the slice lookup code "carlhealth" then in the script you would write:
Code:
sl := lookup slice(sli:carlhealth, hud)



