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?
Can I open the equipment menu of a specific actor with a script call?
● ARCHIVED · READ-ONLY
-
-
Try this, replacing x with the appropriate number:
$gameParty._menuActorId = x;
SceneManager.push(Scene_Equip); -
@Llareian that does work the only problem is that the face image of the actor doesn't always load
-
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. -
Try adding a Wait (5 frames) between the two script commands, and see if that helps.
-
i do not believe this will help.Try adding a Wait (5 frames) between the two script commands, and see if that helps.
-
@dbchest how would I go about manually loading the images?
-
ImageManager.loadFace("image name here");
-
@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.
-