Set actors name same as another actor

Discussion in 'RPG Maker MV' started by ultimate2106, Dec 4, 2015.

  1. ultimate2106

    ultimate2106 Villager Member

    Messages:
    24
    Likes Received:
    1
    First Language:
    German
    Hey guys! So I'm trying to create a characterselecter but facing a problem.

    This steps shall be done:
    - Selecting an actor for later in the story  -  CHECK

    - Typing in a name and let it change the name of that actor (with script like in the img shown)  -  CHECK

    - Changing the name of another actor to the same name  -  NEED HELP :(

    [​IMG]

    And another question.. How do I get rid of the shadow in the waterfall?

    [​IMG]

    Maybe I'm using the wall tile wrong?^^'

    Thanks for help!
     
    #1
  2. Rpg Guy

    Rpg Guy Complex Eventer Veteran

    Messages:
    92
    Likes Received:
    12
    First Language:
    English
    Primarily Uses:
    RMMV
    Hello, I believe I can help you with both questions. First giving an actor a name. In the 1st page of the event editor (under the actor section) There's a "change name" button. With that you can change the name of any actor in the data base to whatever you want.

    As for the shadow question, on your map editor (next to the paint all tool) is the. Shadow pen. If you have trouble finding it it can also be found under the "draw" menu. After you've turned on the shadow pen simply click the shadows that you wish to take away. You may also use the pen to add shadows too.
     
    #2
  3. ultimate2106

    ultimate2106 Villager Member

    Messages:
    24
    Likes Received:
    1
    First Language:
    German
    Hey! Thank you for reply :)

    Sadly the name change via the Eventwindow by choosing "Change Name" isn't possible. That's because I want to change the name automatically to the name the player entered before. In "Change Name" I need to type in a specific name but I can't know what name the player will enter :/

    Thanks for the help with the shadows! That worked fine! :)
     
    #3
  4. Rpg Guy

    Rpg Guy Complex Eventer Veteran

    Messages:
    92
    Likes Received:
    12
    First Language:
    English
    Primarily Uses:
    RMMV
    If you know the actor ID# in the database you can simply use the "\n [1]" text code. Leave out the quotes & replace the 1 with the actor id number.
     
    #4
  5. ultimate2106

    ultimate2106 Villager Member

    Messages:
    24
    Likes Received:
    1
    First Language:
    German
    I did as you said.. Didn't work =(

    [​IMG]
     
    #5
  6. Rpg Guy

    Rpg Guy Complex Eventer Veteran

    Messages:
    92
    Likes Received:
    12
    First Language:
    English
    Primarily Uses:
    RMMV
    The "\n[1]" is for when you want the name to show up in text. You said the player can name the character themselves, if you used the 'Name Input' command and have 'actor 4' as the target, then the database should update the name by itself.
     
    #6
  7. ultimate2106

    ultimate2106 Villager Member

    Messages:
    24
    Likes Received:
    1
    First Language:
    German
    Well.. either I don't get it or you didn't understand what is happening in my game :D

    I'm using this script call to change name of the actor the player has chosen:

    var x = $gameVariables.value(1);

    SceneManager.push(Scene_Name);

    SceneManager.prepareNextScene(x, 16);

    And I want to change the name of another actor to the same name he/she entered at the same time..
     
    #7
  8. Rpg Guy

    Rpg Guy Complex Eventer Veteran

    Messages:
    92
    Likes Received:
    12
    First Language:
    English
    Primarily Uses:
    RMMV
    You're right I didn't understand, I'm sorry but I'm not sure I know how to help with that.
     
    #8
  9. ultimate2106

    ultimate2106 Villager Member

    Messages:
    24
    Likes Received:
    1
    First Language:
    German
    I found this Scriptcall:

    $gameActors.actor(actorId).setName(n);

    But I can't get the name of actor x, can I?
     
    #9
  10. Shaz

    Shaz Veteran Veteran

    Messages:
    37,914
    Likes Received:
    11,586
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    is actor x the actor whose name you are changing, or the actor whose name you are changing it to? Is that the number in variable 1?


    In that case it would be:

    Code:
    $gameActors.actor(id).setName($gameActors.actor($gameVariables.value(1)).name)
     
    #10
  11. ultimate2106

    ultimate2106 Villager Member

    Messages:
    24
    Likes Received:
    1
    First Language:
    German
    Thanks a lot! But still have a problem..

    [​IMG]

    This is my call:

    $gameActors.actor(7).setName($gameActors.actor($gameVariables.value(1)).name);

    $gameActors.actor(9).setName($gameActors.actor($gameVariables.value(1)).name);
     
    Last edited by a moderator: Dec 5, 2015
    #11
  12. Shaz

    Shaz Veteran Veteran

    Messages:
    37,914
    Likes Received:
    11,586
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    sorry. Left off an () at the end.

    Code:
    $gameActors.actor(id).setName($gameActors.actor($gameVariables.value(1)).name())
     
    #12
    StardustBunny likes this.
  13. ultimate2106

    ultimate2106 Villager Member

    Messages:
    24
    Likes Received:
    1
    First Language:
    German
    HURRAY! Thanks a lot :D
     
    #13
    StardustBunny likes this.
  14. queenchrom

    queenchrom Villager Member

    Messages:
    9
    Likes Received:
    3
    Location:
    Oregon
    First Language:
    English
    If I wanted to change Actor 10's name to Actor 11's name, would the script be...

    ...?
     
    #14

Share This Page