knightfluttershy Posted May 27, 2020 Share Posted May 27, 2020 I've found out how to advance a quest on pick up by using "GetPlayer", but when I create an identical script exceptreplace "GetPlayer" with "GetForm(FormID)", nothing happens at all. Am I doing something wrong here? Link to comment Share on other sites More sharing options...
dylbill Posted May 27, 2020 Share Posted May 27, 2020 Hey, instead of using Getform(FormID) just use an objectReference property and pick your container. Or, you could put a script directly on your container. It would look something like: Scriptname MyModQuestContainerScript extends ObjectReference Form Property MyUniqueItem Auto Quest Property MyQuest Auto Event OnInit() AddInventoryEventFilter(MyUniqueItem) EndEvent Auto State Waiting Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer) If (akSourceContainer as actor) == Game.GetPlayer() MyQuest.SetStage(20) GoToState("Done") Endif EndEvent EndState State Done EndState Name the script something more unique, and don't forget to fill properties in the creation kit. Link to comment Share on other sites More sharing options...
knightfluttershy Posted May 27, 2020 Author Share Posted May 27, 2020 Thanks for the response. I created the objectreference property for the container and put it in, but it still doesn't seem to do anything. Would you mind perhaps giving me the full script for that? Link to comment Share on other sites More sharing options...
dylbill Posted May 28, 2020 Share Posted May 28, 2020 Can you post your original script? Putting the script I posted directly on your container should work. Link to comment Share on other sites More sharing options...
Recommended Posts