NDDragor Posted January 24, 2016 Share Posted January 24, 2016 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==0Set WarnPlayerbyNPC.Talking to 1GuardSentinel7REF.EVPset DoOnce to 1Endif 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 More sharing options...
Nazahr94 Posted January 24, 2016 Share Posted January 24, 2016 (edited) 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 January 24, 2016 by Nazahr94 Link to comment Share on other sites More sharing options...
NDDragor Posted January 24, 2016 Author Share Posted January 24, 2016 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 More sharing options...
Recommended Posts