Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
write to file script
Author Message
good871 Offline
Junior Member

Posts: 20
Joined: Aug 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
SilentHideButFine Offline
Member

Posts: 151
Joined: May 2012
Reputation: 6
Post: #2
RE: write to file script
AddDeBuggMessage?

Vill inte se mera. , New song check it out , download like comment!
06-14-2012 10:28 PM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,236
Joined: Jul 2011
Reputation: 216
Post: #3
RE: write to file script
Print is the closest you'll get.

Tutorials: From Noob to Pro
06-14-2012 10:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
good871 Offline
Junior Member

Posts: 20
Joined: Aug 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
SilentStriker Offline
Posting Freak

Posts: 939
Joined: Jul 2011
Reputation: 39
Post: #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 all posts by this user Quote this message in a reply
good871 Offline
Junior Member

Posts: 20
Joined: Aug 2011
Reputation: 0
Post: #6
RE: write to file script
And how to count if it isn't in same level?
06-15-2012 05:39 PM
Find all posts by this user Quote this message in a reply
SilentStriker Offline
Posting Freak

Posts: 939
Joined: Jul 2011
Reputation: 39
Post: #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 all posts by this user Quote this message in a reply
good871 Offline
Junior Member

Posts: 20
Joined: Aug 2011
Reputation: 0
Post: #8
RE: write to file script
Thanks. It's like java. Sooo simple Big Grin.
06-16-2012 09:03 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)