<RetVar> get player name

This forum serves as MSCI Reference at EGOSOFT. It's Read-Only for non MSCI Group members.

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
User avatar
EmperorJon
Posts: 7178
Joined: Mon, 29. Dec 08, 21:58
x3tc

<RetVar> get player name

Post by EmperorJon » Sun, 12. Sep 10, 11:33

<RetVar> get player name

<RetVar> = The variable where the returned value is put.

Returns the player's name.


Example:

$Name get player name
If $Name = 'EmperorJon'
send incoming message 'Oi, stop pretending to be me!' to player: display it [TRUE]

Would send the player a message if their name was set as EmperorJon.


Command Location:

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 21528
Joined: Sun, 2. Apr 06, 16:38
x4

[TiP][49] 286758

Post by X2-Illuminatus » Sat, 9. Oct 10, 20:22

<RetVar> get player name

<RetVar> = Die Variable, in die der zurückgegebene Wert gespeichert wird.

Gibt den Spielernamen zurück.


Beispiel:

$Name get player name
If $Name = 'EmperorJon'
send incoming message 'Oi, hör auf vorzugeben ich zu sein!' to player: display it [TRUE]

Dies würde dem Spieler eine Nachricht schicken, wenn er EmperorJon heißt.


Zu finden unter:

Locked

Return to “MSCI Reference”