Jump to content

Turning Scripted Ambient NPCs into Interactive


Recommended Posts

First off, yes, my UTCs are set to interactive. I believe it is a script making them ambient. And unlike the Ostagar NPCs that can go from Ambient to interactive this one doesn't. I am not very good at mods, but usually I can make a few edits, so I need assistance. Any suggestions on how to make these scripts turn them interactive?

 

bhm100cr_classroom3_stud:

 

  Reveal hidden contents

 

Maybe bhm100cr_mentor3 too:

 

  Reveal hidden contents

 

Example script pre100pt_ambient:

 

  Reveal hidden contents

 

Link to comment
Share on other sites

It looks to me like that first script is already coded to set them both interactive if/when it is invoked with an EVENT_TYPE_AMBIENT_CONTINUE event.

 

I don't know whether it ever gets invoked with that event, though. It looks like Ambient_Start is called for both characters after they finish going through the lesson.

 

If you're sure you want to do that (usual disclaimers about changing vanilla code):

 

You could replace the calls to Ambient_Start with calls to SetObjectInteractive. You may or may not like the behavior. It may or may not break something else.

Link to comment
Share on other sites

It won't compile with this switch out and gives this error:

 

E: 08:50:07 - bhm100cr_classroom3_stud.nss - bhm100cr_classroom3_stud.nss(93): Declaration does not match parameters (SetObjectInteractive) (while compiling var_constants_h.nss)
And just in case you are wondering, yes, I wait till they get to the chalkboard every time.
Edited by HollownessDevoured
Link to comment
Share on other sites

  • Recently Browsing   0 members

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