Script Call Support Boards

Remove the script call from the common event and change the order in the script like this:
Code:
      $game_temp.reserve_common_event(old_item.dequip_event_id) if old_item
      $game_temp.reserve_common_event(item.equip_event_id) if item
      $game_variables[1999] = class_id
Now the problem seems to be in the script call that makes the class change
Spoiler: Error
MoB9sPD.png
Spoiler: Common event
Zg1ZBDV.png
How many classes do you have?
It's going to be a digimon game, so i'm using few actors (with a clone script) and lots of classes, more than 200, that act as evolutions, thanks to Yanfly's Class System
Are you sure that you have the correct actor id?
The script Common event variables and the script call "$game_temp.common_event_user" stores the actor id in the variable 10
Spoiler: Script
zLDCUio.png
and the common event has the script call
Spoiler: Common event
Zg1ZBDV.png
But the error is telling me that the method change_class doesn't exist. So i maybe using the wrong script call to change the class.

EDIT: I got the script call from this link
https://forums.rpgmakerweb.com/index.php?threads/script-call-collection-for-vxace.25759/
Try this setup:
Spoiler: Script
T8u9CCq.png
Spoiler: Common Event
AgAKecG.png
It works for me.
It crashd again. I think there is a problem when inserting two brackets toghether
Spoiler: Error
FPPcZfR.png

Spoiler: Common event
9ZXJcZz.png
look more carefully at your first script call in the common event
I fixed this misstyping (i'm sorry), but now it gives this error
Spoiler: Error
IJJxd6Y.png

I'm so sorry, i feel like i'm being a pain in the a$$
Combine the two script calls together, as I have.
You're my new personal HERO
Thank you very much @KanaX
I don't know how to thank you.
Help out a newbie when you get some more experience! That's a great way to say thanks.
A chain of favors, i like it!
upload_2018-8-28_12-14-32.png

Hi, can someone write an example of this? I'm confused.
@Halfier 'Script Call Support Boards' is for when you are looking for a particular script call to achieve a specific thing e.g. "What's the script call to identify who the party leader is?"

What you have there looks like part of the configuration section of a script, so doesn't belong here. What I suggest you do is to start a new thread in RGSSx Script Support. Call it something like 'Help to configure X Script' where X is the name of the script you want advice about. In your post, provide a link to the web page where you got that script so that you don't need to post the script itself and if people need to check anything they don't need to go hunting for it.
@Kes actually, the screenshot they posted is a legit script call, like I mean you could do that in script call box without the need of extra script to work. It's a script call for force move route, basically you create a move route through script call. Granted, it might be an instruction of a script that i don't know, and/or might be used for a certain part of the script (or not). So either of that subforum or here is suitable place. The only downside is, here has less visibility.

I can explain thoroughly, but it's too late and I need to sleep _:3
hi, sorry for the interruption, but wondered if you could help:

I am trying to change the party leader's class during a common event:

something like this should work:
$game_actors[2].change_class(1) if $game_actors[2] and $data_classes[1]
from what I understand actor #2 in my F9 DB should change class to class #1 in my F9 DB.

but I get this error:
Script 'Game_Interpreter' line 1411: ArgumentError occurred. comparison of Fixnum with nil failed

have tried variations, with even worse results:
eg: $game_actors[$game_party.members[0].id].change_class(1)

And yet I can use an event to change class no problem: it's just that I need a variable for target player.

Thankyou for your time. Apologies if this is a stupid question, but one I've been wracking my brains with for a few days. I do wonder if it's a conflict perhaps: I could try a new empty project and see what happens perhaps for this.
@boyflea Sounds like it's an issue with a script you have. Do you have any that alter the 'change_class' method?
From what I know, the keyword and & or are flawed, it couldn't compare two variables perfectly. It's better to use && or || instead.
The interpreter code for change class is ...
Code:
  def command_321
    actor = $game_actors[@params[0]]
    actor.change_class(@params[1]) if actor && $data_classes[@params[1]]
  end
And said it worked on event. So I don't think it was because of other script changing how change class method works.
The reason why there is a check of "actor && $data_classes[@params[1]]" simply because to prevent an error if you decide to change the maximum database for some reasons, then the event would pointing on a nil value in the database array.

@boyflea how about you tried this only?
Code:
$game_actors[2].change_class(1)

Original thread: https://forums.rpgmakerweb.com/threads/script-call-support-boards.25767/