Falkner92 Posted December 12, 2011 Share Posted December 12, 2011 (edited) Hi, I've just started dabbling into modding, and I'm still pretty green. I'm looking for something for specific and I'm hoping you can help me. What I want to do is make it so when the player reads (reads, not TAKES) a certain book in my mod, it will advance the quest stage. I know how to do it so the that if the player TAKES the book it advances, but I what I want to do is to have the quest advance just by READING the book and not actually having to take it. Is there such a script, if so, what is it? How do I implement it? PSIn practical terms, what I mean is advancing the quest stage just by selecting, it doesn't matter if you actually take the time to READ it naturally. Edited December 12, 2011 by Falkner92 Link to comment Share on other sites More sharing options...
lonewolfkai Posted December 12, 2011 Share Posted December 12, 2011 Hi, I've just started dabbling into modding, and I'm still pretty green. I'm looking for something for specific and I'm hoping you can help me. What I want to do is make it so when the player reads (reads, not TAKES) a certain book in my mod, it will advance the quest stage. I know how to do it so the that if the player TAKES the book it advances, but I what I want to do is to have the quest advance just by READING the book and not actually having to take it. Is there such a script, if so, what is it? How do I implement it?If I'm not mistaken, you'd have to use an OnActivate script block. Something like: Begin OnActivate Setstage QuestID 20 End Link to comment Share on other sites More sharing options...
Falkner92 Posted December 12, 2011 Author Share Posted December 12, 2011 Hi, I've just started dabbling into modding, and I'm still pretty green. I'm looking for something for specific and I'm hoping you can help me. What I want to do is make it so when the player reads (reads, not TAKES) a certain book in my mod, it will advance the quest stage. I know how to do it so the that if the player TAKES the book it advances, but I what I want to do is to have the quest advance just by READING the book and not actually having to take it. Is there such a script, if so, what is it? How do I implement it?If I'm not mistaken, you'd have to use an OnActivate script block. Something like: Begin OnActivate Setstage QuestID 20 End Well that did the trick, but the problem now is can't select the book ingame for some weird, I can't read it, can't take it, the little book icon appears when I hover over it, but nothing happens if I click it... Link to comment Share on other sites More sharing options...
omeletted Posted December 12, 2011 Share Posted December 12, 2011 Just need to add the activate command, also would be better to have the setstage happen only once: Begin OnActivate Activate if (getstage QuestID < 20) Setstage QuestID 20 endif End Link to comment Share on other sites More sharing options...
Falkner92 Posted December 12, 2011 Author Share Posted December 12, 2011 Just need to add the activate command, also would be better to have the setstage happen only once: Begin OnActivate Activate if (getstage QuestID < 20) Setstage QuestID 20 endif End That didn't seem to do anything at all, I mean the script itself works, but I still have to take the book, if I just exit, I don't get the quest stage change. Link to comment Share on other sites More sharing options...
Striker879 Posted December 12, 2011 Share Posted December 12, 2011 (edited) You could have a look at how Bethesda implemented the skill training books ... that's how they work. Edited December 12, 2011 by Striker879 Link to comment Share on other sites More sharing options...
Falkner92 Posted December 12, 2011 Author Share Posted December 12, 2011 You could have a look at how Bethesda implemented the skill training books ... that's how they work. Interestingly enough, the skill books have no script attached, I'm sure they have a script somewhere, but I'll be damned if I know where it is. Link to comment Share on other sites More sharing options...
DrakeTheDragon Posted December 12, 2011 Share Posted December 12, 2011 I think (as in I'm not sure anymore) the "Activate" line will end the script at this line, and the stuff afterwards will never execute. Usually you add the "Activate" line at the "end" of an OnActivate block.Hope it helps. Link to comment Share on other sites More sharing options...
Striker879 Posted December 12, 2011 Share Posted December 12, 2011 Perhaps it's part of the whole training script. My own modest modding efforts haven't drawn me into scripting, but I recognize that I'll need to learn to do it if I'm ever to advance the sophistication of my mods, so I monitor most threads that have anything to do with scripting. Link to comment Share on other sites More sharing options...
Falkner92 Posted December 12, 2011 Author Share Posted December 12, 2011 I ended up figuring out what to do by myself by looking at other Bethesda-made quests. :) Thank you very much to everyone who tried to help me. You may close the topic now if you wish. Link to comment Share on other sites More sharing options...
Recommended Posts