VoidExpanse/scope-station
Scope station
Useful during store generation process.
Visibility: Global.
List of functions
| AddItem | ||
|---|---|---|
| Arguments | Returns | Example |
|
void |
station.AddItem(12, "SomeItemToSell", 10); |
| Description | ||
|
Adds item to station's store. | ||
| GetBaseByID | ||
|---|---|---|
| Arguments | Returns | Example |
|
object:
|
station.GetBaseByID(131); |
| Description | ||
|
Returns info about base. | ||
| GenerateStockDistribution | ||
|---|---|---|
| Arguments | Returns | Example |
|
object: type: quantity |
station.GenerateStockDistribution(12); |
| Description | ||
| {{{5}}} | ||
| GetCivilianItems | ||
|---|---|---|
| Arguments | Returns | Example |
|
void |
arrqy of string IDs |
station.GetCivilianItems(); |
| Description | ||
|
Returns IDs of items with xml flag "civilian". | ||
| GetRandomTradeRoute | ||
|---|---|---|
| Arguments | Returns | Example |
|
object:
|
var route = station.GetRandomTradeRoute(1324, 4); |
| Description | ||
|
Returns a trade route for ship withing systems of specified range. | ||