<RefObj> set known status to <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

<RefObj> set known status to <Var/Number>

Post by mark_a_condren » Wed, 23. Feb 11, 12:30

<RefObj> set known status to <Var/Number>


<RefObj> = The object you wish to set the known status of.
<Var/Number> = set known status using Boolean [TRUE] or [FALSE].


Objects become known if they have come within scanner range of any of the players assets. You can over ride this and force the known status of <RefObj> with this command. Known objects can have their status set to unknown also.


Example:

$sector = [THIS] -> get user input: type= Sector, title='Choose a sector'

$station.array = $sector -> get station array from sector
$station.array.count = size of array: $station.array
$counter = 0
while $counter < $station.array.count
| $station = $station.array [$counter]
| skip if not $station -> is known
| | $station -> set known status to [TRUE]
| inc $counter
end

This will get the stations from a selected $sector, and if they are not known to the player they will be set to 'Known' status.


Command Location:

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

[TiP][49] 297308

Post by X2-Illuminatus » Sat, 26. Mar 11, 18:45

<RefObj> set known status to <Var/Number>


<RefObj> = Das Objekt, dessen Bekanntheitsstatus du ändern möchtest.
<Var/Number> = Setze den Bekanntheitsstatus mithilfe der boolschen Variablen [TRUE] (wahr) oder [FALSE] (falsch).


Objekte werden bekannt, sobald sie in die Scannerreichweite vom Spielerbesitz gelangen. Man kann dies überschreiben und den Bekanntheitsstatus des <RefObj> mit diesem Befehl erzwingen. Bekannte Objekte können hiermit auch wieder auf unbekannt gesetzt werden.


Beispiel:

$sector = [THIS] -> get user input: type= Sector, title='Wähle einen Sektor'

$station.array = $sector -> get station array from sector
$station.array.count = size of array: $station.array
$counter = 0
while $counter < $station.array.count
| $station = $station.array [$counter]
| skip if not $station -> is known
| | $station -> set known status to [TRUE]
| inc $counter
end

Dies erfasst die Stationen im gewählten $sector und setzt sie, für den Fall, dass sie dem Spieler nicht bekannt sind, auf bekannt.


Zu finden unter:

Locked

Return to “MSCI Reference”