I am trying to create a script that, depending on the actor's class, changes the MP bar to something else. It would use Syvkal's Menu Bars VXAce script (http://www.rpgmakervxace.net/topic/1799-syvkals-menu-bars-vxace/).
I used this code to start a check:
if $data_actors[11].class.id == 11 then
whatever
end
However, when testing, I am confronted with this message:

Is there something I'm doing wrong?
I used this code to start a check:
if $data_actors[11].class.id == 11 then
whatever
end
However, when testing, I am confronted with this message:

Is there something I'm doing wrong?