Hi!
I'm currently working on a mod where the player writes a diary. I'm planning on doing this by having the player "equipping" inkwells while in certain trigger boxes, and then get a pre-written note from an array based on which trigger box he is in.
I have a quest where I keep my array of notes, and a quest objective for every note. When the player triggers one of my trigger boxes it will display one of the quest objectives. I then have a script added to my inkwells that will read what quest objective is displayed and give the player the proper note.
This is the script I'm using on the inkwells.
Spoiler
MiscObject Property Inkwell Auto
Quest Property tstQuest Auto
Actor Property playerRef Auto
tstQuestTest Property tstArray Auto
int tstnum
Event OnEquipped(Actor akActor)
if akActor == playerRef
Debug.MessageBox("Hi!")
if tstQuest.IsObjectiveDisplayed(0) == 0
playerRef.RemoveItem(Inkwell)
playerRef.AddItem(tstArray)
tstQuest.SetObjectiveDisplayed(0)
endif
endif
endEvent
Now to my problems:
1. When I activate my inkwell in the inventory nothing happens. I've tried both OnEquipped and OnActivate and can't even get my messagebox. Any idea on how I solve this?
2. I don't really know how to call on my array, let alone specific items in it. I'll post my tiny little array from the quest script for good measure. Can anyone help me?
Spoiler