- Joined
- Jul 3, 2016
- Messages
- 36
- Reaction score
- 32
- First Language
- English
- Primarily Uses
- RMVXA
I desperately need a self-variables script for my project, and I found one here https://maker-schmiede.de/WBB4/index.php/Thread/120-Einfaches-Self-Variables-Script/ but I'm having trouble figuring out how to get it working. I used Google Translate to read the instructions as the site is in German, but I'm confused as to how it actually works. For a test, I created an event with the intention of making it so that its self variable increased by 1 when you talk to him, and that when it reaches the value 2 he says something, using the script commands given on the website:
However, when I tested the game and talked to the character, I got this error/crash:
Here's an image of how the script looks in my game btw, in case I accidentally copied it wrong (I can't tell):
I'm not sure if the mistake is in how I wrote it or the script itself or what. I'm also not sure if I'm supposed to set the variable before I try to change it, but I didn't see a command for that on the site. Any help would be greatly appreciated! (BTW, I'm intending to use it to create a farming system if it's relevant)
EDIT: Ok, I figured out why I formatted the scripts wrong; google translate messed with the format on the site, so I took it down wrong. I got rid of a few spaces and now it doesn't crash when I talk to the NPC, but it doesn't come up with the dialogue after I talk to him a few times either so I'm not sure if the self variable is working; when I interact with the NPC, he quickly turns to face me before turning back to his original position, without saying anything, even after multiple times.
EDIT 2: Phew OK I figured it out, I was actually just being stupid and using the wrong command q.q ... I had a bit of a misunderstanding. Sorry guys, problem solved!
However, when I tested the game and talked to the character, I got this error/crash:
Here's an image of how the script looks in my game btw, in case I accidentally copied it wrong (I can't tell):
I'm not sure if the mistake is in how I wrote it or the script itself or what. I'm also not sure if I'm supposed to set the variable before I try to change it, but I didn't see a command for that on the site. Any help would be greatly appreciated! (BTW, I'm intending to use it to create a farming system if it's relevant)
EDIT: Ok, I figured out why I formatted the scripts wrong; google translate messed with the format on the site, so I took it down wrong. I got rid of a few spaces and now it doesn't crash when I talk to the NPC, but it doesn't come up with the dialogue after I talk to him a few times either so I'm not sure if the self variable is working; when I interact with the NPC, he quickly turns to face me before turning back to his original position, without saying anything, even after multiple times.
EDIT 2: Phew OK I figured it out, I was actually just being stupid and using the wrong command q.q ... I had a bit of a misunderstanding. Sorry guys, problem solved!
Last edited:




