modding:function:shporder
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
modding:function:shporder [2017/03/09 02:23] – Gate order does not require a stargate as a target. You had your chance. 0xabcdef | modding:function:shporder [2017/06/24 02:32] – 0xabcdef | ||
---|---|---|---|
Line 16: | Line 16: | ||
* **ship** | * **ship** | ||
* **order** | * **order** | ||
- | * " | + | |
- | * Target | + | * SpaceObject: |
- | * " | + | |
- | * Target | + | * SpaceObject: |
- | * " | + | * Integer: Duration in seconds; infinite by default. |
- | * Target | + | * **" |
- | * [Duration in seconds] | + | * SpaceObject: |
- | * " | + | |
- | * [Duration in seconds] | + | * SpaceObject: |
- | * " | + | * [Integer]: |
- | * Target | + | |
- | * " | + | * [Integer]: |
- | * " | + | |
- | * " | + | * SpaceObject |
- | * Target | + | |
- | * Distance | + | |
- | * " | + | |
- | * Target | + | * SpaceObject: |
- | * [Angle]|[Formation] | + | * [Integer]: **distance** in light-seconds at which to orbit the target. |
- | * [Distance] | + | |
- | * " | + | * SpaceObject: |
- | * " | + | * [Integer]: **angle** or **formation** |
- | * Target | + | * [Integer]: **distance** |
- | * " | + | |
- | * " | + | |
- | * " | + | * SpaceObject: |
- | * " | + | |
- | * Target | + | |
- | * " | + | |
- | * Duration | + | |
- | * " | + | * SpaceObject: |
- | * Target | + | |
- | * " | + | * Integer: **duration** in seconds |
- | * " | + | |
- | * " | + | * SpaceObject: |
- | * Target | + | |
- | * " | + | |
- | * Integer ((Unknown)) | + | |
- | * " | + | * SpaceObject: |
- | * Object | + | * Integer: Angle in degrees |
- | * " | + | * Integer: Distance in light-seconds |
- | * Target | + | |
- | * Integer | + | * ?: **navID** |
- | * Integer | + | |
- | * " | + | * SpaceObject: |
- | * Duration | + | * Integer: **distance** |
- | * " | + | |
- | * Target | + | * SpaceObject: |
- | * Integer | + | * Integer: **distance** from the target in light-seconds, |
- | * " | + | * Integer: **duration** in seconds until the wait ends; infinite by default. |
- | * Target | + | |
- | * Distance | + | * Integer: **duration** in seconds until the wait ends; infinite by default. |
- | * " | + | |
- | * Target | + | * SpaceObject (must be a station): **target** |
- | * " | + | * Integer: **duration** in seconds that the ship will spend bombarding |
- | * Target | + | |
- | * Distance | + | * SpaceObject: |
- | * Integer | + | * Integer: **distance** in light-seconds |
- | * " | + | |
- | * Angle | + | * SpaceObject: |
- | * Distance | + | |
- | * " | + | * SpaceObject: |
- | * Angle (absolute) | + | * Integer: **distance** in light-seconds |
- | * " | + | * Integer: **duration** in seconds |
- | * Target | + | |
- | * Duration | + | * Integer: **angle** in degrees |
- | * " | + | * Integer: **distance** in light-seconds |
- | * Target | + | |
- | * Integer ((Unknown)) | + | * Distance: **angle** |
- | * " | + | |
- | * Target | + | * SpaceObject: |
- | * String | + | * Integer: **duration** in seconnds |
- | * " | + | |
- | * Target | + | * SpaceObject: |
- | * Duration | + | * [?]: **unknown** |
- | * " | + | |
- | * Target | + | * SpaceObject: |
- | * Message | + | * String: **event** to fire |
- | * " | + | |
- | * Target ((Unknown)) | + | * SpaceObject: |
- | * Integer | + | * Integer: **duration** |
- | * Integer | + | |
- | * " | + | * SpaceObject: |
- | * Target | + | * String: **message** |
- | * Integer | + | |
- | * " | + | * SpaceObject: |
- | * Position | + | * Integer: **distance** in light-seconds |
- | * " | + | * [Integer]: **time** in seconds; infinite by default. |
- | | + | |
- | | + | * SpaceObject: |
- | | + | * Integer: **duration** in seconds |
- | * Integer | + | |
+ | * Position: **destination** | ||
+ | | ||
+ | * Integer: **duration** in seconds | ||
=== Example === | === Example === | ||
- | <code lisp> | + | <code lisp> |
+ | (shpOrder | ||
+ | (random (sysFindObject Nil "s A")) | ||
+ | 'gate | ||
+ | (random (sysFindObject Nil "G A")) | ||
+ | ) | ||
+ | </ | ||
+ | |||
+ | Orders a random ship in the system to exit through a random gate as soon as all its orders are done. | ||
- | Returns True, ordering the player to wait doesn' | ||
Return to [[: | Return to [[: | ||
modding/function/shporder.txt · Last modified: 2017/06/25 05:06 by 0xabcdef