I'm going to be using the KTimers script by kyonides in my game so that the player can get resources. I've run it in the demo and it worked beautifully. However, when I put it into my game, I got an error that said "Script 'Ktimers XP' line 91: NoMethodError Occurred. Undefined method '[]' for nil:NilClass"
I checked using a test game to make sure there wasn't any script incompatibility, since the error occurred upon attempting to start a game.
Here's the link to the script: https://www.save-point.org/thread-4420-post-30611.html
And if you're curious the line in question reads:
@events.map {|e| next unless e[1].list[0].code == 108
There is another error I got when I tried to load a save file, but I tend to restart the game progress whenever I add a new script, and I have no idea if that error will come up after this current error is fixed. If it is, obviously I'll post or edit the post here, but until then this is the only issue I'm having with this script.
I checked using a test game to make sure there wasn't any script incompatibility, since the error occurred upon attempting to start a game.
Here's the link to the script: https://www.save-point.org/thread-4420-post-30611.html
And if you're curious the line in question reads:
@events.map {|e| next unless e[1].list[0].code == 108
There is another error I got when I tried to load a save file, but I tend to restart the game progress whenever I add a new script, and I have no idea if that error will come up after this current error is fixed. If it is, obviously I'll post or edit the post here, but until then this is the only issue I'm having with this script.