Jump to content

Start quest by holotape pickup?


lelcat

Recommended Posts

I am trying to start a quest by picking up a holotape. Created the quest and a basic 0 stage. Then added a defaultrefoncontainerchangedto script to the holotape and set the appropriate quest and stage. But it won't work ingame.

Link to comment
Share on other sites

Default scripts are confusing..

 

I'd use a different approach. Add the player to an alias to a dummy quest and add this script(untested) to the alias.

Quest property QuestYouWantToStart auto
Holotape property TapeToListenFor auto

Event OnAliasInit()
    AddInventoryEventFilter(TapeToListenFor)
EndEvent

Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)
    if akBaseItem == TapeToListenFor
        QuestYouWantToStart.Start() ; Note: The first stage will be the current stage.
        RemoveInventoryEventFilter(TapeToListenFor)
        GetOwningQuest().Stop()
    else
        ; some error occured
    EndIf
EndEvent
Edited by TummaSuklaa
Link to comment
Share on other sites

  • Recently Browsing   0 members

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