EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
<RetVar> = <Var/Warpgate> get gate destination: return sector=<Var/number>
Post new topic This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic
Author Message
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 19748 on topic

Thank you for registering your game
PostPosted: Mon, 1. Aug 11, 15:35    Post subject: <RetVar> = <Var/Warpgate> get gate destination: return sector=<Var/number> Reply with quote Print

<RetVar> = <Var/Warpgate> get gate destination: return sector=<Var/number>


<RetVar> = A variable where the requested information is stored.
<Var/Warpgate> = A warpgate or a variable containing one.
<Var/number> = A TRUE or FALSE value or its representing number 1 or 0.


Returns the destination sector of the as <Var/Warpgate> selected gate, if the "return sector"-value is set to TRUE, or the destination gate, if the "return sector"-value is set to FALSE.


Example:

$start.sector = Montalaar
$target.sector = New Income
$gate = get next gate on route from $start.sector to $target.sector
$destination = $gate get gate destination: return sector=[TRUE]
write to player logbook $destination
return null

This will get the next gate on the route from Montalaar to New Income and writes its destination sector ('Rolk's Legacy') to the logbook.


Command Location:


Back to top
View user's profile Send private message Visit poster's website
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 19748 on topic

Thank you for registering your game
PostPosted: Sun, 2. Oct 11, 23:04    Post subject: [TiP][49] 305133 Reply with quote Print

<RetVar> = <Var/Warpgate> get gate destination: return sector=<Var/number>


<RetVar> = Eine Variable, in der die geforderte Information gespeichert wird.
<Var/Warpgate> = Ein Sprungtor oder eine Variable, die eins enthält.
<Var/number> = Ein TRUE (wahr) oder FALSE (falsch) Wert oder seine entsprechende Ziffer 1 oder 0.


Gibt den Zielsektor des als <Var/Warpgate> ausgewählten Sprungtors zurück, wenn der "return sector"-Wert auf TRUE gesetzt ist, oder das Zieltor, wenn der "return sector"-Wert auf FALSE gesetzt ist.


Beispiel:

$start.sector = Montalaar
$target.sector = Neuer Verdienst
$gate = get next gate on route from $start.sector to $target.sector
$destination = $gate get gate destination: return sector=[TRUE]
write to player logbook $destination
return null

Dies ermittelt das nächste Sprungtor auf der Route von Montalaar nach Neuer Verdienst und schreibt seinen Zielsektor (Rolks Vermächtnis) ins Logbuch.


Zu finden unter:


Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic This topic is locked: you cannot edit posts or make replies.
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Sat, 25. Mar 17, 19:24

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.17899 seconds, sql queries = 16