Hello!
I am using Hime's class graphic script. Everything works fine so far, but I wanted to borrow a function.
What I'm trying to do is, making the player able to leave party members behind and have an event turn into the party member. The event would need to change into the current form of the party member.
To achieve this, I put the actor's id into the variable 7. I then put the class id of the party member in the variable 25.
This works.
Then I wrote this, using one of the methods that is used inside Hime's script in line 80:
#define actor idaid = $game_variables[7]#get actor objectactor = $game_actors[aid]#define class idacid = actor.class_id$game_variables[25] = acid#get array from methodch = actor.class_character(acid)#change event graphic$game_map.events[0].set_graphic(ch[0],ch[1])The method "class_character(class_id) is used to determine the sprite's graphic file and index. It puts them into an array.
This is where the game crashes and it says that actor does not have a class_character method. Is there something I'm doing wrong?
Could it be a conflict with another script? Or do I just have to start a new game?
Thank you in advance!
I am using Hime's class graphic script. Everything works fine so far, but I wanted to borrow a function.
What I'm trying to do is, making the player able to leave party members behind and have an event turn into the party member. The event would need to change into the current form of the party member.
To achieve this, I put the actor's id into the variable 7. I then put the class id of the party member in the variable 25.
This works.
Then I wrote this, using one of the methods that is used inside Hime's script in line 80:
#define actor idaid = $game_variables[7]#get actor objectactor = $game_actors[aid]#define class idacid = actor.class_id$game_variables[25] = acid#get array from methodch = actor.class_character(acid)#change event graphic$game_map.events[0].set_graphic(ch[0],ch[1])The method "class_character(class_id) is used to determine the sprite's graphic file and index. It puts them into an array.
This is where the game crashes and it says that actor does not have a class_character method. Is there something I'm doing wrong?
Could it be a conflict with another script? Or do I just have to start a new game?
Thank you in advance!