Scripting Help? Checking if a voice note is used.

Post » Tue May 17, 2011 1:42 am

I'd like some scripting help with how to check if a particular voice note is played by the player.

For example in a quest line you are given a voice note by an NPC and asked to listen. Further dialogue is locked until the player listens.

I know how to handle the dialogue condition - have a check condition like bNotePlayed == 1

what I'm not sure is what script to use to physical check if a voice note is played in order to update bNotePlayed.

Any help is appreciated

thanks!
User avatar
Lifee Mccaslin
 
Posts: 3369
Joined: Fri Jun 01, 2007 1:03 am

Post » Tue May 17, 2011 1:44 pm

I'd like some scripting help with how to check if a particular voice note is played by the player.

For example in a quest line you are given a voice note by an NPC and asked to listen. Further dialogue is locked until the player listens.

I know how to handle the dialogue condition - have a check condition like bNotePlayed == 1

what I'm not sure is what script to use to physical check if a voice note is played in order to update bNotePlayed.

Any help is appreciated

thanks!


Voice type notes have a spot where you can give it a quest topic. In the result script of the topic, set your variable that the note has been played.
User avatar
Cameron Wood
 
Posts: 3384
Joined: Wed Oct 31, 2007 3:01 pm

Post » Tue May 17, 2011 4:16 am

Voice type notes have a spot where you can give it a quest topic. In the result script of the topic, set your variable that the note has been played.



I'm looking at the voice note now - I see 'Owner Quest" but no place to set the topic? I attributed it to my quest, do i need to do something in the quest itself to get this?
User avatar
Brian LeHury
 
Posts: 3416
Joined: Tue May 22, 2007 6:54 am

Post » Tue May 17, 2011 3:59 am

I'm looking at the voice note now - I see 'Owner Quest" but no place to set the topic? I attributed it to my quest, do i need to do something in the quest itself to get this?


Down further there should be a speaker and a topic that plays the voice file for the note. In the topic result script you set your flag.
User avatar
saxon
 
Posts: 3376
Joined: Wed Sep 19, 2007 2:45 am

Post » Tue May 17, 2011 2:00 am

Down further there should be a speaker and a topic that plays the voice file for the note. In the topic result script you set your flag.




Ok I've done that. I created the topic under "topics" in the quest and added a resultant script, but it doesnt seem to work. Would you be able to PM me your email and I could sent you a screen?'

Thanks so much for your help!
User avatar
Rachie Stout
 
Posts: 3480
Joined: Sun Jun 25, 2006 2:19 pm


Return to Fallout: New Vegas