Jump to content

Add keyword from a script?


kromey

Recommended Posts

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?

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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 script

Alias_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:

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...