Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

cant remember how to do this...

i know what i want to do... and that its possible... but i forget the scripts...

i want to write a text file when i do something, then i want you to be able to enter a password in another game but only if that text file is present and then using the file.delete() delete the text file so it cant be shared or used multiple times...

can anyone enlighten me on this... i would really appreciate it if i could do it through call script commands as im making most of the system i need this for directly out of events...
 
ok that was awesome.. it works perfectly and it helped loads... but now i just need to know how to make it check what the data written in that file is... e.g:
file = File.open("Data/Password.txt")
Marshal.dump("secretpassword", file)

that makes the password but now how do i make the system check if the password is correct... so like an if statement...

if password.txt has secretpassword written in it... do something... get it?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top