Getting a book to trigger a quest?

Post » Fri Jan 04, 2013 12:23 am

Hello,

I was wondering how I would get a book to trigger a quest, I've tried looking through tutorials but they all have NPCs trigger the quest with some sort of dialogue. So if anyone has a video tutorial or wants to give an explanation on how to do this it would be much appreciated.

Thanks,
User avatar
Margarita Diaz
 
Posts: 3511
Joined: Sun Aug 12, 2007 2:01 pm

Post » Fri Jan 04, 2013 12:39 am

Attach a script with an OnRead event. Have it like this:

Event OnRead()

myQuest.Start()

EndEvent

Look on the wiki for anything else :)
User avatar
Ellie English
 
Posts: 3457
Joined: Tue Jul 11, 2006 4:47 pm

Post » Fri Jan 04, 2013 12:19 pm

I think I remember there being a vanilla script already in the ck for just this situation

I think it's called something along the lines of "DefaultOnReadSetStage"

Just add that to the Base Object of your book then fill the properties accordingly

- Hypno
User avatar
sara OMAR
 
Posts: 3451
Joined: Wed Jul 05, 2006 11:18 pm

Post » Fri Jan 04, 2013 8:49 am

There are a number of quests that do this. Try looking at MS01 and see how they do it. I'm pretty sure they attach a script to an alias that placed the book and the script makes the quest update when the player reads it. Technically the quest is already started by the time you read the book, but it's the same concept.
User avatar
claire ley
 
Posts: 3454
Joined: Fri Aug 04, 2006 7:48 pm


Return to V - Skyrim