When your mod depends on the origins mod, story (Osiris script) will randomly select a player character when you start the editor. This can either be an origin a character, or a generic character of any race (including an undead). In case it's an undead, it's supposed to get equipment that includes head gear so that you're veiled, but there's a code bug that prevents this from happening (which is fixed in the definitive edition).
To avoid everyone from attacking you, just equip a piece of head gear. If you don't have a bucket nearby, you can probably easily spawn one by pressing ctrl-shift-f11, moving your mouse over the editor's game window somewhere near your character (don't click), and typing "spawnItem bucket" followed by pressing the TAB key to autocomplete to one of the bucket templates.
Edit: the purpleness of the skeleton is caused by another code bug, but that one has not yet been fixed, I believe.
Last edited by Tinkerer; 20/08/18 07:19 AM.