Jump to content

Script syntax for reading / using a book?


Asterra

Recommended Posts

Trying to pin this one down. Basically I want my little script to run (add a perk to the player) when the player activates (reads) a certain book in their inventory. In-game, one certainly can activate the book, and it makes a little inventory noise and seems to try to do something. But I don't know what this action qualifies as, as far as the script is concerned. It isn't "OnEquip", the way it might be in Papyrus.

 

For now, an unsatisfying workaround I have in place is that the perk gets added the moment the player picks the book up off the ground. Obviously not what I'm after.

 

Edit: Solved the problem reasonably by changing the book into an Ingestible with a Base Effect with the script. Also discovered that replacing the "food" with an actual "book" will result in the book not actually showing up in the Pipboy inventory until it's closed and reopened. (A "food" item does not share this quirk.) A little disappointing but I'm ready to move on.

Edited by Asterra
Link to comment
Share on other sites

  • Recently Browsing   0 members

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