<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:
- »» Universe and Sector Commands
<RetVar> = <Var/Warpgate> get gate destination: return sector=<Var/number>