Jump to content

Need some scripting help please


Recommended Posts

Looking for a script that adds a perk whenever u read a book.

 

I know its possible because i had it work before but i removed script somehow and forgot how i did it and now i can't get it too work i know im stupid..

 

Thanks

Edited by Icrusher
Link to comment
Share on other sites

Since SSE papyrus should be identical to original papyrus...

 

You probably want something like the following attached to the book.

 

ScriptName SomeScript Extends ObjectReference
 
Perk Property MyPerk Auto
 
Event OnRead()
  If !(Game.GetPlayer().HasPerk(MyPerk))
    Game.GetPlayer().AddPerk(MyPerk)
  EndIf
EndEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

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