So this is theoretically simple, but I can't get it working with my nonexistent understanding of Ruby.
The idea here is that each character has a unique non-combat skill system, which have their own separate scripts. So we've got Scene_Craft, Scene_Alchemy, Scene_Enchant etc., each with an associated character.
Rather than have each one be a separate menu command, I want it set up like the "Skill" / "Equip" / "Status" commands, where you select one command from the menu and are then prompted to select a member of the party to retrieve the data from. However, instead of retrieving data, I want it to check the character's ID and then launch the associated Scene. I've got it to activate the status window, but I can't get it to do the "if it's on character 01, launch scene 01" thing without giving me syntax errors.
If it's any help figuring out what I'm attempting, the current state of my code before I gave up is:
when 4 # Crafting
if $game_party.actors[@status_window.index].@actor.id == 1
$scene = Scene_Crafting
if $game_party.actors[@status_window.index].@actor.id == 2
$scene = Scene_Alchemy
So you can vaguely see what I'm trying to do, even though it's obviously not working.
Thanks to anyone who can sort me out.