Problem With Battle...

Ok to make a long story short, I was testing battles, and I have no idea if this had anything to do with it, but 

I increased the MP cost on a spell, and now when I battle tested, it said: Script 'Scene_Battle' line 584 NoMethodError occured

                                                                                                                            undefined method 'make_targets' for nil:NilClass

It says this every time that the enemy attacks, so i put the MP cost back to normal and it still says this. I havent messed with the script at all so I have no idea haha.

Any help is appreciated thx!
What custom scripts (particularly battle systems/engines) are you using? What's the last thing you did (other than the MP change) before this started happening - and since it worked correctly?
The last custom script I added was the Blood Magic script that uses HP instead of MP for spells, and it even worked then.
Well, line 584 of Scene_Battle is this:

targets = @subject.current_action.make_targets.compactand it's saying current_action is nil.
Try disabling the Blood Magic script and see if you still get the error. Make sure you save your project before doing a battle test, because it does not save by default, so no script changes will take effect in battle tests unless you manually save.


Did you make any other changes to the spell?
I did make it call a common event that took HP away from enemies
And I removed the Blood Magic script and it still says it
Oh nevermind you were right haha i removed the Blood Magic thing and i just had to save it works now thx.
Ashtonion, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


So do you need help getting the blood magic thing working? If so, give us a link.
Alright here's a link http://mrbubblewand.wordpress.com/rgss3/blood-magic/

and sorry about double posting.
That script doesn't do anything with current_action or @subject either.


Are you sure you've put it in the right place and set all the note tags correctly? It aliases all of its methods, so it should be safe to put it below all other custom scripts in Materials.
Yeah, i think it was because it was in the middle, but I am pretty sure I did the note tags right i dont know why, but the skills still only took mp. 
Post a screenshot of one of your skills, so I can see what you have in the notes.
I don't know if my laptop takes screenshots, but For a skill called "Crimson" in the notetags it says <blood magic> like it told me to in the script. Did i 

do it wrong?
How 2 screenshot:

PrintScreen key for fullscreen screenshot

Alt + PrintScreen key for screenshot of the active window

Then ctrl+v onto MS Paint or something. Save it and upload to imgur/photobucket/etc. Insert it here.
Untitled.pngOh, then heres the picture 
Yes, you did it wrong. From Mr Bubble's blog:


<blood magic> is for actors, classes, weapons, armors, enemies and states. So it does not apply to skills.


For a skill or item, you need to use one of the following (or possibly several):


<blood magic: required>


<blood magic: ignore cost>


<blood magic: ignore penalty>


So you probably need to put <blood magic> on the actor, class, weapon, whatever or apply it to a state and then inflict the actor with the state - whatever it is that 'triggers' blood magic to be used, and then put <blood magic: required> on the skill itself.
Oh ok i get it
aww i got here to late to help lol mark my words i will solve the problem to somebodys issue first even if i have to hunt all night lol
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-battle.21804/