Some games feature anti-cheat scripts or secondary verification variables. If your gold resets back to its original value upon entering a battle, you may need to find and change the parallel "shadow" variable that verifies your gold count.
If you want to make sure your edits work perfectly, let me know: What are you trying to edit? What variables or items are you trying to change? Rpg Wolf Save Editor