Well seeing as the post was old and locked, I wanted to post my fix for this that I found in case anyone might be wanting to use this. (By the way thanks so much Conjured for this! Will definitely give you credit in my game!)
Original post here:
http://forum.thegamecreators.com/?m=forum_view&t=130281&b=24&p=4
And the fix I got to work:
If you want the Cash System to reset at the beginning of the game, All you have to do is open the cash0.fpi, and change the line that reads:
:state=0:dimvar=cecashcounter
to this:
:state=0:dimvar=cecashcounter,setvar=cecashcounter 0
Now save the cash0.fpi file as something else such as cashreset.fpi, or whatever you want to name it. Then, place the cash entity "cs0" (beautiful framed wall picture) in the first level or whatever level you want the amount to reset to, and set the Main AI script to the new cashreset.fpi . Although remember to put the cs0 entity somewhere in each level after that one, and set the Main AI script to cash0.fpi to continue collecting monies.
So the original full cash0.fpi is:
;FPSC Artificial Intelligence Script v118
;Created by Brian Woodward DBA Conjured Entertainment
;Creation 2011/06/10 YYYY/MM/DD
;Modified by YOUR NAME HERE
;Modification Date
desc = New Conjured Cash System
;Triggers
:state=0:dimvar=cecashcounter
:state=0:hudreset,hudx=60,hudy=5,hudimagefine=gamecore\huds\user\cash.dds,hudname=cashlabel,hudhide=1,hudmake=display
:state=0:hudreset,hudx=58,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudtype=6,huduservar=cecashcounter,hudmake=numeric
:state=0:hudshow=cashlabel,state=1
;End of Script
And the one to reset it is:
;FPSC Artificial Intelligence Script v118
;Created by Brian Woodward DBA Conjured Entertainment
;Creation 2011/06/10 YYYY/MM/DD
;Modified by Automatic
;Modification 2013/11/7
desc = New Conjured Cash System
;Triggers
:state=0:dimvar=cecashcounter,setvar=cecashcounter 0
:state=0:hudreset,hudx=60,hudy=5,hudimagefine=gamecore\huds\user\cash.dds,hudname=cashlabel,hudhide=1,hudmake=display
:state=0:hudreset,hudx=58,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudtype=6,huduservar=cecashcounter,hudmake=numeric
:state=0:hudshow=cashlabel,state=1
;End of Script
I hope that made sense, and it worked great for me on FPSC 1.20.017 after building two levels, putting the cashreset.fpi in level 1, and the cash0.fpi in level 2. It solved the issue where when you click "New Game" that the counter wouldn't reset, now it does and works like a charm! Hope this helps!
Cheers,
AutO
EDIT: Only thing is, if you save your game in the first level after picking up cash, then reload the first level (or any level with the cashreset.fpi in it) then it will reset your cash to 0$.
-remember that you are unique, just like everyone else-