# SetName

Objects
Status
4.9.1.0 GWE 4.9.6.0 CR
bool
string name New name. If nil, the object's name is reset to the definition value or the original crew member's name.
bool set_permanent For crew members only: if true, the name is changed permanently in the crew info in the player file. There may be no duplicate names within a player file. From CR.
bool make_valid_if_exists Determines what should happen if a clonk of the same name already exists in the player's crew. If false, the function call will fail. If true, a unique name is created by appending a number. From CR.
Changes name of an object or a definition for the duration of the round.
Before CE, a call of this function for a crew member woud result in a permanent name change in the player file and a call for a normal object would rename all objects of the same type.
protected func InitializePlayer(player) { GetHiRank(player)->SetName("Strunzmuffel"); return 1; }
Scenario script: the highest ranking clonks of joining players get different names in this round.
protected func Initialize() { Wood->SetName("Baumstamm"); }
Scenario script: In this round, wood will be called "Baumstamm".
MakeCrewMember
GetName
Sven2
2003-06
Isilkor
2009-09