mattmatt1234 Posted May 27, 2010 Share Posted May 27, 2010 Anyone that is good at modding can you help me with a script. I'm trying to get it to where the player has to get 2 items to advance in the quest but the construction set keeps saying script command count1once is not found when i want it to be a variable same with count2once. Heres the script ScriptName BGM01QuestScriptShort DoOnce1Short MetVontonShort BGQOShort count1onceShort count2once Begin GameModeIf (DoOnce1 == 0) AddTopic BGMessage4uSet DoOnce1 to 1 EndifIf (BGQO>2) If (player.GetItemCount "BGFarmhousekey" >=1) && (count1once ==0) Set BGQO to +1 count1once to 1 EndIf If (player.GetItemCount "BGLandDeed" 1 >=1 && (count2once==0) Set BGQO to +1 Set count2once to 1Endif Link to comment Share on other sites More sharing options...
Shadowfen Posted May 27, 2010 Share Posted May 27, 2010 the construction set keeps saying script command count1once is not found when i want it to be a variable same with count2once. Heres the script If (player.GetItemCount "BGFarmhousekey" >=1) && (count1once ==0) Set BGQO to +1 count1once to 1 EndIf Your problem is in the segment of code above... You are missing the "set" in front of "count1once to 1" Link to comment Share on other sites More sharing options...
mattmatt1234 Posted May 27, 2010 Author Share Posted May 27, 2010 Thanks i fixed that and a few other things but now when i get to the end of the quest my journal doesn't update i uploaded the esp and a read me here http://tesnexus.com/downloads/file.php?id=31947 thanks Link to comment Share on other sites More sharing options...
Nickelz Posted May 27, 2010 Share Posted May 27, 2010 Thanks i fixed that and a few other things but now when i get to the end of the quest my journal doesn't updateDo you have the proper script to update the Journal? Link to comment Share on other sites More sharing options...
mattmatt1234 Posted May 27, 2010 Author Share Posted May 27, 2010 Heres my quest script ScriptName BGM01QuestScript Short DoOnce1 Short BGQO Short count1once Short count2once Begin GameMode If (DoOnce1 == 0) AddTopic BGMessage4u Set DoOnce1 to 1 Endif If (BGQO<2) If (player.GetItemCount "BGFarmhousekey" == 1) && (count1once ==0) Set BGQO to BGQO +1 set count1once to 1 EndIf Endif if (BGQO <2) If (player.GetItemCount "BGLandDeed" 1 ==1) && (count2once==0) Set BGQO to BGQO +1 Set count2once to 1Endif endifif (BGQO == 2) SetStage BGM01 40Endif End Link to comment Share on other sites More sharing options...
David Brasher Posted May 28, 2010 Share Posted May 28, 2010 Your script is really really complicated. I am not totally sure what all the tasks are your script is supposed to accomplish. If all you want is a new topic, a quest message, and stage advancement on completion, might I suggest a simpler one? ScriptName BGM01QuestScript Begin Gamemode AddTopic BGMessage4u If Player.GetItemCount BGLandDeed == 1 && Player.GetItemCount BGFarmhousekey == 1 SetStage BGM01 40 Endif End Link to comment Share on other sites More sharing options...
mattmatt1234 Posted May 28, 2010 Author Share Posted May 28, 2010 Okay thanks. That worked a lot better,but now i need a script that would advance the quest stage when the player gets close to a map marker. Link to comment Share on other sites More sharing options...
TodaY Posted May 28, 2010 Share Posted May 28, 2010 Begin GameMode if object.getdistance player <= [iNSERT VALUE] do stuff endifend Link to comment Share on other sites More sharing options...
mattmatt1234 Posted May 28, 2010 Author Share Posted May 28, 2010 Will that work for map markers or static objects? This part of the script isn't working If BGFarmHouse01.getdistance player <= 500 SetStage BGM01 100 endifend Link to comment Share on other sites More sharing options...
slygothmog Posted May 28, 2010 Share Posted May 28, 2010 try it this way round If player.getdistance BGFarmHouse01 <= 500SetStage BGM01 100endifend Link to comment Share on other sites More sharing options...
Recommended Posts