Rolinor Posted April 28, 2012 Share Posted April 28, 2012 Okay, well I need help doing some basic quest making. I have created a character and the dialogue, he has everything he needs but I don't understand how to script this or well do a lot. What I want to happen is the actor says his dialogue then immediately attacks the player, after he's killed he has a key on his person for the character to loot from him. I want talking to him to start the quest and picking up the key to end it... Can someone help? ' Link to comment Share on other sites More sharing options...
David Brasher Posted April 28, 2012 Share Posted April 28, 2012 On the last dialog topic used in talking to the NPC before he attacks you, you would place a script Papyrus fragment sort of like this: StartCombat(Game.GetPlayer()) Talking to him to start the quest would use a Papyrus fragment like this on the proper dialog info: GetOwningQuest().SetStage(5) Picking up the key to end the quest would involve putting a script sort of like this on the key: Quest Property GSQ01 Auto Event OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer) if (newContainer == Game.GetPlayer()) GSQ01.SetStage(30) endif EndEvent Source of script: Quest-Making Tutorial Link to comment Share on other sites More sharing options...
Rolinor Posted April 29, 2012 Author Share Posted April 29, 2012 Thanks :), but for some reason I can't get the combat script to work. Link to comment Share on other sites More sharing options...
gasti89 Posted April 30, 2012 Share Posted April 30, 2012 I think you should do like this: - go to "quest aliases" tab, right click and add a new alias ---> check "unique actor" and in the dropdown select your NPC (NOTE: your NPC should be tagged as "unique" when creating him) ---> name it myNPC ---> click ok - go to the last dialogue from the NPC and write this papyrus fragment: GetOwningQuest().SetStage(x) where x is the next stage for the quest - now go to "quest stages tab", click on the x stage you wrote in the dialogue fragment and write this papyrus fragment (you have to 1st add a new quest item by right clicking ---> new on the "quest item" window): Alias_myNPC.GetReference().StartCombat(Game.GetPlayer()) This should make it work Link to comment Share on other sites More sharing options...
Recommended Posts