Skip to content

Commit

Permalink
Mark spell tome as read.
Browse files Browse the repository at this point in the history
  • Loading branch information
miere43 committed May 16, 2022
1 parent 8e9685d commit 317ab32
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ More information can be found at [Nexus Mods mod page](https://www.nexusmods.com

## Requirements
* [SKSE](https://skse.silverlock.org)
* [powerofthree's Papyrus Extender](https://www.nexusmods.com/skyrimspecialedition/mods/22854)

## License

Expand Down
Binary file modified src/AutoUseSpellTomes.esp
Binary file not shown.
Binary file modified src/Scripts/MiAutoUseSpellTomeScript.pex
Binary file not shown.
3 changes: 3 additions & 0 deletions src/Scripts/Source/MiAutoUseSpellTomeScript.psc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ScriptName MiAutoUseSpellTomeScript Extends ReferenceAlias

Import PO3_SKSEFunctions

Event OnInit()
RegisterForSingleUpdate(1)
EndEvent
Expand All @@ -25,6 +27,7 @@ State Ready
actorRef.RemoveItem(akBaseItem, 1, true)
UISpellLearnedSound.Play(actorRef)
Debug.Notification("New Spell Learned: " + bookSpell.GetName())
PO3_SKSEFunctions.SetReadFlag(bookRef)
EndIf
EndEvent
EndState
Expand Down

0 comments on commit 317ab32

Please sign in to comment.