Umm, the problem is.. I've already put the script (Analyze along with your codes) at the most bottom part (above main)..
I did try putting the script vice-versa (above MP's scripts).. though there was no error, the skill didn't do anything (the spell was being cast by the char, all the animations took place.. but it didn't do anything as to reveal the enemies' data)..
So the problems on the orders were:
If at bottom most part or middle parts = The error pops up
If at top most part = there was no error, BUT, when the skill is cast, it does nothing!
OH! and here's my script.rxdata file (the one i'm using now), maybe you can see clearly there what might be the problem:
https://www.mediafire.com/?kvtmvegquhg7hzn