Jump to content

How to add shouts to "anything" to teach the player?


zac101

Recommended Posts

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 by zac101
Link to comment
Share on other sites

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

 

 

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

Link to comment
Share on other sites

  • Recently Browsing   0 members

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