Actor same name as other actor

Status
Not open for further replies.

Burgerland

Veteran
Veteran
Joined
Sep 26, 2015
Messages
331
Reaction score
90
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
873
Reaction score
562
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
331
Reaction score
90
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
279
Reaction score
244
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,624
Reaction score
5,104
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.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top