Souperintendent Posted January 26, 2015 Share Posted January 26, 2015 I've looked all over and for the life of me, I can't find a place that'll tell me how to do this for someone with no scripting experience. I just need to find out how to have a spell be added to the player during dialogue with an NPC. Both the spell and NPC are mods. How would I script this? Thanks a million. Link to comment Share on other sites More sharing options...
Terra Nova Posted January 26, 2015 Share Posted January 26, 2015 (edited) Since I'm the one explaining it. No one ever gets it when I do, and it just turns into a "it doesn't work" discussion. So I'm going to explain this once, and someone else can go from there if they want.. For the dialogue you need to do a few things first. This is the easy way as topic fragments are notorious for being difficult for new scripters so: Go to the quest stage, it could be any you want.. ADD a property to the STAGE FRAGMENT. If you cannot create a property, type ";" in the script field and hit compile. Then close the quest. Reopen it. Now you can add properties. Stage Fragment → Properties → Add Property → Type: SPELL; Name: NameOfSpell; Click OK. You're done here. Now in the script field typeGame.GetPlayer().AddSpell(NameOfSpell)Now go to the dialog view tab and bring up the dialogue you intend this spell to be added. Look for the section on the bottom of the Topic Info window that is outlined with the word "Scripts". Add this code to the papyrus fragment with the word "End" above it. GetOwningQuest().SetStage(myStage) Where myStage = the stage that contains fragment that adds the spell to the player. What should happen is when the dialog is closed, the spell should be added. Good luck.. Edited January 26, 2015 by Terra Nova Link to comment Share on other sites More sharing options...
Recommended Posts