Actor same name as other actor

Discussion in 'RPG Maker MV' started by Burgerland, Dec 5, 2019.

Thread Status:
Not open for further replies.
  1. Burgerland

    Burgerland Veteran Veteran

    Messages:
    263
    Likes Received:
    58
    First Language:
    English
    Primarily Uses:
    N/A
    Based on Shaz's script call, but I didn't want to use variables so I came up with this:

    $gameActors.actor(1).setName($gameActors.actor(3))

    1 is actor 1, 3 is actor 3.

    I want actor 3 to have the same name as actor 1, but actor 3 gets named "Object object" when I use the script call.

    I don't want to use variables because the player will input the actor's name, which I want another actor to also have for later in the game.
     
    #1
  2. Doktor_Q

    Doktor_Q I'm not a real doktor, but I am a real Q Veteran

    Messages:
    623
    Likes Received:
    351
    Location:
    Denial
    First Language:
    English
    Primarily Uses:
    RMMV
    You're setting one actor's name to the entire actor object of the other. Try setting it to $gameActors.actor(3).name() instead.
     
    #2
    Burgerland likes this.
  3. Burgerland

    Burgerland Veteran Veteran

    Messages:
    263
    Likes Received:
    58
    First Language:
    English
    Primarily Uses:
    N/A
    Thank you, it worked!
     
    #3
  4. TSR

    TSR The Northern Frog Veteran

    Messages:
    44
    Likes Received:
    19
    Location:
    Canada
    First Language:
    French
    Primarily Uses:
    RMMV
    if you want actor 3 to have actor 1 name, it should be writed like this:
    $gameActors.actor(3).setName($gameActors.actor(1).name());

    edit: Oh! Already answered..!
     
    #4
  5. Wavelength

    Wavelength Pre-Merge Boot Moderator

    Messages:
    4,521
    Likes Received:
    3,774
    Location:
    Florida, USA
    First Language:
    English
    Primarily Uses:
    RMVXA

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

     
    #5
Thread Status:
Not open for further replies.

Share This Page