Jump to content

Help with a script.


NDDragor

Recommended Posts

I have a script that makes an NPC autotalk. It works perfectly, but I want that NPC to autotalk only after I have finished a quests stage. The autotalk script looks like this.

SCN WarnPlayer2Script
Short DoOnce
Begin OnTriggerEnter Player
If DoOnce==0
Set WarnPlayerbyNPC.Talking to 1
GuardSentinel7REF.EVP
set DoOnce to 1
Endif
END
I am pretty sure that I have to put the phrase "If GetStage PlayerFirstArrival ==30" somewhere inside this script above, so that the NPC autotalks only after I have finished the quests stage. But I cant figure out where to put the phrase. If I put it before or after "If DoOnce==0" then the script cant be saved, meaning there is some error.
Am I wrong and does somebody knows what needs to be done in order to activate this script only after a stage of the quest has been completed?

 

Link to comment
Share on other sites

Try this for the autotalk script:

 

 

SCN WarnPlayer2Script
Short DoOnce
Begin OnTriggerEnter Player
If GetStage PlayerFirstArrival ==30
If DoOnce==0
Set WarnPlayerbyNPC.Talking to 1
GuardSentinel7REF.EVP
set DoOnce to 1
Endif
Endif
END
Edited by Nazahr94
Link to comment
Share on other sites

 

Try this for the autotalk script:

 

 

SCN WarnPlayer2Script
Short DoOnce
Begin OnTriggerEnter Player
If GetStage PlayerFirstArrival ==30
If DoOnce==0
Set WarnPlayerbyNPC.Talking to 1
GuardSentinel7REF.EVP
set DoOnce to 1
Endif
Endif
END

 

 

Thnx, now its working the way I want it!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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