Script call for specific actor

Hello guys, I just want to ask what is the script that can call the equip window? Thank you 🙂
I think it'll be something like this - one to call the window and one to set which actor to show, all in a single script call:


SceneManager.push(Scene_Equip)


$gameParty.setMenuActor($gameActors.actor(X))


X will be replaced by the id of the actor you want to show (no leading zeros)
Great!  🙂 thanks @Shaz 😀  

X will be replaced by the id of the actor you want to show (no leading zeros)



Quick question: X will always != 0 right? No leading zeros is !=0 ?
Actor 1 will be $gameActors.actor(1), not $gameActors.actor(0001).


The database shows ids with leading zeros, so sometimes people write the id like that in script calls.  But this messes with the script and the id is treated like hex or binary or something weird, causing unexpected results, so leading zeros should never be included in any kind of script or script call.
@Shaz Thanks now it's all clear 😀   🤘

Original thread: https://forums.rpgmakerweb.com/threads/script-call-for-specific-actor.64627/