Function List — 1.9b3 (API 51)
Posted: Mon Feb 01, 2021 3:31 pm
F U N C T I O N L I S T
(!= x1 x2 ... xn) -> True if any arguments are not equal
(* x1 x2 ... xn) -> z
(+ x1 [x2 ... xn]) -> sum (int32 or real)
(- x1 x2 ... xn) -> z
(- x) -> -x
(/ x y) -> x / y (real)
(< [x1 x2 ... xn]) -> True if x1 < x2 < ... < xn
(<= [x1 x2 ... xn]) -> True if x1 <= x2 <= ... <= xn
(= [x1 x2 ... xn]) -> True if all arguments are equal
(> [x1 x2 ... xn]) -> True if x1 > x2 > ... > xn
(>= [x1 x2 ... xn]) -> True if x1 >= x2 >= ... >= xn
(@ list index) -> item index from list (0-based)
(@ struct key) -> value corresponding to key from struct
(abs x) -> absolute value (int32 or real)
(acos x ['degrees]) -> inverse cosine (real)
(add x1 [x2 ... xn]) -> sum (after converting arguments to int32)
(and [exp1 exp2 ... expn]) -> True/Nil
Returns Nil if any argument is Nil, otherwise returns last argument
(append [list1 list2 ...]) -> concatenated list
(apply function [arg1 arg2 ... argn] argList) -> Result of function with arguments arg1... followed by contents of argList
(armGetRepairCost type) -> Cost to repair 1 hit point
(armGetRepairTech type) -> Tech level required to repair
(asin x ['degrees]) -> inverse sine (real)
(atan y [x] ['degrees]) -> inverse tangent (real)
(atmAddEntry ...)
(atmAtomTable ...)
(atmDeleteEntry ...)
(atmList ...)
(atmLookup ...)
(block [localsList exp1 exp2 ... expn]) -> value of expn
Evaluates a series of expressions and returns the value of the last one.
LocalsList is a list of local variables and/or lists consisting of a local variable and the initial value to assign it.If an expression evaluates to an error, returns that error and doesn't evaluate the rest.
(cat [string1 string2 ... stringn]) -> concatenated string
(ceil x) -> x rounded up, i.e. towards positive infinity (real)
(cnvDrawImage x y imageDesc [screen] [ID]) -> True/Nil
(cnvDrawLine xFrom yFrom xTo yTo width color [screen] [ID]) -> True/Nil
(cnvDrawRect x y width height color [screen] [ID]) -> True/Nil
(cnvDrawText x y [width] text font color alignment [screen] [ID]) -> True/Nil
font:
'Small
'Medium
'MediumBold
'MediumHeavyBold
'Large
'LargeBold
'Header
'HeaderBold
'SubTitle
'SubTitleBold
'SubTitleHeavyBold
'Title
alignment:
'left
'center
'right
(convertTo dataType value) -> result
dataType: 'error|'int32|'list|'nil|'real|'string|'true
(cos x ['degrees]) -> cosine (real)
(count list|string|struct) -> number of items or characters
(dbgBreak)
(dbgGet property) -> value
property:
'debugMode
'memoryUse
'showAIDebug
'showBounds
'showFacingsAngle
'showLineOfFire
'showNavPaths
'showNodeInfo
(dbgIsActive) -> True if in debug mode, else Nil
(dbgLog [string]*) -> True if in debug mode, else Nil
(dbgOutput [string]*) -> True if in debug mode, else Nil
(dbgSet property value) -> True/Nil
property:
'showAIDebug True/Nil
'showBounds True/Nil
'showFacingsAngle True/Nil
'showLineOfFire True/Nil
'showNavPaths True/Nil
'showNodeInfo True/Nil
(divide x y) -> x / y after converting arguments to int32, rounded toward 0
(double x) -> x as a double
(ecoExchange amount fromCurrency toCurrency) -> amount
(enum list itemVar exp) -> value
Iterate itemVar over list evaluating exp. Returns the last value of exp.
(enumWhile list condition itemVar exp) -> value
Iterate itemVar over list evaluating exp while condition is True. Returns the last value of exp.
(eq [x1 x2 ... xn]) -> True if all arguments are equal
(errBlock localsList [exp1 exp2 ... expn] expErr) -> value of expn or expErr if error occurs
Like block, except it evaluates and returns the last expression only if one of the other expressions evaluates to an error.
LocalsList must contain at least one variable. If the first variable is not assigned within localsList, it will be set
to the error while evaluating expErr.
(error msg) -> error
(eval exp) -> result
Evaluates the expression. If it's a string, result is the value of the corresponding symbol.
If it's a quoted expression, the expression is evaluated.
If it's a list, each item is evaluated, then it's evaluated as a function call.
(exp x) -> e^x (real)
(filter list var boolean-exp) -> filtered list
Iterates var over list, evaluating boolean-exp. Returns a list containing the items for which boolean-exp is non-Nil.
(find string target) -> position of target in string (0-based)
(find source-list target ['ascending|'descending] [keyIndex]) -> position of target in source-list (0-based)
The 'ascending or 'descending argument makes the function more efficient if the list is long and sorted in the specified direction.
Specifying an integer keyIndex causes it to compare that item of each list within source-list with the target instead.
(floor x) -> x rounded down, i.e. towards negative infinity (real)
(fmtCompose text [data]) -> string
(fmtCurrency currency [amount]) -> string
(fmtNoun namePattern [nameFlags] count formatFlags) -> string
(fmtNumber [type] value) -> string
type:
'integer
'massKg
'massTons
'power
'real
'regenRate
'speed
(fmtPower powerInKWs) -> string
(fmtVerb verb pluralize) -> string
(fncHelp symbol) -> help on function symbol (works on deprecated functions)
(for var from to exp) -> value of last expression
(gamEnd endGameReason epitaph [scoreBonus]) -> True/Nil
(gamSave [options]) -> True/Nil
options:
'checkpoint (or Nil)
'missionCheckpoint
(gamSetCrawlImage imageUNID) -> True/Nil
(gamSetCrawlSoundtrack soundtrackUNID) -> True/Nil
(gamSetCrawlText text) -> True/Nil
(geq [x1 x2 ... xn]) -> True if x1 >= x2 >= ... >= xn
(getAPIVersion) -> version
(gr [x1 x2 ... xn]) -> True if x1 > x2 > ... > xn
(help) -> this help
(help '*) -> all functions
(help 'partial-string) -> all functions starting with partial-string
(help 'function-name) -> help on function-name
(hex x [fieldSize]) -> hex-string
(hex hex-string) -> value
(if condition exp1 [exp2]) -> exp1 if condition True, otherwise exp2
(int x) -> x as an integer
(objTranslate obj textID [data] [default]) -> text (or Nil)
(isAtom exp) -> True if exp is not a list
(isError exp) -> True if exp is an error
(isFunction exp) -> True if exp is a function
(isInt exp) -> True if exp is an integer
(isPrimitive exp) -> True if exp is a primitive
([email protected] item|type property) -> value
property (instance)
'canBeUsed
'charges
'damaged
'description
'disrupted
'enhancement
'hasUseScreen
'installed
'level
'reference
'rootName
'unknownType
'unknownTypeIndex
'used
property (device)
'canBeDamaged
'canBeDisabled
'canBeDisrupted
'external
'power
'shotSeparationScale
property (weapon)
'ammoTypes
'averageDamage Average damage per shot
'balance
'balanceDamage
'balanceCost
'balanceExcludeCost
'damage Average damage per 180 ticks
'damagePerProjectile
'damageWMD180 Average WMD damage per 180 ticks
'effectiveRange
'fireArc
'fireDelay Number of ticks between shots
'fireRate
'linkedFireOptions
'maxDamage Maximum damage per shot
'minDamage Minimum damage per shot
'multiShot
'omnidirectional
'repeating
'shipCounterPerShot
'stdCost
property (armor)
'blindingImmune
'completeHP
'damageAdj
'deviceDamageImmune
'deviceDisruptImmune
'disintegrationImmune
'EMPImmune
'hp
'hpBonus
'maxHP
'radiationImmune
'repairCost
'repairLevel
'shatterImmune
'stdHP
'stealth
property (all)
'category
'componentPrice
'components
'currency
'currencyName
'description
'frequency
'known
'level
'maxCharges
'maxLevel
'minLevel
'massBonusPerCharge
'valueBonusPerCharge
'weaponTypes
(itmCreate itemUNID count) -> item
(itmCreateByName criteria name [count]) -> item
criteria as itmGetTypes
(itmCreateRandom criteria levelDistribution) -> item
criteria as itmGetTypes
(itmEnumTypes criteria item-var exp) -> value of last expression
criteria as itmGetTypes
(itmFireEvent item|type event [data]) -> result of event
(itmGetActualPrice item|type) -> actual price of a single item
(itmGetArmorInstalledLocation item) -> segment #
(itmGetArmorType item) -> type
(itmGetAverageAppearing item|type) -> average number that appear randomly
(itmGetCategory item|type) -> item category
(itmGetCount item) -> count of items
(itmGetDamageType item|type) -> damage type
(itmGetData item attrib) -> data
(itmGetFrequency item|type [level]) -> frequency
(itmGetImageDesc item|type) -> imageDesc
(itmGetInstallCost item|type [currency]) -> cost
(itmGetInstallPos item) -> installPos
(itmGetLevel item|type) -> level
(itmGetMass item|type) -> mass of single item in kg
(itmGetMaxAppearing item|type) -> max number that appear randomly
(itmGetName item|type [flags]) -> name of item
flags
0x0001 'capitalize capitalize first letter
0x0002 'plural pluralize name
0x0004 'article prefix with 'the' or 'a'
0x0008 'count prefix with count or singular article
0x0010 'countOnly prefix with count or nothing
0x0020 'noModifiers no modifiers ('damaged' etc)
0x0040 'demonstrative prefix with 'the' or 'this' or 'these'
0x0080 'short use short name
0x0100 'actual actual name (not unidentified name)
0x0200 'noEvent do not fire GetName event
0x0400 'titleCapitalize capitalize as a title
0x0800 'installedState prefix with 'installed' if necessary
0x1000 'countAlways always prefix with count
0x40000 'noDeterminer no prefix, but pluralize if necessary
0x80000 'noQuotes replace double-quotes with single-quotes
0x100000 'escapeQuotes use for dock screens
(itmGetPrice item|type [currency]) -> price of a single item
(itmGetStaticData item attrib) -> data
(itmGetType item) -> itemUNID
(itmGetTypeData item|type attrib) -> data
(itmGetTypes criteria) -> list of itemUNIDs
criteria
* Include all item categories
a Include armor devices
b Include misc devices
c Include cargo hold devices
d Include all devices
f Include fuel
l Include launcher devices
m/M Include missiles and ammo / missiles only
p Include primary weapon devices
r Include reactor devices
s Include shield devices
t Include misc items
u Include useful items
v Include drive devices
w Include all weapon devices
V Include virtual items
~ Exclude category
^ Require category
+/-xyz Require / exclude items with attribute
+/-UNID:xyz Require / exclude items with unid
+/-launchedBy:xyz Require / exclude ammo launched by unid
+/-damageType:xyz Require / exclude weapons with damage
F:xyz Only items with the given frequency
L:x-y Only Items of level x to y
comparison criteria supported: < <= = => >
< x Only items with level less than x
<$ x Only items costing less than x
<# x Only items massing less than x
(itmGetUseScreen item|type) -> screenUNID
(itmHasAttribute item|type attrib) -> True/Nil
(itmHasReference item|type) -> True/Nil
(itmIsEnhanced item) -> Nil or mods
(itmIsEqual item1 item2 [options]) -> True/Nil
options
'ignoreCharges
'ignoreData
'ignoreDisruption
'ignoreEnhancements
'ignoreInstalled
(itmIsInstalled item) -> True/Nil
(itmIsKnown item|type) -> True/Nil
(itmMatches item|type criteria) -> True/Nil
criteria as itmGetTypes
([email protected] item property value) -> item
property
'charges charges
'damaged [True|Nil]
'disrupted [True|Nil|ticks]
'incCharges charges
'installed [True|Nil] 'level level 'shotSeparationScale separation
(itmSetCount item count) -> item
(itmSetData item attrib data [count]) -> item
(itmSetEnhanced item mods) -> item
(itmSetKnown type|item [True/Nil]) -> True/Nil
(itmSetReference item) -> True/Nil
(itmSetTypeData item attrib data) -> True/Nil
(join list [separator]) -> Concatenates items of list into a string, with separator in between each.
(join list 'oxfordComma) -> 'a' ; 'a and b' ; 'a, b, and c' ; etc.
(lambda args-list exp) -> lambda function
(leq [x1 x2 ... xn]) -> True if x1 <= x2 <= ... <= xn
(link ...)
(list [i1 i2 ... in]) -> list
(lnkAppend list item) -> Modifies list by appending item to the end and returns the result.
(lnkRemove list index) -> Modifies list by removing the specified item (0-based) and returns the result.
(lnkRemoveNil list) -> Modifies list by removing all Nil items and returns the result.
(lnkReplace list index item) -> list
(log x [base]) -> Logarithm of x (real). Base defaults to e.
(lookup source target ['ascending|'descending] [keyIndex]) -> Like find, but returns the matching item rather than the index.
(loop condition exp) -> Evaluate exp until condition is Nil
(ls [x1 x2 ... xn]) -> True if x1 < x2 < ... < xn
(make 'sequence count) -> list from 1 to count
(make 'sequence start end [inc]) -> list from start to end, incrementing by inc
(map list ['excludeNil|'original|'reduceMax|'reduceMin|'reduceAverage|'reduceSum] var exp) -> list
(match list var boolean-exp) -> first item that matches
(max x1 x2 ... xn) -> z
(min x1 x2 ... xn) -> z
(mod ['degrees] x y) -> z
(modulo ['degrees] x y) -> z
([email protected] missionObj property) -> value
property
'acceptedOn Tick on which player accepted mission (or Nil)
'canBeDeclined Mission can be declined by player
'canBeDeleted Mission can be deleted by player
'completedOn Tick on which mission was completed
'debrieferID ID of the object that will debrief the player
'forceUndockAfterDebrief Force undock after showing debrief screen
'hasDebrief Mission has a debrief phase
'hasInProgress Mission show in progress text
'id Mission object ID
'inProgress Active player mission and not completed
'isActive Is an active player mission
'isCompleted Is a completed mission (player or non-player)
'isDebriefed Player has been debriefed
'isDeclined Player has declined mission
'isFailure Mission has failed
'isIntroShown Player has been shown intro text
'isOpen Mission is available to player
'isRecorded Mission has been completed and debriefed
'isSuccess Mission has succeeded
'isUnavailable Mission is unavailable to player
'maxAppearing Max number of this type that can exist
'name The name of the mission
'nodeID ID of the mission's owner system
'ownerID ID of the mission's owner object
'priority Mission priority
'summary A summary description of the mission
'totalAccepted Count of this type accepted by player
'totalExisting Count of this type currently existing in universe
'unid Mission type UNID
(msnAccept missionObj) -> True/Nil
(msnAddRecurringTimerEvent missionObj interval event [options])
interval in ticks
options:
'allSystems: Timer fires in all systems.
(msnAddTimerEvent missionObj delay event [options])
delay in ticks
options:
'allSystems: Timer fires in all systems.
(msnCancelTimerEvent missionObj event) -> True/Nil
(msnCanCreate unid [owner [data|options]]) -> True|Nil
options:
'noMissionArcCheck: Do not check if in correct sequence.
'noSystemLevelCheck: Do not check if correct system level.
(msnCreate unid owner [data]) -> missionObj|Nil
(msnCreate unid-list owner [data]) -> missionObj|Nil
(msnDecline missionObj)
(msnDestroy missionObj) -> True/Nil
(msnFailure missionObj [data]) -> True/Nil
(msnFind [source] criteria) -> list of missionObjs
criteria
* Include all missions states
a Include active player missions
c Include completed missions (not necessarily debriefed)
o Include open missions
r Include already debriefed (recorded) missions
u Include non-player missions
D Only missions debriefed by source
P Return only the mission with highest priority
S Only missions owned by source
+/-{attrib} Require/exclude missions with given attribute
+/-ownerID:{id} Require/exclude missions with given owner
+/-unid:{unid} Require/exclude missions of given unid
(msnFireEvent missionObj event [data]) -> result of event
(msnGetData missionObj attrib) -> data
(msnGetObjRefData missionObj attrib) -> obj
(msnGetStaticData missionObj attrib) -> data
(msnGetTypeData missionObj attrib) -> data
([email protected] obj property [increment]) -> new value
(msnIncData missionObj attrib [increment]) -> new value
(msnRefreshSummary missionObj)
(msnRegisterForEvents missionObj obj|obj-list)
(msnReward missionObj [data])
([email protected] obj property value) -> True/Nil
property
'debrieferID obj
'isDebriefed True|Nil
'isDeclined True|Nil
'isIntroShown True|Nil
'name newName
'summary newSummary
(msnSetData missionObj attrib data)
(msnSetObjRefData missionObj attrib obj)
(msnSetPlayerTarget missionObj)
(msnSetTypeData missionObj attrib data)
(msnSetUnavailable missionObj)
(msnSuccess missionObj [data]) -> True/Nil
(msnTranslate missionObj textID [data] [default]) -> text (or Nil)
(multiply x1 x2 ... xn) -> z
(neq x1 x2 ... xn) -> True if any arguments are not equal
(not exp) -> True/Nil
(!= x1 x2 ... xn) -> True if any arguments are not equal
(* x1 x2 ... xn) -> z
(+ x1 [x2 ... xn]) -> sum (int32 or real)
(- x1 x2 ... xn) -> z
(- x) -> -x
(/ x y) -> x / y (real)
(< [x1 x2 ... xn]) -> True if x1 < x2 < ... < xn
(<= [x1 x2 ... xn]) -> True if x1 <= x2 <= ... <= xn
(= [x1 x2 ... xn]) -> True if all arguments are equal
(> [x1 x2 ... xn]) -> True if x1 > x2 > ... > xn
(>= [x1 x2 ... xn]) -> True if x1 >= x2 >= ... >= xn
(@ list index) -> item index from list (0-based)
(@ struct key) -> value corresponding to key from struct
(abs x) -> absolute value (int32 or real)
(acos x ['degrees]) -> inverse cosine (real)
(add x1 [x2 ... xn]) -> sum (after converting arguments to int32)
(and [exp1 exp2 ... expn]) -> True/Nil
Returns Nil if any argument is Nil, otherwise returns last argument
(append [list1 list2 ...]) -> concatenated list
(apply function [arg1 arg2 ... argn] argList) -> Result of function with arguments arg1... followed by contents of argList
(armGetRepairCost type) -> Cost to repair 1 hit point
(armGetRepairTech type) -> Tech level required to repair
(asin x ['degrees]) -> inverse sine (real)
(atan y [x] ['degrees]) -> inverse tangent (real)
(atmAddEntry ...)
(atmAtomTable ...)
(atmDeleteEntry ...)
(atmList ...)
(atmLookup ...)
(block [localsList exp1 exp2 ... expn]) -> value of expn
Evaluates a series of expressions and returns the value of the last one.
LocalsList is a list of local variables and/or lists consisting of a local variable and the initial value to assign it.If an expression evaluates to an error, returns that error and doesn't evaluate the rest.
(cat [string1 string2 ... stringn]) -> concatenated string
(ceil x) -> x rounded up, i.e. towards positive infinity (real)
(cnvDrawImage x y imageDesc [screen] [ID]) -> True/Nil
(cnvDrawLine xFrom yFrom xTo yTo width color [screen] [ID]) -> True/Nil
(cnvDrawRect x y width height color [screen] [ID]) -> True/Nil
(cnvDrawText x y [width] text font color alignment [screen] [ID]) -> True/Nil
font:
'Small
'Medium
'MediumBold
'MediumHeavyBold
'Large
'LargeBold
'Header
'HeaderBold
'SubTitle
'SubTitleBold
'SubTitleHeavyBold
'Title
alignment:
'left
'center
'right
(convertTo dataType value) -> result
dataType: 'error|'int32|'list|'nil|'real|'string|'true
(cos x ['degrees]) -> cosine (real)
(count list|string|struct) -> number of items or characters
(dbgBreak)
(dbgGet property) -> value
property:
'debugMode
'memoryUse
'showAIDebug
'showBounds
'showFacingsAngle
'showLineOfFire
'showNavPaths
'showNodeInfo
(dbgIsActive) -> True if in debug mode, else Nil
(dbgLog [string]*) -> True if in debug mode, else Nil
(dbgOutput [string]*) -> True if in debug mode, else Nil
(dbgSet property value) -> True/Nil
property:
'showAIDebug True/Nil
'showBounds True/Nil
'showFacingsAngle True/Nil
'showLineOfFire True/Nil
'showNavPaths True/Nil
'showNodeInfo True/Nil
(divide x y) -> x / y after converting arguments to int32, rounded toward 0
(double x) -> x as a double
(ecoExchange amount fromCurrency toCurrency) -> amount
(enum list itemVar exp) -> value
Iterate itemVar over list evaluating exp. Returns the last value of exp.
(enumWhile list condition itemVar exp) -> value
Iterate itemVar over list evaluating exp while condition is True. Returns the last value of exp.
(eq [x1 x2 ... xn]) -> True if all arguments are equal
(errBlock localsList [exp1 exp2 ... expn] expErr) -> value of expn or expErr if error occurs
Like block, except it evaluates and returns the last expression only if one of the other expressions evaluates to an error.
LocalsList must contain at least one variable. If the first variable is not assigned within localsList, it will be set
to the error while evaluating expErr.
(error msg) -> error
(eval exp) -> result
Evaluates the expression. If it's a string, result is the value of the corresponding symbol.
If it's a quoted expression, the expression is evaluated.
If it's a list, each item is evaluated, then it's evaluated as a function call.
(exp x) -> e^x (real)
(filter list var boolean-exp) -> filtered list
Iterates var over list, evaluating boolean-exp. Returns a list containing the items for which boolean-exp is non-Nil.
(find string target) -> position of target in string (0-based)
(find source-list target ['ascending|'descending] [keyIndex]) -> position of target in source-list (0-based)
The 'ascending or 'descending argument makes the function more efficient if the list is long and sorted in the specified direction.
Specifying an integer keyIndex causes it to compare that item of each list within source-list with the target instead.
(floor x) -> x rounded down, i.e. towards negative infinity (real)
(fmtCompose text [data]) -> string
(fmtCurrency currency [amount]) -> string
(fmtNoun namePattern [nameFlags] count formatFlags) -> string
(fmtNumber [type] value) -> string
type:
'integer
'massKg
'massTons
'power
'real
'regenRate
'speed
(fmtPower powerInKWs) -> string
(fmtVerb verb pluralize) -> string
(fncHelp symbol) -> help on function symbol (works on deprecated functions)
(for var from to exp) -> value of last expression
(gamEnd endGameReason epitaph [scoreBonus]) -> True/Nil
(gamSave [options]) -> True/Nil
options:
'checkpoint (or Nil)
'missionCheckpoint
(gamSetCrawlImage imageUNID) -> True/Nil
(gamSetCrawlSoundtrack soundtrackUNID) -> True/Nil
(gamSetCrawlText text) -> True/Nil
(geq [x1 x2 ... xn]) -> True if x1 >= x2 >= ... >= xn
(getAPIVersion) -> version
(gr [x1 x2 ... xn]) -> True if x1 > x2 > ... > xn
(help) -> this help
(help '*) -> all functions
(help 'partial-string) -> all functions starting with partial-string
(help 'function-name) -> help on function-name
(hex x [fieldSize]) -> hex-string
(hex hex-string) -> value
(if condition exp1 [exp2]) -> exp1 if condition True, otherwise exp2
(int x) -> x as an integer
(objTranslate obj textID [data] [default]) -> text (or Nil)
(isAtom exp) -> True if exp is not a list
(isError exp) -> True if exp is an error
(isFunction exp) -> True if exp is a function
(isInt exp) -> True if exp is an integer
(isPrimitive exp) -> True if exp is a primitive
([email protected] item|type property) -> value
property (instance)
'canBeUsed
'charges
'damaged
'description
'disrupted
'enhancement
'hasUseScreen
'installed
'level
'reference
'rootName
'unknownType
'unknownTypeIndex
'used
property (device)
'canBeDamaged
'canBeDisabled
'canBeDisrupted
'external
'power
'shotSeparationScale
property (weapon)
'ammoTypes
'averageDamage Average damage per shot
'balance
'balanceDamage
'balanceCost
'balanceExcludeCost
'damage Average damage per 180 ticks
'damagePerProjectile
'damageWMD180 Average WMD damage per 180 ticks
'effectiveRange
'fireArc
'fireDelay Number of ticks between shots
'fireRate
'linkedFireOptions
'maxDamage Maximum damage per shot
'minDamage Minimum damage per shot
'multiShot
'omnidirectional
'repeating
'shipCounterPerShot
'stdCost
property (armor)
'blindingImmune
'completeHP
'damageAdj
'deviceDamageImmune
'deviceDisruptImmune
'disintegrationImmune
'EMPImmune
'hp
'hpBonus
'maxHP
'radiationImmune
'repairCost
'repairLevel
'shatterImmune
'stdHP
'stealth
property (all)
'category
'componentPrice
'components
'currency
'currencyName
'description
'frequency
'known
'level
'maxCharges
'maxLevel
'minLevel
'massBonusPerCharge
'valueBonusPerCharge
'weaponTypes
(itmCreate itemUNID count) -> item
(itmCreateByName criteria name [count]) -> item
criteria as itmGetTypes
(itmCreateRandom criteria levelDistribution) -> item
criteria as itmGetTypes
(itmEnumTypes criteria item-var exp) -> value of last expression
criteria as itmGetTypes
(itmFireEvent item|type event [data]) -> result of event
(itmGetActualPrice item|type) -> actual price of a single item
(itmGetArmorInstalledLocation item) -> segment #
(itmGetArmorType item) -> type
(itmGetAverageAppearing item|type) -> average number that appear randomly
(itmGetCategory item|type) -> item category
(itmGetCount item) -> count of items
(itmGetDamageType item|type) -> damage type
(itmGetData item attrib) -> data
(itmGetFrequency item|type [level]) -> frequency
(itmGetImageDesc item|type) -> imageDesc
(itmGetInstallCost item|type [currency]) -> cost
(itmGetInstallPos item) -> installPos
(itmGetLevel item|type) -> level
(itmGetMass item|type) -> mass of single item in kg
(itmGetMaxAppearing item|type) -> max number that appear randomly
(itmGetName item|type [flags]) -> name of item
flags
0x0001 'capitalize capitalize first letter
0x0002 'plural pluralize name
0x0004 'article prefix with 'the' or 'a'
0x0008 'count prefix with count or singular article
0x0010 'countOnly prefix with count or nothing
0x0020 'noModifiers no modifiers ('damaged' etc)
0x0040 'demonstrative prefix with 'the' or 'this' or 'these'
0x0080 'short use short name
0x0100 'actual actual name (not unidentified name)
0x0200 'noEvent do not fire GetName event
0x0400 'titleCapitalize capitalize as a title
0x0800 'installedState prefix with 'installed' if necessary
0x1000 'countAlways always prefix with count
0x40000 'noDeterminer no prefix, but pluralize if necessary
0x80000 'noQuotes replace double-quotes with single-quotes
0x100000 'escapeQuotes use for dock screens
(itmGetPrice item|type [currency]) -> price of a single item
(itmGetStaticData item attrib) -> data
(itmGetType item) -> itemUNID
(itmGetTypeData item|type attrib) -> data
(itmGetTypes criteria) -> list of itemUNIDs
criteria
* Include all item categories
a Include armor devices
b Include misc devices
c Include cargo hold devices
d Include all devices
f Include fuel
l Include launcher devices
m/M Include missiles and ammo / missiles only
p Include primary weapon devices
r Include reactor devices
s Include shield devices
t Include misc items
u Include useful items
v Include drive devices
w Include all weapon devices
V Include virtual items
~ Exclude category
^ Require category
+/-xyz Require / exclude items with attribute
+/-UNID:xyz Require / exclude items with unid
+/-launchedBy:xyz Require / exclude ammo launched by unid
+/-damageType:xyz Require / exclude weapons with damage
F:xyz Only items with the given frequency
L:x-y Only Items of level x to y
comparison criteria supported: < <= = => >
< x Only items with level less than x
<$ x Only items costing less than x
<# x Only items massing less than x
(itmGetUseScreen item|type) -> screenUNID
(itmHasAttribute item|type attrib) -> True/Nil
(itmHasReference item|type) -> True/Nil
(itmIsEnhanced item) -> Nil or mods
(itmIsEqual item1 item2 [options]) -> True/Nil
options
'ignoreCharges
'ignoreData
'ignoreDisruption
'ignoreEnhancements
'ignoreInstalled
(itmIsInstalled item) -> True/Nil
(itmIsKnown item|type) -> True/Nil
(itmMatches item|type criteria) -> True/Nil
criteria as itmGetTypes
([email protected] item property value) -> item
property
'charges charges
'damaged [True|Nil]
'disrupted [True|Nil|ticks]
'incCharges charges
'installed [True|Nil] 'level level 'shotSeparationScale separation
(itmSetCount item count) -> item
(itmSetData item attrib data [count]) -> item
(itmSetEnhanced item mods) -> item
(itmSetKnown type|item [True/Nil]) -> True/Nil
(itmSetReference item) -> True/Nil
(itmSetTypeData item attrib data) -> True/Nil
(join list [separator]) -> Concatenates items of list into a string, with separator in between each.
(join list 'oxfordComma) -> 'a' ; 'a and b' ; 'a, b, and c' ; etc.
(lambda args-list exp) -> lambda function
(leq [x1 x2 ... xn]) -> True if x1 <= x2 <= ... <= xn
(link ...)
(list [i1 i2 ... in]) -> list
(lnkAppend list item) -> Modifies list by appending item to the end and returns the result.
(lnkRemove list index) -> Modifies list by removing the specified item (0-based) and returns the result.
(lnkRemoveNil list) -> Modifies list by removing all Nil items and returns the result.
(lnkReplace list index item) -> list
(log x [base]) -> Logarithm of x (real). Base defaults to e.
(lookup source target ['ascending|'descending] [keyIndex]) -> Like find, but returns the matching item rather than the index.
(loop condition exp) -> Evaluate exp until condition is Nil
(ls [x1 x2 ... xn]) -> True if x1 < x2 < ... < xn
(make 'sequence count) -> list from 1 to count
(make 'sequence start end [inc]) -> list from start to end, incrementing by inc
(map list ['excludeNil|'original|'reduceMax|'reduceMin|'reduceAverage|'reduceSum] var exp) -> list
(match list var boolean-exp) -> first item that matches
(max x1 x2 ... xn) -> z
(min x1 x2 ... xn) -> z
(mod ['degrees] x y) -> z
(modulo ['degrees] x y) -> z
([email protected] missionObj property) -> value
property
'acceptedOn Tick on which player accepted mission (or Nil)
'canBeDeclined Mission can be declined by player
'canBeDeleted Mission can be deleted by player
'completedOn Tick on which mission was completed
'debrieferID ID of the object that will debrief the player
'forceUndockAfterDebrief Force undock after showing debrief screen
'hasDebrief Mission has a debrief phase
'hasInProgress Mission show in progress text
'id Mission object ID
'inProgress Active player mission and not completed
'isActive Is an active player mission
'isCompleted Is a completed mission (player or non-player)
'isDebriefed Player has been debriefed
'isDeclined Player has declined mission
'isFailure Mission has failed
'isIntroShown Player has been shown intro text
'isOpen Mission is available to player
'isRecorded Mission has been completed and debriefed
'isSuccess Mission has succeeded
'isUnavailable Mission is unavailable to player
'maxAppearing Max number of this type that can exist
'name The name of the mission
'nodeID ID of the mission's owner system
'ownerID ID of the mission's owner object
'priority Mission priority
'summary A summary description of the mission
'totalAccepted Count of this type accepted by player
'totalExisting Count of this type currently existing in universe
'unid Mission type UNID
(msnAccept missionObj) -> True/Nil
(msnAddRecurringTimerEvent missionObj interval event [options])
interval in ticks
options:
'allSystems: Timer fires in all systems.
(msnAddTimerEvent missionObj delay event [options])
delay in ticks
options:
'allSystems: Timer fires in all systems.
(msnCancelTimerEvent missionObj event) -> True/Nil
(msnCanCreate unid [owner [data|options]]) -> True|Nil
options:
'noMissionArcCheck: Do not check if in correct sequence.
'noSystemLevelCheck: Do not check if correct system level.
(msnCreate unid owner [data]) -> missionObj|Nil
(msnCreate unid-list owner [data]) -> missionObj|Nil
(msnDecline missionObj)
(msnDestroy missionObj) -> True/Nil
(msnFailure missionObj [data]) -> True/Nil
(msnFind [source] criteria) -> list of missionObjs
criteria
* Include all missions states
a Include active player missions
c Include completed missions (not necessarily debriefed)
o Include open missions
r Include already debriefed (recorded) missions
u Include non-player missions
D Only missions debriefed by source
P Return only the mission with highest priority
S Only missions owned by source
+/-{attrib} Require/exclude missions with given attribute
+/-ownerID:{id} Require/exclude missions with given owner
+/-unid:{unid} Require/exclude missions of given unid
(msnFireEvent missionObj event [data]) -> result of event
(msnGetData missionObj attrib) -> data
(msnGetObjRefData missionObj attrib) -> obj
(msnGetStaticData missionObj attrib) -> data
(msnGetTypeData missionObj attrib) -> data
([email protected] obj property [increment]) -> new value
(msnIncData missionObj attrib [increment]) -> new value
(msnRefreshSummary missionObj)
(msnRegisterForEvents missionObj obj|obj-list)
(msnReward missionObj [data])
([email protected] obj property value) -> True/Nil
property
'debrieferID obj
'isDebriefed True|Nil
'isDeclined True|Nil
'isIntroShown True|Nil
'name newName
'summary newSummary
(msnSetData missionObj attrib data)
(msnSetObjRefData missionObj attrib obj)
(msnSetPlayerTarget missionObj)
(msnSetTypeData missionObj attrib data)
(msnSetUnavailable missionObj)
(msnSuccess missionObj [data]) -> True/Nil
(msnTranslate missionObj textID [data] [default]) -> text (or Nil)
(multiply x1 x2 ... xn) -> z
(neq x1 x2 ... xn) -> True if any arguments are not equal
(not exp) -> True/Nil