[WIP] set discovered status: type=<Value> status=<Var/Boolean>

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: 24950
Joined: Sun, 2. Apr 06, 16:38
x4

[WIP] set discovered status: type=<Value> status=<Var/Boolean>

Post by X2-Illuminatus » Thu, 28. Jul 11, 15:29

set discovered status: type=<Value> status=<Var/Boolean>


<Value> = An object that exists in the game. Valid values are ships and stations (as well as their types), sectors and wares.
<Var/Boolean> = A TRUE or FALSE value or its representing number 1 or 0.


This command can set the discovered status of the as <Value> selected object returned by the <RetVar/IF> has <Value> been discovered-command. However, setting the discovered status of an undiscovered object to TRUE won't result in the object being visible on the sector map (and vice versa).


Example:

$sector=[PLAYERSHIP] -> get sector
$station.arr=$sector -> get station array from sector
$size= size of array $station.arr
while $size
|dec $size=
|$station=$station.arr[$size]
|set discovered status: type=$station status=[TRUE]
end
return null

This will set the discovered status of all stations in the current player sector to [TRUE].


Related Commands:

<RetVar/IF> has <Value> been discovered


Command Location:
TODO:
Investigate command usage again: Command just affects the encyclopedia.
Last edited by X2-Illuminatus on Tue, 13. Dec 11, 01:04, edited 2 times in total.

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

[TiP][49] 304912

Post by X2-Illuminatus » Sat, 1. Oct 11, 13:45

set discovered status: type=<Value> status=<Var/Boolean>


<Value> = Ein Objekt, das im Spiel existiert. Gültige Objekte sind Schiffe und Stationen (sowie ihre Typen), Sektoren und Waren.
<Var/Boolean> = Ein TRUE (wahr) oder FALSE (falsch) Wert oder seine entsprechende Ziffer 1 oder 0.


Dieser Befehl kann den "entdeckt"-Status des als <Value> ausgewählten Objekts, welcher vom <RetVar/IF> has <Value> been discovered-Befehl zurückgegeben wird, verändern. Jedoch resultiert das Setzen des "entdeckt"-Status eines noch nicht vom Spieler entdeckten Objekts auf TRUE (wahr) nicht im Sichtbar werden des Objekts auf der Sektorkarte (und umgekehrt).


Beispiel:

$sector=[PLAYERSHIP] -> get sector
$station.arr=$sector -> get station array from sector
$size= size of array $station.arr
while $size
|dec $size=
|$station=$station.arr[$size]
|set discovered status: type=$station status=[TRUE]
end
return null

Dies setzt den "entdeckt"-Status der Stationen im aktuellen Spielersektor auf [TRUE] (wahr).


Verwandte Befehle:

<RetVar/IF> has <Value> been discovered


Zu finden unter:

Locked

Return to “MSCI Reference”