Jump to content

Help making a simple script to control what a NPC says


Recommended Posts

What I'm essentially trying to do is create a dialouge option that can be said only once, and afterward, if said again, shows a different message. I figured I can do this via script, declare a variable and control those variables through the results box in the dialouge window, but it doesn't seem to do anything. Actually, if I do put any kind of thing like 'set <scriptname.variable #>' it acts like everything in the results box is commented out -- the results does nothing. If I do not have any variable there, it works fine.

 

I know the game sees the variable, I can check with ShowVars and Show <variable name>. Trying <set scriptname.variable #> gives an error.

 

Pretty much, all I need is something to declare a variable that changes with npc dialouge. I'd perfer if it were a local script (to not have it run all the time, only when in the same cell as the npc. I also can't assign the local script to the npc because he also has nolore.) And I don't really know if a global variable would be more efficient or not, there's not much detailed information about it on any of the scripting tutorials.

 

Any help?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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