Jump to content

Can someone help me fix a bug with a basic script?


Recommended Posts

Hello. I'm making a script for a mod and it won't save, which means there's an error in it. I'm looking to complete an objective, add a conversation topic, and another objective to a quest. I've done quite a bit of research and haven't found a solution. The base for the given character is VULTAnthony. His ref is VULTAnthonyRef.

Link to comment
Share on other sites

Hang on. I don't believe the screenshot was posted properly. My bad. The script goes as

 

scn VULTAnthonyDeadSCRIPT

 

run OnDeath VULTAnthonyRef

 

(tab x2) AddTopic 010027E5

(tab x2) SetObjectiveCompleted VULTQuest1 30 1

(tab x2) SetObjectiveDisplayed VULTQuest1 40 1

 

end

Edited by culinwino3000
Link to comment
Share on other sites

Try replacing "run" with "begin", i don't think "run" is a correct keyword.

I've tried that, and it still won't work. I've come to partially rewriting it to this

 

scn VULTAnthonyDeadSCRIPT

Begin OnDeath VULTAnthonyRef

(tabx2)if GetDead == 1

(tabx4) AddTopic 010027E5

(tabx4) SetObjectiveCompleted VULTQuest1 30 1

(tabx4) SetObjectiveDisplayed VULTQuest1 40 1

(tabx2) endif

end

Edited by culinwino3000
Link to comment
Share on other sites

  • Recently Browsing   0 members

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