- Joined
- Nov 12, 2018
- Messages
- 78
- Reaction score
- 12
- First Language
- Russian
- Primarily Uses
- Other
Hello, I'm trying to make some plugins plivately for my project and I have 2 questions
1. When I try to use $game, $data or any other command that starts with "$" in my js file it throws the "cannot read property ... of null". But if I put it inside a Game_Interpreter.prototype.pluginCommand it works perfect, so I assume I can only use "$" data inside of original rpg maker function. But how can I make it so I could use it in my js file in any place I want?
2. How do I use functions from one of my js file in another? For example: I created 1 js plugin with an array and 2nd with a script that summons a window on a button. How do I make it that way so I could summon a window from 2nd js that shows data from an array from 1st js?
1. When I try to use $game, $data or any other command that starts with "$" in my js file it throws the "cannot read property ... of null". But if I put it inside a Game_Interpreter.prototype.pluginCommand it works perfect, so I assume I can only use "$" data inside of original rpg maker function. But how can I make it so I could use it in my js file in any place I want?
2. How do I use functions from one of my js file in another? For example: I created 1 js plugin with an array and 2nd with a script that summons a window on a button. How do I make it that way so I could summon a window from 2nd js that shows data from an array from 1st js?


