kromey Posted January 22, 2013 Posted January 22, 2013 Working on my Lichdom mod, and I've hit a bit of a snag: My plans have included (all but been based on) the assumption that, via a script, I could add the keyword ActorTypeUndead to the player. Now that it's time to implement that, though... I can't figure out how to do it... It's easy enough to check for a keyword (HasKeyword()), but there doesn't seem to be any way to add one? Am I just missing something, or do I have to go back to the drawing board here?
jack013 Posted January 22, 2013 Posted January 22, 2013 i don't know about keywords, but it might be easier to use a faction instead.
kromey Posted January 22, 2013 Author Posted January 22, 2013 I don't think factions will work, though, as a lot of what I was planning for depends upon the lich having the keyword ActorTypeUndead (e.g. silver weapons do more damage, Necromage boosts spells cast on the lich, potential Frostfall compatibility...). I'm not seeing any way to add keywords, though, and I've been looking through the entire Papyrus function list. Granted, there's a heckuva lot of functions there, so my eyes are glassing over a bit and I could certainly be missing something...
cscottydont Posted January 22, 2013 Posted January 22, 2013 Aliases have keywords. You set up a quest with an alias with the actortypeundead keyword, then stick the player into it via script.
kromey Posted January 22, 2013 Author Posted January 22, 2013 You are a scholar and a gentleman, sir! Thank you!! :dance: So to do this (never done this before...), I set up the alias in the quest, add the keyword to it, but don't actually point it at anything, right? And then when I do the transformation I use in the scriptAlias_Lich.ForceRefTo(Game.GetPlayer())? That seems easy enough, and totally restores my faith in accomplishing all that I want to accomplish! Thank you again!! :dance: :dance: :dance: :dance: :dance: :dance: :dance: :dance: :dance: :dance:
Recommended Posts