DigitalSummon Posted February 23, 2011 Share Posted February 23, 2011 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 AAATheHiddenTreasureQueststage20TriggerS… begin onTriggerEnter player if getStage AAATheHiddenTreasure < 20SetObjectiveCompleted AAATheHiddenTreasure 1 20endif 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!!!! (This is going to be a mod) Link to comment Share on other sites More sharing options...
mojodajojo Posted March 30, 2011 Share Posted March 30, 2011 Do you have the index and completed flag backwards? Try switching SetObjectiveCompleted AAATheHiddenTreasure 1 20 to SetObjectiveCompleted AAATheHiddenTreasure 20 1 ? Link to comment Share on other sites More sharing options...
firelady Posted April 1, 2011 Share Posted April 1, 2011 (edited) First of all, you must use stage to control a " quest ".<BR>So your script should look like :<BR><BR><FONT size=2>scn AAATheHiddenTreasureQueststage20TriggerSCRIPT<BR><BR>short DoOnce<BR><BR><FONT size=2>begin onTriggerEnter player<BR><BR>if getStage AAATheHiddenTreasure < 20<BR> if doOnce == 0<BR> SetStage AAATheHiddenTreasure 20<BR> Set DoOnce to 1<BR> endif<BR>endif<BR>End<BR><BR>Also the Stage 20 must have ticked the " Complete quest " check box in order to complete the quest.<BR><BR></FONT><BR><BR></FONT> Edited April 1, 2011 by firelady Link to comment Share on other sites More sharing options...
luthienanarion Posted April 2, 2011 Share Posted April 2, 2011 First of all, you must use stage to control a " quest ".<BR>So your script should look like :<BR><BR><FONT size=2>scn AAATheHiddenTreasureQueststage20TriggerSCRIPT<BR><BR>short DoOnce<BR><BR><FONT size=2>begin onTriggerEnter player<BR><BR>if getStage AAATheHiddenTreasure < 20<BR> if doOnce == 0<BR> SetStage AAATheHiddenTreasure 20<BR> Set DoOnce to 1<BR> endif<BR>endif<BR>End<BR><BR>Also the Stage 20 must have ticked the " Complete quest " check box in order to complete the quest.<BR><BR></FONT><BR><BR></FONT> scn AAATheHiddenTreasureQueststage20TriggerSCRIPT short DoOnce begin onTriggerEnter player if getStage AAATheHiddenTreasure < 20 if doOnce == 0 SetStage AAATheHiddenTreasure 20 Set DoOnce to 1 endif endif HTML: NO!BBCODE: YES! Link to comment Share on other sites More sharing options...
Recommended Posts