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

● ARCHIVED · READ-ONLY
Started by zarroc407 10 posts View original ↗
  1. 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?
  2. Try this, replacing x with the appropriate number:

    $gameParty._menuActorId = x;
    SceneManager.push(Scene_Equip);
  3. @Llareian that does work the only problem is that the face image of the actor doesn't always load
  4. 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.
  5. Try adding a Wait (5 frames) between the two script commands, and see if that helps.
  6. Llareian said:
    Try adding a Wait (5 frames) between the two script commands, and see if that helps.
    i do not believe this will help.
  7. @dbchest how would I go about manually loading the images?
  8. ImageManager.loadFace("image name here");
  9. @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.
  10. @dbchest thank you worked like a charm and @Llareian thank you for the code to load the equip scene