Jump to content

Item Script


hyper11001

Recommended Posts

Sorry if I've posted this in the wrong section of the site but I don't know where else to post this.

 

Basically I'm making a little "go-fetch-this-for-me" quest and I forgot (don't laugh :tongue:) what the script is were it sets the next stage in your quest by picking up an object (in my case a book).

 

If anyone knows what the script is I'd very much appreciate it.

Link to comment
Share on other sites

You need to write a custom script for your book. One possible way to do it would be:

 

SCN AAFetchBookQuestSCRIPT

; Quest script applied to quest AAFetchBookQuest

Begin Gamemode
    If Player.GetItemCount AAMyBook >= 1
         SetStage AAFetchBookQuest 65
    EndIf
End

 

There are other possible triggers, and better optimized versions.

Edited by David Brasher
Link to comment
Share on other sites

Another way to do it is to use an item script. Make a script, e.g.:

 

ScriptName AAFetchBookScript
short AAFetchBookDoOnce

Begin onAdd

   if (AAFetchBookDoOnce == 0)
       SetStage AAFetchBookQuest 65
       set AAFetchBookDoOnce to 1
   Endif

End

 

Then create a custom book item, AAFetchBook, and make its script AAFetchBookScript. The script will only run when the book is added to your inventory, and the AAFetchBookDoOnce check ensures it will only set that quest stage once. You might of course want to add other conditions like checking getStage to ensure they have completed prerequisite stages, etc.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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