I'm at a loss, I don't get why this isn't working.
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname zSellHouse extends TopicInfo Hidden;BEGIN FRAGMENT Fragment_0Function Fragment_0(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEgame.getplayer().removeitem(Gold, 2500);END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin commentMiscObject Property Gold Auto key Property RWKey Auto
My Method:
I go to the Topic Info window. I choose to Add Script. I select new script. I created the script to have name zSellHouse, I copy/paste the above into the script. It complies without issue. I assign Gold001 to property Gold, and I assign zRiverwoodPlayerHouseKey to property RWKey.
Then I hit okay. I hit okay on the quest menu. Then I save the esp.
Did I do something wrong?
When I go in game and talk to Gerdur, I see the dialogue options and everything. However the script for the topic that buys the house doesn't activate. No gold is removed. This has become very disheartening. I'm not sure where to go next with this.