Setting A New Quest Variable And Getting It To Work

Post » Tue Nov 30, 2010 5:29 am

Ok

Brief rundown of what I'm trying, basically in a quest I'm making after my quest and "Blood Ties" is complete dialogue options open with Brailee Ewers who asks if she can move in to my vault to be with her daughter (An NPC i've created for the quest) After the dialogue I add a travel package to Brailee, and add a new package for when she gets to the vault. All this works fine, a day or so later she turns up at the vault. Now what I'm trying to do is have Joannie (her daughter) comment to the player that her mum has moved in. Just seems to make sense that she'd mention it!

This is what I've tried!

Make a quest script for the main quest page which is

"scn Vault1QuestScript

BEGIN GameMode

short BraileeMovedIn

set BraileeMovedIn to 0

END"


Then in the On End box of the travel to the vault package I added this

"short BraileeMovedIn

BraileeEwersRef.addscriptpackage 1VaultWander
Set v1vault1quest.BraileeMovedIn to 1"

And in a dialogue Greeting option for Joannie I added a condition for GetQuestVariable questname, BraileeMovedIn == 1 (run on subject)

As the quest variable option showed up I thought I'd done it right but in game all I get from Joannie is the greeting option for before Brailee moves in.

Am I close to being right or completely wrong ;-)
User avatar
Emma Louise Adams
 
Posts: 3527
Joined: Wed Jun 28, 2006 4:15 pm

Post » Mon Nov 29, 2010 2:21 pm

You don't define variables inside of code blocks. All you need is this for the quest script:

scn Vault1QuestScriptshort BraileeMovedIn


Then in your on end block in the AI package, you don't need to define a new varibale (it won't work anyway except for ref variables). Just use the explicit reference to your quest varibale like you have done:

Set v1vault1quest.BraileeMovedIn to 1

That should do it
User avatar
Daniel Holgate
 
Posts: 3538
Joined: Tue May 29, 2007 1:02 am

Post » Tue Nov 30, 2010 3:33 am

You don't define variables inside of code blocks. All you need is this for the quest script:

scn Vault1QuestScriptshort BraileeMovedIn


Then in your on end block in the AI package, you don't need to define a new varibale (it won't work anyway except for ref variables). Just use the explicit reference to your quest varibale like you have done:

Set v1vault1quest.BraileeMovedIn to 1

That should do it


Thanks pkleiss

I was just about to edit my post to say I knew the problem but didn't know how to fix it, when I used the console it worked. As usual the speed of your reply is appreciated
User avatar
^_^
 
Posts: 3394
Joined: Thu May 31, 2007 12:01 am


Return to Fallout 3