<RetVar/IF> system date is month = <Var/Number>, day = <Var/Number>

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: 1385
Joined: Wed, 3. Aug 05, 05:05
x3tc

<RetVar/IF> system date is month = <Var/Number>, day = <Var/Number>

Post by mark_a_condren » Thu, 9. Sep 10, 17:53

[skip|else] if [not]|while [not]| <RetVar/IF> = system date is month= <Var/Number>, day= <Var/Number>


[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Command return, with an 'if' statement used it will be TRUE (1) if condition passes or FALSE (0) if it fails, otherwise if you use a Variable it will be TRUE / FALSE as an integer.
<Var/Number> = The Month required.
<Var/Number> = The Day required.


Returns [TRUE] if the game date is on or past the given date.
Otherwise, returns [FALSE].


Example:

if not $displayed = TRUE
| if system date is month = 12, day = 25
| | send player incoming message = 'Merry Christmas'
| | $displayed = TRUE
| end
end


Command Location:

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

[TiP][49] 286559

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

[skip|else] if [not]|while [not]| <RetVar/IF> = system date is month= <Var/Number>, day= <Var/Number>


[skip|else] if [not]|while [not]| = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Rückgabewert des Befehls, mit einer 'if' Anweisung wird dieser TRUE (1) (wahr) sein, wenn die Bedingung erfüllt ist oder FALSE (0) (falsch), wenn nicht. Andernfalls, wenn eine Variable genutzt wird, wird TRUE / FALSE als ganze Zahl zurückgeben.
<Var/Number> = Der gewünschte Monat.
<Var/Number> = Der gewünschte Tag.


Gibt [TRUE] (wahr) zurück, wenn das Spieldatum am oder nach dem angegebenen Datum ist.
Andernfalls wird [FALSE] (falsch) zurückgegeben.


Beispiel:

if not $displayed = TRUE
| if system date is month = 12, day = 25
| | send player incoming message = 'Frohe Weihnacht'
| | $displayed = TRUE
| end
end


Zu finden unter:
Last edited by X2-Illuminatus on Wed, 24. Nov 10, 22:10, edited 2 times in total.

User avatar
Capux
Posts: 2141
Joined: Sat, 31. Oct 09, 22:17
x4

[39]286559

Post by Capux » Wed, 29. Sep 10, 15:18

[skip|else] if [not]|while [not]| <RetVar/IF> = system date is month= <Var/Number>, day= <Var/Number>


[skip|else] if [not]|while [not]| = Le istruzioni condizionali che possono essere usate.
<RetVar/IF> = Quello che restituisce il comando, se viene usata un'istruzione if restituisce TRUE (1) se si verifica la condizione oppure FALSE (0) se non si verifica, se usi una variabile restituirà TRUE/FALSE come valore intero (quindi o 1 o 0).
<Var/Number> = Il mese richiesto
<Var/Number> = Il giorno richiesto.


Restituisce [TRUE] se la data del gioco è quella data o se è passata.
In caso contrario, restituisce [FALSE].


Esempio:

if not $displayed = TRUE
| if system date is month = 12, day = 25
| | send player incoming message = 'Buon Natale'
| | $displayed = TRUE
| end
end


Posizione dell'istruzione nella lista:

Locked

Return to “MSCI Reference”