Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
Thank you, but the reason I asked this was because I'm working on a project where I could change something in the game by reading in sensors. In this case it's an ultrasonic sensor. If the sensor detects something in front, it will write a 1 to a text file, which i can then use in this function...
Sorry for troubling you again, but I have one last question. Is there a way to read something in from a text file? For example: I have a text file with a 1 as the only text in it. I would like to read in this text file so it returns true if it reads in 1.
Thank you for the quick reply. I tested your code and it showed a length of 0. And indeed, the problem was that no variables were defined yet. It worked as soon as I changed a variable before calling the function.
I have a little problem. I've put the script at the end of PSystem_Utilities, but when I call the script in an event it doesn't write any variables or switches.
https://pasteboard.co/JQK5jrZ.png
https://pasteboard.co/JQK5uXB.png
Hello.
I was wondering if there is any way of exporting/writing variables to a .txt file upon saving the game or changing a variable. As far as i know there is no other way to read a .rxdata file outside of RPG Maker, so reading from the rxdata directly probably wouldn't work.
Any possible...