RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] Same name

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 83
Hi, I'm terrible with scripting, and don't really understand it, and was also told that I could ask here.

My question is; is it possible for some one to make a script in which I can have 2 characters named at once, after using the "Name Input" event.

Example; the name input even is used, then with this 2 characters are named at the same time, for something such as, the main character is named, and later in the game, his future self comes back in time and meets him. Both of which are playable characters, sharing the same name...

If this is possible, thanks in advance. If not, thanks anyways. :D
« Last Edit: August 31, 2009, 01:57:42 PM by modern algebra »

**
Rep:
Level 83
doesn't seem difficult :


class Scene_Name < Scene_Base
alias dricc_terminate terminate

  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    if $game_temp.name_actor_id == 1
        @actor1 = $game_actors[$game_temp.name_actor_id]
        @actor2 = $game_actors[2]
        @actor2.name = @actor1.name
    end
     dricc_terminate
  end
end

change the "1" and "2" , if it is not correct .
you have nothing more to do .
You can use my scripts freely . but not for commercial use .
:ccbync:
Don't encrypt your game !!!
Want to give me credit ? Easy ,add me in your game :

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
That looks right to me. Good job dricc.

The only thing I would say is that it's a little more elegant not to set $game_actors[2] to an instance variable since it won't be accessed again.

Instead of:

Code: [Select]
        @actor2 = $game_actors[2]
        @actor2.name = @actor1.name

Code: [Select]
        $game_actors[2].name = @actor1.name

But obviously that's nothing important. Nice work dricc.

**
Rep: +0/-0Level 83
Thank you, Dricc, and Modern algebra. :D

And thanks for putting in the resolved thing on the first post, Modern Algebra, I was away for the day.