I'm a new user to this, so I'm sorry if this is a simple fix or a problem with how I'm understanding something. While trying to make a bank, I found that I needed to store the current gold as a variable so that I could determine whether the amount that the player wanted to deposit is less than the amount that they currently had. The problem is that when I try to use the control variable option in the event creator to set a variable to the current gold value, and then speak to that person in-game, the game crashes with this error:
Script 'Game_Interpreter' line 649: NoMethoddError occurred.
undefined method '[]='for #<Game_Variables0x8baa970 @data=[]>
I'm not familiar with the language in the script, but there seems to be an error in that section where the event references. Is this a common problem? Is there some way to fix it or am I understanding the function of the Control Variables option wrong?
Script 'Game_Interpreter' line 649: NoMethoddError occurred.
undefined method '[]='for #<Game_Variables0x8baa970 @data=[]>
I'm not familiar with the language in the script, but there seems to be an error in that section where the event references. Is this a common problem? Is there some way to fix it or am I understanding the function of the Control Variables option wrong?