Scripting Rewards from Dialogue

Post » Tue Jun 19, 2012 4:40 pm

I'm in a peculiar circumstance where I want to reward the player for bringing in an item, but I don't want it to advance the quest. The reason for this is that the actual quest is secret, while the shown quest is something small and mundane (collecting bug jars). So, I want the player to collect these bug jars and turn them in for 500 gold (times the number of jars turned in), but I need to do this without advancing the quest. So I want to do it from dialogue.

So I wrote this script from dialogue, and it won't work. I was hoping someone might know a way to do this.
Scriptname TraderJoe extends ReferenceAlias Alias Property dunUniqueButterflyInajar  Auto MiscObject Property ItemReward  Auto Int Property Multiplier Auto =1Alias Property Burke  Auto function goldtrader()   Burke.GetReference().AddItem(dunUniqueButterflyInajar.GetReference())   Game.GetPlayer().AddItem(ItemReward, 500 * multiplier)   Multiplier = Multiplier + 1endFunction
User avatar
Motionsharp
 
Posts: 3437
Joined: Sun Aug 06, 2006 1:33 am

Post » Tue Jun 19, 2012 12:39 pm

Fix this line
Alias_Burke.GetReference().AddItem(dunUniqueButterflyInajar.GetReference())

And get rid of the

Alias Property Burke  Auto 
User avatar
Marcia Renton
 
Posts: 3563
Joined: Fri Jan 26, 2007 5:15 am


Return to V - Skyrim