As another little experiment of mine, I plan to make a creature or NPC that will approach the player in response to spotting them and explode when close enough to the player, probably leaving nothing but a pile of ash behind. The actor will be capable of being killed before reaching the player, and if the player can successfully take down the actor before reaching the exploding distance, the actor would simply fall down and die like a normal NPC.
I'm assuming this is something that would be handled through scripting, but I'm not sure where to begin. I haven't touched Papyrus, so if you do provide me with code, could you give explanations for the commands that you use? I'd love to learn as I go along. Thanks for any help I receive.