The function itself (which compiles just fine):
Scriptname nyczSBSScripts extends QuestMiscObject Property Gold001 AutoGlobalVariable Property nyczSBSAccount AutoFunction Deposit(int amount) Game.GetPlayer().RemoveItem(Gold001, amount) nyczSBSAccount.Mod(amount)endFunction
And the papyrus fragment that calls it: (from within a topic info)
nyczSBSScripts q = getowningquest() as nyczSBSScriptsq.Deposit(1000)
The problem is that it seems to ignore the property definitions in the main script when the function is called (during runtime). Do I have to define the properties locally in the fragment, or am I going about this all wrong?

