What scripts did you add before this occurred? Does this occur in a blank project for you?
I have added the difficult setting scrip, enemy hp bar and the YanPac battle hud scripts, which had no negative effect on my game, last night when i saved and turned off, everything was fine, even my game, which i was playing before i went to sleep!
On a blank project, in battle test, nothing bad happens either.
You're going to need to provide more information than that. When does this error occur? What scripts are you using?
This error occurs whenever i enter battle. ONLY then as well. The only scripts i am using are the ones i listed and last night eveyrthign was working fine! This makes no sense to me.
I have changed no other scripts, although I think i did take out the save line in one of them, to try to take the save option off the menu, but it didnt work and nothing bad happened at the time.
The enemy HP bar and Battle HUD scripts are probably interfering with each other in some way. Which enemy HP bar script are you using exactly?
Yeah, it does puzzle me that you've having problems now with no changes to the script. Were you testing it yesterday in battle test in the database? Try removing the most recent script you added, save your project, and test it.
If you create a new project, then copy in those additional scripts from your current project (not from where you originally got them) does the issue still happen?
So when you took our the pac-man script it still gives the error?
The important part of the message is not "undefined method" - it's "for nil:NilClass". It means you're trying to do something on an object that hasn't been instantiated yet. One of those scripts is trying to do something to a battler, but the battler has not been set up yet, by the looks of it.
Have you made any changes to those scripts since you originally got them? If so, go and grab them again from their original source, and put them in your "new" project, and see if the error still happens.
Or if you want to zip up (don't encrypt) your new project and post a link, I'll take a look at it.
I think it's the difficulty script causing issues. If it's the one I think you're using, that one boosts enemy parameters which is where the error seems to be occurring.