Tutorial: Cannot give Bendu Olo's Amulet back

Post » Mon Jun 18, 2012 7:00 am

EDIT:
Solved ... sort of (see reply)
END EDIT

I'm working on the tutorial to help recover Bendu Olo's amulet from a thief. It's working fine in-game, until I attempt to give the amulet back. If I click on Olo, all I hear is the Misc: HELLO response I gave him.

This is the part in the wiki tutorial thats supposed to get this working http://www.creationkit.com/Bethesda_Tutorial_Quest_Loose_Ends#Giving_the_Amulet_to_Bendu. I was surprised no dialog was given to give the item back, so I assume the following code runs when I click on Olo.

Stage 30 does run, which asks the player to give the amulet back to Bendu Olo. The Amulet script is the part that sets the stage to 30 which works fine. So I guess there is a setStage to 40 condition missing during stage 30.

Under Quest stage index 40 I have this code:
I set up the properties for gold as MiscObject
SetObjectiveCompleted(30)Alias_Bendu.GetReference().AddItem(Alias_Amulet.GetReference())Game.GetPlayer().AddItem(Gold001, Alias_Amulet.GetReference().GetGoldValue() * 2)

I guess what the tutorial is missing is how to advance the stage to 40 when Olo is clicked upon. In the Oblivion this was a OnActivate block, if I recall rightly. The only script on Bendu Olo is this to handle quest failure and his death.
Scriptname GSQBenduOloScript extends ObjectReferenceQuest Property GSQ01  AutoEvent OnDeath(Actor akKiller)   if (!GSQ01.IsCompleted())   ;failed quest	  GSQ01.SetStage(200)   endifEndEven
User avatar
Killah Bee
 
Posts: 3484
Joined: Sat Oct 06, 2007 12:23 pm

Post » Mon Jun 18, 2012 3:43 pm

OK, I added this to the the NPC Bendu Olo's existing script code... which worked. I have no idea if this is what the tutorial intended. Although there is no check that its the player who is doing the activating, so I'm not sure how solid this code will be. Anyone know how to check if its the player?

Event OnActivate(ObjectReference akActionRef)if GSQ01.GetStage() == 30	GSQ01.SetStage(40)endifEndEvent
User avatar
zoe
 
Posts: 3298
Joined: Sun Nov 12, 2006 1:09 pm


Return to V - Skyrim