problem with a script

hi

I would like to create a script that allows me to change characters from one side to another. for the party exchange script, I'm there, but for this "graphic" part I have problems and I'd like to solve it. I would like to make sure that by selecting a character the player can move it from one section to another. can you help me?
View My Video

I've moved this thread to Script Support. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-a-script.101726/