Jump to content

Script help


Recommended Posts

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 BGM01QuestScript

Short DoOnce1

Short MetVonton

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 +1

count1once to 1

EndIf

If (player.GetItemCount "BGLandDeed" 1 >=1 && (count2once==0)

Set BGQO to +1

Set count2once to 1

Endif

Link to comment
Share on other sites

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

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

Do you have the proper script to update the Journal?

Link to comment
Share on other sites

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 1

Endif

endif

if (BGQO == 2)

SetStage BGM01 40

Endif

End

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...