Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
write to file script
good871 Offline
Junior Member

Posts: 22
Threads: 10
Joined: Aug 2011
Reputation: 0
#1
write to file script

Hi,
Is it possible to write(read) to(from) a file in script? I want to save some information about game during playing.
Thanks.
06-14-2012, 10:10 PM
Find
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#2
RE: write to file script

AddDeBuggMessage?

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
06-14-2012, 10:28 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: write to file script

Print is the closest you'll get.

Tutorials: From Noob to Pro
06-14-2012, 10:38 PM
Website Find
good871 Offline
Junior Member

Posts: 22
Threads: 10
Joined: Aug 2011
Reputation: 0
#4
RE: write to file script

I ment create a file a print into this file during playing. For example: find 1 of 5 secret area in all game, print to file mark.
06-15-2012, 01:38 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#5
RE: write to file script

Well I think you can use GlobalVariables to read how many secrets or so the player have found and then write different credits for each amount of variable

06-15-2012, 03:31 PM
Find
good871 Offline
Junior Member

Posts: 22
Threads: 10
Joined: Aug 2011
Reputation: 0
#6
RE: write to file script

And how to count if it isn't in same level?
06-15-2012, 05:39 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#7
RE: write to file script

A GlobalVariable goes through out the whole CS but a LocalVariable is only for the map you use it on Smile

06-16-2012, 12:11 AM
Find
good871 Offline
Junior Member

Posts: 22
Threads: 10
Joined: Aug 2011
Reputation: 0
#8
RE: write to file script

Thanks. It's like java. Sooo simple Big Grin.
06-16-2012, 09:03 AM
Find




Users browsing this thread: 2 Guest(s)