scn SVGoldAddScriptref ActorBegin GameModeset Actor to GetFirstRef 69 1While Actor If Actor.getitemcount DontGiveMoneyToken == 0 Actor.additem Gold001 50 Actor.additem DontGiveMoneyToken 1 endif set Actor to GetNextRefloopEnd
However, this causes an immediate CTD every time I load the game. What do I need to do to make this work?
Edit- This is a quest script.