Trigger Script Help... Whats wrong with the script?

Post » Tue May 17, 2011 1:08 am

How do I create a trigger script to complete a quest? I want a trigger script that when the player walks into a certain position I want it to complete the quest. THIS IS THE SCRIPT WHICH FOR SOME REASON DOES NOT WORK:

scn AAATheHiddenTreasureQueststage20TriggerSCRIPT

begin onTriggerEnter player

if getStage AAATheHiddenTreasure < 20
SetObjectiveCompleted AAATheHiddenTreasure 1 20
endif

End





Quest info: You come up to this guy and you talk to him... You complete 2 objectives by talking to him. After you have talked to him you have to go to this position in the wasteland when I walk in the right position... Nothing happens. Please help.

Quest ID: AAATheHiddenTreasure

I WANT THIS TO END THE QUEST! But nothing happens PLEASE HELP IF YOU NEED ANY MORE INFO JUST ASK! PLEASE!!!!!!!!! HELP!!!!
User avatar
Alexxxxxx
 
Posts: 3417
Joined: Mon Jul 31, 2006 10:55 am

Post » Tue May 17, 2011 7:59 am

Create a quest stage. Say, 25. Then select it in the stage index, right click in the result window thing (The white area to the upper right) and say new. Select that new one, and you see a checkbox next to the words 'Complete Quest'. Check that box. Now when you move the quest to this stage, it completes it. Now in your quest trigger, add the line 'SetStage AAATheHiddenTreasure 25' under the 'SetObjectiveCompleted AAATheHiddenTreasure 1 20' and it will advance it to that stage, and show it as completed to the player.
User avatar
Bee Baby
 
Posts: 3450
Joined: Sun Jun 18, 2006 4:47 am

Post » Tue May 17, 2011 2:11 am

Thank you so much! After months and months of looking and asking yours is the most detailed honest and greatfully perfect! It works! Thanks so much! Can I add you as a friend? THANK YOU!
User avatar
maya papps
 
Posts: 3468
Joined: Mon Aug 07, 2006 3:44 pm


Return to Fallout: New Vegas