Jump to content

Giving the player a quest once a certain npc gets killed


Recommended Posts

Ahoy there.

 

I am currently working on a fairly large questline, while the texture/World/Character work is done by a majority, i am having issues starting the actual quest.

 

I want the quest to be granted to the player upon the death of a certain npc in a ruin interior i made. But i honestly can't figure out what to do.

 

 

 

i made this script, but it doesn't seem to function, i am fairly new to oblivion questing and scripting, but logically, this feels like it should work (some words have been replaced with "censored" as it states part of the quest name, i don't want to spoil it)

 

 

Scriptname "censored"

Begin OnDeath 01008ccc ((This is the reference id of the npc))

Startquest "censored" ((editor id name of the quest))
Setstage "censored" 10 ((editor id name of the quest along with the stage))

END

 

the script type is object, seing as an npc is counted as an "object" and other types wouldn't work on the "ondeath" block, does anyone have any clue why this doesn't function, upon killing said npc, nothing happens, no quest is granted. i have been spending hours trying to get this to work, and i just can't figure it out, giving me one hell of a headache.

Edited by charliedfsf
Link to comment
Share on other sites

EDIT: i had figured it out, i used the script incorrectly, i just altered it and directly attached it to the npc and the quest starts as i wanted, if yall want to know what i did, say so, and i'l post an example.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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