Script Error: NoMethodError

CriticalRPG

Necromancer
Veteran
Joined
Aug 1, 2015
Messages
91
Reaction score
5
First Language
English
Primarily Uses
RMMV
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:

ErrorMessage.PNG

Is there something I'm doing wrong?
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,425
Reaction score
7,710
First Language
German
Primarily Uses
RMMV
I've moved this thread to Learning Ruby/RGSSx. Please be sure to post your threads in the correct forum next time. Thank you.


There is one thing that you should change immediatly: ALWAYS name your scripts.


The error message contains a '' instead of a '<your script name>'. It makes identifying the broken script much more difficult and riscs overlooking entries in unnamed slots...
 

CriticalRPG

Necromancer
Veteran
Joined
Aug 1, 2015
Messages
91
Reaction score
5
First Language
English
Primarily Uses
RMMV
I've moved this thread to Learning Ruby/RGSSx. Please be sure to post your threads in the correct forum next time. Thank you.

There is one thing that you should change immediatly: ALWAYS name your scripts.

The error message contains a '' instead of a '<your script name>'. It makes identifying the broken script much more difficult and riscs overlooking entries in unnamed slots...
Okay then. I named the script, and I can try and explain it to you in better detail:

The script itself is an (unofficial) add-on to Syvkal's Menu Bars VXAce script. As I said in my previous post, depending on the actor's class, the MP bar will be changed to something else. For example, if actor A is class 5, then the MP bar would instead display "SP". Otherwise, it would display "MP" like normal.
 

CriticalRPG

Necromancer
Veteran
Joined
Aug 1, 2015
Messages
91
Reaction score
5
First Language
English
Primarily Uses
RMMV
Forget it. Just close the thread.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top