Can I open the equipment menu of a specific actor with a script call?

zarroc407

Veteran
Veteran
Joined
Jun 20, 2013
Messages
104
Reaction score
16
First Language
english
So I know SceneManager.push(Scene_Equip); opens the equipment menu but is there a script call that can open the equipment menu of a specific actor based on their actor id?
 

Llareian

Jack of All Trades, Master of None
Veteran
Joined
Jan 26, 2017
Messages
608
Reaction score
1,432
First Language
English
Primarily Uses
RMMZ
Try this, replacing x with the appropriate number:

$gameParty._menuActorId = x;
SceneManager.push(Scene_Equip);
 

zarroc407

Veteran
Veteran
Joined
Jun 20, 2013
Messages
104
Reaction score
16
First Language
english
@Llareian that does work the only problem is that the face image of the actor doesn't always load
 

dbchest

Beast Master
Veteran
Joined
Oct 1, 2013
Messages
434
Reaction score
308
First Language
English
Primarily Uses
RMMV
this issue will only occur the first time you perform this manual call to the equip scene. if you exit the scene and manually call the equip scene again, then you will notice that the images load properly.

by calling the scene manually from outside its normal operating conditions (entering it via the menu) you are bypassing the code which loads the necessary images and caches them for future use. this is why the images will not appear properly the first time you make this manual call to the scene, however all additional calls will use the cached images from the first manual call and everything will display properly from here on out.

if you intend to bypass the normal operating conditions of the equip scene, you will need to manually load the images you expect to use prior to manually calling the scene.
 

Llareian

Jack of All Trades, Master of None
Veteran
Joined
Jan 26, 2017
Messages
608
Reaction score
1,432
First Language
English
Primarily Uses
RMMZ
Try adding a Wait (5 frames) between the two script commands, and see if that helps.
 

dbchest

Beast Master
Veteran
Joined
Oct 1, 2013
Messages
434
Reaction score
308
First Language
English
Primarily Uses
RMMV
ImageManager.loadFace("image name here");
 

Llareian

Jack of All Trades, Master of None
Veteran
Joined
Jan 26, 2017
Messages
608
Reaction score
1,432
First Language
English
Primarily Uses
RMMZ
@zarroc407 @dbchest Actually, now that I've looked into it further, I don't even know what images you're talking about, as the default equip screen doesn't HAVE actor images. Are you using a plugin for the equip screen? If so, that information is vital to helping you.
 

Latest Threads

Latest Profile Posts

Started work on the fishing Mini-Game
The Dark Toon art style is now available as Steam branches. (Both for the main game and the demo)
Battle.jpgCaptain.jpgCutsene.jpg
There are 2 versions. One only affects combat, cutscene, and portraits. The other one changes more.
So, technically, the game now has 7 versions on steam.
Arcade-Style RPGM Games? RM2k3 Game Jam & Synth-Retro Music by Azakaela | RPG Maker News #39

Just evented my first minigame, no plugins~ :kaojoy:

Forum statistics

Threads
111,352
Messages
1,060,410
Members
144,681
Latest member
Lakam47
Top