Aller au contenu

Photo

Quest script


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Shodushi

Shodushi
  • Members
  • 87 messages
hi, i know i should ask for this in the scripting forum, but i somehow cant post there anything..

So, how do i make an item collectable  for a quest? i assume a plot flag and some syntax, which Im not sure what..
any ideas?

i thought about something like this within my plot script.. for collecting books (2 or more books to be collected)

case MY_PLOT_QUEST_ACCEPTED:
{
object oObject = GetObjectByTag("book_tag")
GetItemStack (oObject, "book_tag1");
}

or if the books are on other areas something like this

#include "plt_my_books"
...

case EVENT_TYPE_AREALOAD_PRELOADEXIT:
{
if (WR_GetPlogFlag(PLT_MY_BOOKS, MY_BOOKS_QUEST_ACCEPTED))
{
object oObject = GetObjectByTag("book_tag");
GetItemStack (oObject, "book_tag1");                    /maybe SetItemStack???
}
}


btw.. i know my scripting isnt really good, just started trying it, some other scripts from me work.. but im doing hard getting "collection of items" done right..

#2
Shodushi

Shodushi
  • Members
  • 87 messages
/bump :)

does really no one knows a hint ? :D

#3
Adaram

Adaram
  • Members
  • 464 messages
There should be plenty of examples of this from the main campaign. Scrolls of Bannistor is a quest line that comes to mind -- where you have to collect 5 scrolls to complete the quest. I would look at the main campaign inside the toolset, find that quest, and use that as an example.



Unfortunately, my actual use of the toolset is very limited right now while I finish the main campaign, so that's about all the hrlp I can offer.



Good luck and I hope this helps.