scn HermDialogQuestSCRIPTfloat fQuestDelayTimeshort addeditemsshort gotwinebegin gamemodeif Player.GetInCell BravilSewerHouse == 1 && GetStageDone HermDialogQuest 10 != 1 set fQuestDelayTime to 0.01 if GetTalkedToPCParam HermRef == 1 SetStage HermDialogQuest 10 set fQuestDelayTime to 0 endifendifif getStage HermDialogQuest == 11 && addeditems == 0 LonelySuitorBogrumChest.additem HermGideonWine, 1 SilverhomeGilgondorinChest.additem HermGideonWine, 1 MessageBox "Items added" //for playtesting set addeditems to 1endifif player.GetItemCount HermGideonWine == 1 && gotwine == 0 LonelySuitorBogrumChest.removeitem HermGideonWine, 1 SilverhomeGilgondorinChest.removeitem HermGideonWine, 1 SetStage HermDialogQuest 12 MessageBox "Items removed" //for playtesting set gotwine to 1endifend
Please note that SilverhomeGilgondorinChest and LonelySuitorBogrumChest ARE Persistent Reference IDs. All other pieces of this script are functional and have been tested.