<RetVar> = playing 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
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

<RetVar> = playing time

Post by mark_a_condren » Thu, 9. Sep 10, 18:42

<RetVar> = playing time


<RetVar> = Returns the amount of game playing time that has elapsed in seconds since the currently loaded game save was started as a new game.


Example:

$playing.time = playing time

$stop.time = $playing.time + 600

while $playing.time < $stop.time
| $attacker = create ship: type= Discoverer owner= Enemy addto= [SECTOR] x= 0 y= 0 z= 0
|@ START = $attacker -> call script my.attack.target.script : target= [PLAYERSHIP]
|@ wait 60000 ms
| $playing.time = playing time
end

By using the playing time you can do things like above, 1 discoverer will be created in the center of the players sector every minute for 10 minutes and set to attack the player.


Command Location:

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

[TiP][49] 286562

Post by X2-Illuminatus » Wed, 29. Sep 10, 00:31

<RetVar> = playing time


<RetVar> = Gibt die Spielzeit (playing time) in Sekunden zurück, die vergangen ist, seitdem der zurzeit laufende Spielstand als neues Spiel gestartet wurde.


Beispiel:

$playing.time = playing time

$stop.time = $playing.time + 600

while $playing.time < $stop.time
| $attacker = create ship: type= Discoverer owner= Enemy addto= [SECTOR] x= 0 y= 0 z= 0
|@ START = $attacker -> call script my.attack.target.script : target= [PLAYERSHIP]
|@ wait 60000 ms
| $playing.time = playing time
end

Durch Nutzung der Spielzeit können Dinge wie im obigen Beispiel gemacht werden. Ein Discoverer wird im Zentrum des Spielersektors jede Minute zehn Minuten lang erstellt und es wird ihm befohlen den Spieler anzugreifen.


Zu finden unter:
Last edited by X2-Illuminatus on Wed, 24. Nov 10, 21:11, edited 1 time in total.

User avatar
Capux
Posts: 2456
Joined: Sat, 31. Oct 09, 21:17
x4

[39]286562

Post by Capux » Wed, 29. Sep 10, 14:50

<RetVar> = playing time


<RetVar> = Restituisce il tempo di gioco che è passato in secondi da quando il salvataggio caricato al momento ebbe inizio come una nuova partita.


Esempio:

$playing.time = playing time

$stop.time = $playing.time + 600

while $playing.time < $stop.time
| $attacker = create ship: type= Discoverer owner= Enemy addto= [SECTOR] x= 0 y= 0 z= 0
|@ START = $attacker -> call script my.attack.target.script : target= [PLAYERSHIP]
|@ wait 60000 ms
| $playing.time = playing time
end

Usando il comando descritto, puoi fare cose come nell'esempio qui sopra, dove un Discoverer viene creato ogni minuto per 10 minuti nel centro del settore del giocatore con l'ordine di attaccarlo.


Posizione dell'istruzione nella lista:

Locked

Return to “MSCI Reference”