<RetVar> = <RefObj> get remaining production cycle time

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
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24965
Joined: Sun, 2. Apr 06, 16:38
x4

<RetVar> = <RefObj> get remaining production cycle time

Post by X2-Illuminatus » Fri, 1. Apr 11, 18:07

<RetVar> = <RefObj> get remaining production cycle time


<RetVar> = A variable, where the requested information is stored.
<RefObj> = The station you want to know it's remaining production cycle time.


This command returns the remaining production cycle time in seconds of the as <RefObj> selected station. If the station doesn't produce anything or if its produktion task is turned off, it will return 0.


Example:

$station = get player tracking aim
$cycle.time = $station -> get remaining production cycle time
$time = format time: $cycle.time
write to player logbook: printf: fmt='The remaining production cycle time is %s.', $time, null, null, null, null
return null

This will get the current player's target and write its remaining production cycle time to the player logbook.


Command Location:

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

[TiP][49] 299184

Post by X2-Illuminatus » Mon, 2. May 11, 19:17

<RetVar> = <RefObj> get remaining production cycle time


<RetVar> = Eine Variable, in der die geforderte Information gespeichert wird.
<RefObj> = Die Station, deren verbleibende Produktionszykluszeit du wissen möchtest.


Dieser Befehl gibt die verbleibende Produktionszykluszeit in Sekunden der als <RefObj> ausgewählten Station zurück. Wenn die Station nichts produziert oder wenn ihre Produktion ausgeschaltet ist, wird 0 zurückgegeben.


Beispiel:

$station = get player tracking aim
$cycle.time = $station -> get remaining production cycle time
$time = format time: $cycle.time
write to player logbook: printf: fmt='Die verbleibende Produktionszykluszeit beträgt %s.', $time, null, null, null, null
return null

Dies erfasst das aktuelle Spielerziel und schreibt dessen verbleibende Produktionszykluszeit ins Spielerlogbuch.


Zu finden unter:

Locked

Return to “MSCI Reference”