I'm trying to create a custom status based on sleeping. The problem is that I don't know how to set the sleep animation while it's active and make it breakable by damage. I tried looking through Statuses.gameScript but couldn't find anything about the animation or damage. Could anyone tell me how to do the above or where I can find the related code?

Also are there any resources to learn more about scripting in divinity engine?