Actor same name as other actor

Status
Not open for further replies.

Burgerland

Veteran
Veteran
Joined
Sep 26, 2015
Messages
334
Reaction score
92
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.
 

Doktor_Q

I'm not a real doktor, but I am a real Q
Veteran
Joined
Aug 1, 2016
Messages
879
Reaction score
566
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.
 

Burgerland

Veteran
Veteran
Joined
Sep 26, 2015
Messages
334
Reaction score
92
First Language
English
Primarily Uses
N/A
You're setting one actor's name to the entire actor object of the other. Try setting it to $gameActors.actor(3).name() instead.

Thank you, it worked!
 

TSR

The Northern Frog
Veteran
Joined
Nov 14, 2019
Messages
280
Reaction score
250
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..!
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,800
Reaction score
5,358
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.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I find great satisfaction in smiting spambots. I'm not really sure why.
I finally added my newly updated demo back to the website! It only took like 4 weeks of work...
Where is the "world-weary sigh" comment response when you need it? I need that one more than anything, but the closest we have is "wow" or "angry".
My apologies if it's out-of-place for my goyim-lookin' ass to be the one to say it, but the mythology of "Golems" is that they were created by Rabbis to protect Jewish villages from Anti-semetic attacks.

Forum statistics

Threads
107,775
Messages
1,032,076
Members
139,919
Latest member
merlinjoe
Top