Hi,
I have created a minor mod - everything works fine until I want to add my spell by other means than a SpellTome. How can I make a mod add a spell to player when launched?
Thanks
Hi,
I have created a minor mod - everything works fine until I want to add my spell by other means than a SpellTome. How can I make a mod add a spell to player when launched?
Thanks
You would need an activator to trigger a script that has a player.addspell xxxx command in it, xxxx being the formid of the spell or effect.
Not sure if you need the offset as the script resides in the mod it is calling the effect from.
Create a quest. Check start game enabled. Create a quest stage (right click and select new log entry or something like that for the papyrus fragment to work). Make sure that quest stage is checked to be the start up stage. In the papyrus fragment, enter a semicolon and hit OK to exit the quest window (this will generate your quest script). Go back to your script, edit the properties and add your spell/item/whatever. Then type your fragment and it should look something like
Game.GetPlayer().AddSpell(YourSpell)Stop()
When the game launches for the first time, the quest will launch, add all the spells/items in your script, and then close down when it's finished.
Thanks for the quick reply.
I like both the ideas, but when I tried to realize the quest one, my Skyrim does not seem to add the quest to my quest list. It is not necessary to start a new game, is it?
You will need to generate an SEQ file before the quest will work - just one of CK's little oddities.
Oh, thanks - hopefully it will work I'll let you know how it turns out