zac101 Posted May 30, 2023 Posted May 30, 2023 (edited) How do i add my custom shout to an object or NPC to teach the player, the "wop" I've tried spellbooks but that didn't work. Can i even add it to an NPC so it teaches the player?I can also add it through commands, but only because every tutorial ever just shows you the command line for it, nothing else...Or even just adding the words to a wall Edited May 30, 2023 by zac101
IsharaMeradin Posted May 30, 2023 Posted May 30, 2023 Whatever object you want the player to interact with will need a script that ultimately uses AddShout. The shout will need to be assigned to a property variable on the script and the property variable is what gets passed into the AddShout function. Example Reveal hidden contents Event OnActivate(akActivator) If akActivator == Game.GetPlayer() ;is it the player If !akActivator.HasSpell(myShout) ;do they not have the shout akActivator.AddShout(myShout) ;add the shout EndIf EndIf EndEvent
Recommended Posts