Jump to content

Second post on this topic Zone Triggers making me want to pull my hair


wulfy1

Recommended Posts

I remember a while ago I was trying to script an NPC to start a conversation with the player and it just wouldn't work. I think in the end I concluded there's just something not quite right about the StartConversation command.

 

How about placing a debug message there instead to see if the ZT is actually working first?

 

SCN SASShaeleighInnEXTMarkerSCRIPT

short Triggered
short doOnce

begin OnTriggerActor player
       if Triggered == 0
               set Triggered to 1
       endif
end
begin GameMode
       if Triggered == 1 && doOnce == 0
               Setstage SavingSammiandAshani 151
               SASShaeleighRefA.RemoveScriptPackage
               Message "If you see this, there's something wrong with the StartConversation command!"
               SASShaeleighPointACellRefA.enable
               DisablePlayerControls
               set doOnce to 1
       endif
end

 

Thanks for the suggestion fg109.

 

even though the problem is fixed, It was a good suggestion. I'm going to throw you a kudos for sticking with the conversation and trying to help.

 

Time to get back to scripting now that it works!

 

Wulf

Link to comment
Share on other sites

Astymma ... you may very well be my new bestest friend. You were right on the money with the IsActionRef suggestion. After a few minutes of thinking about that, I decided to look at an object I made with an IsActionRef on it. Removing the script from this item stopped my problem. Now I know what to look for if it happens again. On the upside, having this problem prompted me to clean up all my scripts and disable overhead processes when they aren't needed.

 

Thank you so much for the enlightening discussion. Kudos go to you. I really appreciate you letting me use your brain.

 

Wulf

 

Heh, I'm glad my ramblings on the subject managed to point you in the right direction :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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