Jump to content

[Mod Help] Script to advance quest upon NPC death.


WitchsWorkshop

Recommended Posts

Hi everyone,

 

So I'm super new to writing Bethesda scripts and was wondering what the script would be for advancing to the next quest stage upon the player killing an NPC?

 

For context, it's just a simple bounty quest. Player goes into dungeon, gets quest to kill Bandit chief, kills bandit chief and onto the next objective.

 

Thanks! ^-^

 

-Witchy

Link to comment
Share on other sites

You can put a script directly on the bandit chief and use the OnDeath event:

 

Scriptname BanditChiefScript extends Actor 

Quest Property MyQuest Auto 

Event OnDeath(Actor akKiller)
    If akKiller == Game.GetPlayer()
        MyQuest.SetStage(20)
    Else 
        ;player didn't kill the bandit chief, do something different here
    Endif
EndEvent
Change the script name to something more unique for you mod.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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