Jump to content

Goodbye dialogue won't quit playing?


Recommended Posts

Posted

I am trying to add a bit of dialogue to the PSE mod where the player is enslaved, the owner npc will now say something about owning the player instead of just continuing on their merry way. So I edit the related script in this mod and use the start conversation coding and reference a conversation made in the quest playerslavequest and the owning npc DOES say the line and tries to end the convo but then says it again and again and again! How do I get the owning npc to say that line only once?

 

I used variables like responsibility < 75 and other variables that imply neither the player or the owner are unconscious or having sex etc.

 

I think I have to use the sayonce short but don't know how to use it or where to list it at the top of the script. Can anyone help with this?

Posted

Ok found out I had some stuff wrong like < and > thought one was the other lol. 

 

So I tried using timer and timertoggle which seemed to work but every one second the dialogue would repeat. That tells me the timer and timer toggle stuff was working but I still don't know how to get the dialogue to END after saying it one time per enslavement. I tried the sayonce thing and that worked! but it only says the dialogue once per game load omg:-(

 

I remember a for each command? Maybe for each playerenslave == 1 or something?

Posted

Ok I have this script

 

if OwnerRef.GetAV Responsibility < 75 && OwnerRef.GetCombatTarget == 0 && SlaveRef.GetUnconscious == 0 && SlaveRef.GetKnockedState == 0 && OwnerRef.GetUnconscious == 0  && Player.GetUnconscious == 0 && OwnerRef.GetKnockedState == 0
    if TimerToggle == 0      

        set Timer to 1        

        set TimerToggle to 1        

         OwnerRef.StartConversation Player IchOwnerTalk    

    else        

    if Timer > 0            

        set Timer to Timer - GetSecondsPassed      

    else            

        set TimerToggle to 0        

    endif    

 endif

endif

 

This doesn't look exactly the same because forums but anyone reading get the idea. What happens with this code is every one second, the owner npc repeats this dialogue which is set with a goodbye flag so after clicking the mouse one time the dialogue goes away then one second later it comes back again.

 

I think I could set the timer longer so every x seconds the dialogue is repeated but that would be really annoying. I also have to add something like player is not hogtied and owner is actor because the player can be enslaved to traps like containers and quest stuff like a bed.

 

I want to have random dialgoue said each time depending on disposition to player. It would be better if the dialogue was only said once per enslavement. So far using the SayOnce command the owner only says the dialogue once per game load.

 

I am thinking that I have to use some other method besides timer and timer toggle but don't know what it would be.

Posted

Ok I noticed that even just using the above, the dialogue does not kick in again if I escape then get enslaved again. I am guessing it is the nature of the script that I am altering or how it is written causing this. Maybe I have to write a separate script just for this whole dialogue thing?

 

 

 

I forgot to mention, there is some dialogue with another npc in the same quest where if the npc catches the player the npc says something to them first before doing anything else. That works but something simple like adding dialogue to any npc that enslaves the player doesn't work?

Posted

Dammit...

 

No matter what I do this dialogue problem won't go away! Tried all kinds of things, tried putting the most basic of script in the ichenslaveplayer function but that does nothing. I can't believe there is no simple way of activating dialogue and some dam timer has to be used or a paragraph of script has to be used instead of a timer and toggle:-( Dammit if only I knew what that paragraph should be ugh:-(

Posted

YEAH!!!!!!!

 

playsound foundallkeepersvictorysound

 

 

I beat this dam thing finally!

 

I had to alter another script instead of the one I was trying to alter.

 

The command goes something like

 

if ispullingleash

  OwnerRef.StartConversation Player IchOwnerTalk

endif

 

 

I will elaborate more on the pse thread:-)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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