Jump to content

Need help to create a basic, non-interactive bard


Dahveed

Recommended Posts

Hello.

 

I am messing around in the Companions' mead hall and trying to make the place a bit more lively.

 

To do so I want to add a bard which would basically alternate between all the different available songs and instruments 24/7 without ever really stopping.

 

I can already put a "normal" bard there that would take requests, but what I really want it just a bard who would stand in the same spot, play random music, and not interact with the player. Likewise I would not want other NPCs to react (i.e. applaud) after each song. they would continue as if the bard weren't even there.

 

It would just serve to add some more "background noise" to Jorvasskr to make it seem more busy and lively.

 

Would anyone know how to go about this?

 

Thanks in advance.

Link to comment
Share on other sites

Sounds like you just want a NPC playing an idle animation that loops, and sound to come from them.

 

You will want to attach a script to your NPC. You will want to have properties for all the SoundMarkers representing the songs you want them to play. You will want properties to keep track of the SoundMarkerState if there is more than one song (I.E. a SoundDescription that the SoundMarker is pointing to is composed of 4 sounds, you want logic for all 4).

 

I recommend either creating an array of SoundMarkers or a FormList so you can keep track of what SoundMarkers have been played (if you want the songs to be picked at random, otherwise ignore this part).

 

You might want to use OnInit() to call your song playing function. Within your play function you want to use RegisterForSingleUpdate() with the time being the length (in seconds) of the song. You want an Int property to keep track of the song choice you want next for your function logic. In your OnUpdate() you want to call your play function again with the Int property containing your song choice. Within the play function, if you reach the end of the list, and the final sound marker has been played once, you will want to reset your song play property to the first choice and reset the marker states back to their initial values.

 

Hope this helps.

Link to comment
Share on other sites

Thanks Arron I suppose, but I have no idea what the hell you are talking about, lol.

 

I have no knowledge of scripting at all, unfortunately. I thought it would be much easier than that.

 

Maybe one day I'll look some of this stuff up but for now it's not worth the effort.

 

Thanks for the response, cheers.

Link to comment
Share on other sites

Here is a more concrete example, based on some of the functionality I created for MHARPHIN. This particular example is designed to be attached to your custom NPC, and only accounts for one sound marker with 6 sounds in the sound descriptor and does not account for playing an animation:

 

  Reveal hidden contents

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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