Stop a book being picked up by the player

Post » Thu Mar 02, 2017 8:20 pm

Hi all I made a book. nothing fancy, no scripts (apart form defaultdisablehavokonload), no quests or nothing attached to it. Just a book with some text in it sitting on a book pedestal. I ticked the "cant be taken" checkbox for my book but this does absolutely nothing in game. The book can still be taken after reading as normal. So my question is how do I stop the book from being taken by the player ?

User avatar
Solina971
 
Posts: 3421
Joined: Thu Mar 29, 2007 6:40 am

Post » Fri Mar 03, 2017 11:44 am

Sounds like you have to fake it with a script :/, and make the "book" an activator, and when "activated" bring up a message, containing the text.



Create an activator.



In the book's form window, copy the file path for the model of the book, then paste it into the model box for the activator.


Now you need to make a message form, and place your text into it(check that it's a message box). Make a single button that says "close".


Then add this script:



Message property BookMessage auto


Event OnActivate(ObjectReference akActionRef)
akActionRef = Game.GetPlayer()
if akActionRef
Menu()
endif
EndEvent

Function Menu()
Int i = BookMessage.Show()
if i == 0
; Close menu
return
endif
EndFunction

Untested.


Seems nice and simple(though slightly immersion breaking because book doesn't open). But you can't take this kind of activator :P. And this is the approach I would take(I actually was going to try the "Can't be taken" for my own mod.. too bad it doesn't work).

User avatar
Eire Charlotta
 
Posts: 3394
Joined: Thu Nov 09, 2006 6:00 pm


Return to V - Skyrim