Retail SEXPs
From FreeSpace Wiki
This page is a reference of SEXPs available in the retail version of FRED. To see the list of SEXPs that have been added, moved or modified by the SCP, go to the SCP SEXPs page.
Contents
- 1 Objectives
- 1.1 is-destroyed-delay
- 1.2 is-subsystem-destroyed-delay
- 1.3 is-disabled-delay
- 1.4 Is-disarmed-delay
- 1.5 has-docked-delay
- 1.6 has-undocked-delay
- 1.7 has-arrived-delay
- 1.8 has-departed-delay
- 1.9 are-waypoints-done-delay
- 1.10 ship-type-destroyed
- 1.11 percent-ships-departed
- 1.12 percent-ships-destroyed
- 1.13 depart-node-delay
- 1.14 destroyed-or-departed-delay
- 2 Time
- 3 Logical
- 4 Arithmetic
- 5 Status
- 5.1 is-cargo-known-delay
- 5.2 cap-subsys-cargo-known-delay
- 5.3 has-been-tagged-delay
- 5.4 is-tagged
- 5.5 num-kills
- 5.6 num-type-kills
- 5.7 num-class-kills
- 5.8 shield-recharge-pct
- 5.9 engine-recharge-pct
- 5.10 weapon-recharge-pct
- 5.11 shield-quad-low
- 5.12 secondary-ammo-pct
- 5.13 is-secondary-selected
- 5.14 is-primary-selected
- 5.15 shields-left
- 5.16 hits-left
- 5.17 hits-left-subsystem
- 5.18 distance
- 5.19 is-ship-visible
- 5.20 team-score
- 5.21 time-elapsed-last-order
- 5.22 skill-level-at-least
- 5.23 num-players
- 5.24 special-warp-dist
- 6 Change
- 6.1 modify-variable
- 6.2 special-warpout-name
- 6.3 do-nothing
- 6.4 add-goals
- 6.5 clear-goals
- 6.6 change-iff
- 6.7 protect-ship
- 6.8 unprotect-ship
- 6.9 beam-protect-ship
- 6.10 beam-unprotect-ship
- 6.11 send-message
- 6.12 self-destruct
- 6.13 end-campaign
- 6.14 sabotage-subsystem
- 6.15 repair-subsystem
- 6.16 set-subsystem-strength
- 6.17 invalidate-goal
- 6.18 validate-goal
- 6.19 send-random-message
- 6.20 transfer-cargo
- 6.21 exchange-cargo
- 6.22 good-rearm-time
- 6.23 allow-ship
- 6.24 allow-weapon
- 6.25 break-warp
- 6.26 fix-warp
- 6.27 never-warp
- 6.28 allow-warp
- 6.29 good-secondary-time
- 6.30 ship-invisible
- 6.31 ship-visible
- 6.32 ship-invulnerable
- 6.33 ship-vulnerable
- 6.34 red-alert
- 6.35 jettison-cargo-delay
- 6.36 fire-beam
- 6.37 beam-free
- 6.38 beam-free-all
- 6.39 beam-lock
- 6.40 beam-lock-all
- 6.41 turret-free
- 6.42 turret-free-all
- 6.43 turret-lock
- 6.44 turret-lock-all
- 6.45 add-remove-escort
- 6.46 awacs-set-range
- 6.47 send-message-list
- 6.48 cap-waypoint-speed
- 6.49 ship-guardian
- 6.50 ship-no-guardian
- 6.51 ship-vanish
- 6.52 turret-tagged-only
- 6.53 turret-tagged-clear
- 6.54 subsys-set-random
- 6.55 supernova-start
- 6.56 cargo-no-deplete
- 7 Conditionals
- 8 Debugging
- 9 Ai goals
- 9.1 ai-chase
- 9.2 ai-dock
- 9.3 ai-undock
- 9.4 ai-warp-out
- 9.5 ai-waypoints
- 9.6 ai-waypoints-once
- 9.7 ai-destroy-subsystem
- 9.8 ai-disable-ship
- 9.9 ai-disarm-ship
- 9.10 ai-guard
- 9.11 ai-chase-any
- 9.12 ai-evade-ship
- 9.13 ai-stay-near-ship
- 9.14 ai-keep-safe-distance
- 9.15 ai-ignore
- 9.16 ai-stay-still
- 9.17 ai-play-dead
- 10 Event/Goals
- 11 Training
- 11.1 key-pressed
- 11.2 key-reset
- 11.3 targeted
- 11.4 speed
- 11.5 facing
- 11.6 facing-waypoint
- 11.7 order
- 11.8 waypoint-missed
- 11.9 waypoint-twice
- 11.10 path-flown
- 11.11 training-msg
- 11.12 flash-hud-gauge
- 11.13 special-check
- 11.14 secondaries-depleted
- 11.15 set-training-context-fly-path
- 11.16 set-training-context-speed
Objectives
is-destroyed-delay
Is destroyed delay (Boolean operator) Becomes true <delay> seconds after all specified ships have been destroyed. Returns a boolean value; Takes 2 or more arguments: 1: Time delay in seconds (see above). Rest: Name of ship (or wing) to check status of.
is-subsystem-destroyed-delay
Is subsystem destroyed delay (Boolean operator) Becomes true <delay> seconds after the specified subsystem of the specified ship is destroyed. Returns a boolean value; Takes 3 arguments: 1: Name of ship the subsystem we are checking is on. 2: The name of the subsystem we are checking status of. 3: Time delay in seconds (see above).
is-disabled-delay
Is disabled delay (Boolean operator) Becomes true <delay> seconds after the specified ship(s) are disabled. A ship is disabled when all of it's engine subsystems are destroyed. All ships must be diabled for this function to return true. Returns a boolean value; Takes 2 or more arguments: 1: Time delay is seconds (see above). Rest: Names of ships to check disabled status of.
Is-disarmed-delay
Is disarmed delay (Boolean operator) Becomes true <delay> seconds after the specified ship(s) are disarmed. A ship is disarmed when all of it's turret subsystems are destroyed. All ships must be disarmed for this function to return true. Returns a boolean value; Takes 2 or more arguments: 1: Time delay is seconds (see above). Rest: Names of ships to check disarmed status of.
has-docked-delay
Has docked delay (Boolean operator) Becomes true <delay> seconds after the specified ships have docked the specified number of times. Returns a boolean value; Takes 4 arguments: 1: The name of the docker ship 2: The name of the dockee ship 3: The number of times they have to have docked 4: Time delay in seconds (see above).
has-undocked-delay
Has undocked delay (Boolean operator) Becomes true <delay> seconds after the specified ships have undocked the specified number of times. Returns a boolean value; Takes 4 arguments: 1: The name of the docker ship 2: The name of the dockee ship 3: The number of times they have to have undocked 4: Time delay in seconds (see above).
has-arrived-delay
Has arrived delay (Boolean operator) Becomes true <delay> seconds after the specified ship(s) have arrived into the mission Returns a boolean value; Takes 2 or more arguments: 1: Time delay in seconds (see above). Rest: Name of ship (or wing) we want to check has arrived.
has-departed-delay
Has departed delay (Boolean operator) Becomes true <delay> seconds after the specified ship(s) or wing(s) have departed from the mission by warping out. If any ship was destroyed, this operator will never be true. Returns a boolean value; Takes 2 or more arguments: 1: Time delay in seconds (see above). Rest: Name of ship (or wing) we want to check has departed.
are-waypoints-done-delay
Waypoints done delay (Boolean operator) Becomes true <delay> seconds after the specified ship has completed flying the specified waypoint path. Returns a boolean value; Takes 3 arguments: 1: Name of ship we are checking. 2: Waypoint path we want to check if ship has flown. 3: Time delay in seconds (see above).
ship-type-destroyed
Ship Type Destroyed (Boolean operator) Becomes true when the specified percentage of ship types in this mission have been destroyed. The ship type is a generic type such as fighter/bomber, transport, etc. Fighters and bombers count as the same type. Returns a boolean value; Takes 2 arguments: 1: Percentage of ships that must be destroyed. 2: Ship type to check for.
percent-ships-departed
percent-ships-departed Boolean function which returns true if the percentage of ships in the listed ships and wings which have departed is greater or equal to the given percentage. For wings, all ships of all waves are used for calculation for the total possible ships to depart. Takes 2 or more arguments: 1: Percentge of departed ships at which this function will return true. 2+: List of ships/wing whose departure status should be determined.
percent-ships-destroyed
percent-ships-destroyed Boolean function which returns true if the percentage of ships in the listed ships and wings which have been destroyed is greater or equal to the given percentage. For wings, all ships of all waves are used for calculation for the total possible ships to be destroyed. Takes 2 or more arguments: 1: Percentge of destroyed ships at which this function will return true. 2+: List of ships/wing whose destroyed status should be determined.
depart-node-delay
depart-node-delay Returns true N seconds after the listed ships depart, if those ships depart within the radius of the given jump node. The delay value is given in seconds. Takes 3 or more arguments: 1: Delay in seconds after the last ship listed departed before this expression can return true. 2: Name of a jump node 3+: List of ships to check for departure within radius of the jump node
destroyed-or-departed-delay
destroyed-or-departed-delay Returns true N seconds after all the listed ships or wings have been destroyed or have departed. Takes 2 or more arguments: 1: Delay in seconds after the last ship/wing is destroyed or departed this expression can return true. 2+: Name of a ship or wing
Time
time-ship-destroyed
Time ship destroyed (Time operator) Returns the time the specified ship was destroy. Returns a numeric value; Takes 1 argument: 1: Name of ship we want to check.
time-ship-arrived
Time ship arrived (Time operator) Returns the time the specified ship arrived into the mission. Returns a numeric value; Takes 1 argument: 1: Name of ship we want to check.
time-ship-departed
Time ship departed (Time operator) Returns the time the specified ship departed the mission by warping out. Being destroyed doesn't count departed. Returns a numeric value; Takes 1 argument: 1: Name of ship we want to check.
time-wing-destroyed
Time wing destroyed (Time operator) Returns the time the specified wing was destroy. Returns a numeric value; Takes 1 argument: 1: Name of wing we want to check.
time-wing-arrived
Time wing arrived (Time operator) Returns the time the specified wing arrived into the mission. Returns a numeric value; Takes 1 argument: 1: Name of wing we want to check.
time-wing-departed
Time wing departed (Time operator) Returns the time the specified wing departed the mission by warping out. All ships in the wing have to have warped out. If any are destroyed, the wing can never be considered departed. Returns a numeric value; Takes 1 argument: 1: Name of ship we want to check.
mission-time
Mission time (Time operator) Returns the current time into the mission. Returns a numeric value.
time-docked
Time docked (Time operator) Returns the time the specified ships docked. Returns a numeric value; Takes 3 arguments: 1: The name of the docker ship. 2: The name of the dockee ship. 3: The number of times they must have docked to be true.
time-undocked
Time undocked (Time operator) Returns the time the specified ships undocked. Returns a numeric value; Takes 3 arguments: 1: The name of the docker ship. 2: The name of the dockee ship. 3: The number of times they must have undocked to be true.
Logical
true
True (Boolean operator) A true boolean state Returns a boolean value.
false
False (Boolean operator) A false boolean state Returns a boolean value.
and
And (Boolean operator) And is true if all of its arguments are true. Returns a boolean value. Takes 2 or more boolean arguments.
and-in-sequence
And in sequence (Boolean operator) Returns true if all of its arguments have become true in the order they are listed in. Returns a boolean value. Takes 2 or more boolean arguments.
or
Or (Boolean operator) Or is true if any of its arguments are true. Returns a boolean value. Takes 2 or more boolean arguments.
not
Not (Boolean operator) Returns opposite boolean value of argument (True becomes false, and false becomes true). Returns a boolean value; Takes 1 boolean argument.
=
Equals (Boolean operator) Is true if all of it's arguments are equal. Returns a boolean value; Takes 2 or more numeric arguments.
>
Greater than (Boolean operator) True if first argument is greater than the second argument. Returns a boolean value; Takes 2 numeric arguments.
<
Less than (Boolean operator) True if first argument is less than the second argument. Returns a boolean value; Takes 2 numeric arguments.
is-iff
Is IFF (Boolean operator) True if ship{s} are all of the specified team. Returns a boolean value; Takes 2 or more arguments: /t1: Team ("friendly", "hostile" or "unknown"). Rest: Name of ship to check.
has-time-elapsed
Has time elapsed (Boolean operator) Becomes true when the specified amount of time has elapsed (Mission time becomes greater than the specified time). Returns a boolean value; Takes 1 numeric argument: 1: The amount of time in seconds.