Well, it works for one of the quests, but not for the other...
The "Tending the Flames" quest is defined as MS05 (the correct quest ID), and when completed by the player gives the correct messagebox and removes 5 gold as a result.
The "Fit For a Jarl" quest is defined as SolitudeFreeform02 (the correct quest ID), but when completed by the player is completely ignored, doesn't give the correct message or remove 10 gold - instead, the standard "Dibella grants your blessing!" message and 25 gold is removed.
Have I made any obvious errors in my scripting?
Scriptname ShrineDonationDibella extends ObjectReference MiscObject Property Gold001 AutoQuest Property TendingTheFlames AutoQuest Property FitForAJarl AutoSpell Property TempleBlessing AutoMessage Property BlessingMessage AutoMessage Property AltarRemoveMsg AutoActor property PlayerRef autoimport debugEvent OnActivate(ObjectReference akActionRef) if akActionRef == PlayerRef ;We don't want NPCs activating this If PlayerRef.GetItemCount(Gold001) < 25 debug.messagebox("You need at least 25 gold to offer a donation! Worship the embodiment of beauty through the arts, and please Dibella as you please your lover.") ;(make the transaction fail) ;<===Convert to message object Else If TendingTheFlames.IsCompleted() PlayerRef.RemoveItem(Gold001, 5) TempleBlessing.Cast(akActionRef, akActionRef) AltarRemoveMsg.Show() BlessingMessage.Show() debug.messagebox("Your poetic and musical artistry at the Bard's College is pleasing to Dibella - she grants a blessing for just 5 gold!") Else If FitForAJarl.IsCompleted() PlayerRef.RemoveItem(Gold001, 10) TempleBlessing.Cast(akActionRef, akActionRef) AltarRemoveMsg.Show() BlessingMessage.Show() debug.messagebox("Your appreciation of fine clothing pleases Dibella - she grants a blessing for just 10 gold!") Else PlayerRef.RemoveItem(Gold001, 25) TempleBlessing.Cast(akActionRef, akActionRef) AltarRemoveMsg.Show() BlessingMessage.Show() debug.messagebox("Dibella grants your blessing! Worship the embodiment of beauty through the arts, and please Dibella as you please your lover.") endif endif endifendifEndEvent
Edit: I don't know why my code is being formatted like that here - it looks fine in the CK and when I paste it here...but looks different when I view the post...