<RetVar/IF><RefObj> get shield percent

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
Striker304
Posts: 890
Joined: Fri, 26. Mar 10, 22:15
x3tc

<RetVar/IF><RefObj> get shield percent

Post by Striker304 » Sun, 12. Sep 10, 16:31

<RetVar/IF>=<RefObj> get shield percent


[skip|else] if [not]|while [not] = Possible 'conditional' statements that can be used
<RetVar/IF> = Variable where the requested information is put
<RefObj> = The object you want to check

This command returns the current shield percent of <RefObj>.

Example:
$shields = [PLAYERSHIP] get shield percent
If $shields < 10
send incoming message 'Your shields are low' to player: display it [TRUE]

This would send the player a message if their shields were below 10 percent.


Command Location:

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

[TiP][49] 286766

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

<RetVar/IF>=<RefObj> get shield percent


[skip|else] if [not]|while [not] = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Variable, in die der zurückgegebene Wert gespeichert wird.
<RefObj> = Das Objekt, das du überprüfen möchtest.

Dieser Befehl gibt den derzeitigen Schildwert in Prozent von <RefObj> zurück.

Beispiel:
$shields = [PLAYERSHIP] get shield percent
If $shields < 10
send incoming message 'Ihre Schilde sind schwach' to player: display it [TRUE]

Dies würde dem Spieler eine Nachricht senden, wenn die Schilde seines Schiffes unter 10 % sind.


Zu finden unter:

Locked

Return to “MSCI Reference”