Function List - 2.0 Alpha 4 (API 55)
Posted: Mon Sep 08, 2025 10:36 am
(!= x1 x2 ... xn) -> True if any arguments are not equal
(!=== [x1 x2 ... xn]) -> True if any arguments are not equal or are of different types.
Treats strings as case sensitive. Does not treat zeros, empty lists, and strings as Nil
A single argument returns True if it is not Nil.
(!= x1 x2 ... xn) -> True if any arguments are not equal
(!=== [x1 x2 ... xn]) -> True if any arguments are not equal or are of different types.
Treats strings as case sensitive. Does not treat zeros, empty lists, and strings as Nil
A single argument returns True if it is not Nil.
(* 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 all arguments are exactly equal and of the same type
Treats strings as case sensitive. Does not treat zeros, empty lists, and strings as Nil
A single argument returns True if it is Nil.
(> [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
(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
(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
(objCanInstallItem obj item [armorSeg|deviceSlot]) -> (True/Nil resultCode resultString [itemToReplace])
(convertTo dataType value) -> result
(cos x ['degrees]) -> cosine (real)
(count list|string|struct) -> number of items or characters
(dbgApplyTimed fn args) -> Time in ns to execute fn with args (double).
(dbgBreak)
(dbgClear)
(dbgEvalTimed expr) -> Time in ns to parse and execute expr (double).
(dbgGet property) -> value
(dbgGetPerformance) -> list of performance entries
(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
(dbgSetPerformanceCounter counter [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "*" [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "?") -> List of counters
(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
(enumWhile list condition itemVar exp) -> value
(eq [x1 x2 ... xn]) -> True if all arguments are equal
(errBlock localsList [exp1 exp2 ... expn] expErr) -> value of expn or expErr if error occurs
(error msg) -> error
(eval exp) -> result
(exp x) -> e^x (real)
(filter list var boolean-exp) -> filtered list
(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)
(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
(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
(gammaScale var inStart inEnd outStart outEnd [gamma=1.0]) -> scaled value (int or real)
(gamSave [options]) -> True/Nil
(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 '* ['lambdas]) -> all functions
(help 'partial-string ['lambdas]) -> all functions starting with partial-string
(help 'function-name ['lambdas]) -> help on function-name
(help lambda) -> help on the provided lambda
(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
(itm@ item|type property) -> value
(itmCreate itemUNID count) -> item
(itmCreateByName criteria name [count]) -> item
(itmCreateRandom criteria levelDistribution) -> item
(itmEnumTypes criteria item-var exp) -> value of last expression
(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
(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
(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
(itmIsInstalled item) -> True/Nil
(itmIsKnown item|type) -> True/Nil
(itmMatches item|type criteria) -> True/Nil
(itmSet@ item property value) -> item
(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 [docstring] exp) -> lambda function
(leq [x1 x2 ... xn]) -> True if x1 <= x2 <= ... <= xn
(link str) -> expr. Converts a string into a tlisp expression that can be evaluated with (eval ...).
(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.
(ls [x1 x2 ... xn]) -> True if x1 < x2 < ... < xn
(make 'duplicates count entry) -> list of n entries
(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
(msn@ missionObj property) -> value
(msnAccept missionObj) -> True/Nil
(msnAddRecurringTimerEvent missionObj interval event [options])
(msnAddTimerEvent missionObj delay event [options])
(msnCancelTimerEvent missionObj event) -> True/Nil
(msnCanCreate unid [owner [data|options]]) -> True|Nil
(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
(msnFireEvent missionObj event [data]) -> result of event
(msnGetData missionObj attrib) -> data
(msnGetObjRefData missionObj attrib) -> obj
(msnGetStaticData missionObj attrib) -> data
(msnGetTypeData missionObj attrib) -> data
(msnInc@ obj property [increment]) -> new value
(msnIncData missionObj attrib [increment]) -> new value
(msnRefreshSummary missionObj)
(msnRegisterForEvents missionObj obj|obj-list)
(msnReward missionObj [data])
(msnSet@ obj property value) -> True/Nil
(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
(obj@ obj property) -> value
(objAccelerate obj angle thrust [ticks]) -> velVector
(objAddBuyOrder obj criteria priceAdj) -> True/Nil
(objAddConnection obj1 connectType obj2 [options]) -> connectionID
(objAddItem obj item|type [count]) -> item
(objAddOverlay obj overlayType [lifetime]) -> overlayID
(objAddOverlay obj overlayType pos rotation [lifetime]) -> overlayID
(objAddOverlay obj overlayType pos rotation lifetime [posZ]) -> overlayID
(objAddRandomItems obj table count) -> True/Nil
(objAddSellOrder obj criteria priceAdj) -> True/Nil
(objAddSubordinate obj subordinate) -> True/Nil
(objAddTradeOrder obj service criteria priceAdj) -> True/Nil
(objApplyCondition obj condition [options]) -> result
(objCalcBestTarget obj [objList]) -> targetObj (or Nil)
(objCanApplyCondition obj condition [options]) -> result
(objCanAttack obj) -> True/Nil
(objCanDestroyTarget obj target) -> True/Nil
(objCanDetectTarget obj target) -> True/Nil
(objCanEnhanceItem obj item enhancementType|item) -> result
(objCanHitTarget obj target) -> True/Nil
(objCanRemoveCondition obj condition [options]) -> result
(objChangeEquipmentStatus obj equipment command [duration] [options]) -> True/Nil
(objCharge obj [currency] amount) -> remaining balance
(objClearIdentified obj) -> True/Nil
(objClearShowAsDestination obj) -> True/Nil
(objCommunicate obj senderObj msg [obj] [data]) -> result
(objCreateReflection missile [pos] [angle]) -> reflection
(objCredit obj [currency] amount) -> new balance
(objDamage obj weaponType objSource [pos] [options]) -> result
(objDepleteShields obj) -> True/Nil
(objDestroy obj [objSource]) -> True/Nil
(objEnhanceItem obj item enhancementType|item|enhancementDesc) -> result
(objEnumItems obj criteria itemVar exp) -> value
(objFireEvent obj event [data]) -> result of event
(objFireItemEvent obj item event [data]) -> result of event
(objFireItemInvoke obj item) -> True/Nil
(objFireOverlayEvent obj overlayID event [data]) -> result of event
(objFirePowerInvoke obj power [target] ['noInvokeCheck]) -> result of event
(objFireWeapon obj weapon target [fireDelay] [checkFireDelay]) -> True/Nil
(objGateTo obj node entrypoint [effectID]) -> True/Nil
(objGetArmorCriticality obj item|armorSegment) -> criticalityType
(objGetArmorDamage obj item|armorSegment) -> damage to armor segment
(objGetArmorLevel obj item|armorSegment) -> 0-100%
(objGetArmorName obj item|armorSegment) -> name of armor (e.g., 'forward', etc.)
(objGetArmorRepairPrice obj [shipObj] armorItem hpToRepair) -> price (at which obj repairs)
(objGetArmorReplacePrice obj armorItem) -> price
(objGetArmorType obj item|armorSegment) -> type
(objGetBalance obj [currency]) -> balance
(objGetBuyPrice obj item [options]) -> price (at which obj buys item)
(objGetCargoSpaceLeft obj) -> space left in kg
(objGetCharacterData obj attrib) -> data
(objGetCombatPower obj) -> 0-100
(objGetCondition obj [condition]) -> True/Nil
(objGetDamageType obj) -> damage type
(objGetData obj attrib) -> data
(objGetDataField obj field) -> data
(objGetDetectRange obj targetObj) -> range in light-seconds
(objGetDisposition obj targetObj) -> disposition of obj towards targetObj
(objGetDistance obj destObj) -> distance in light-seconds
(objGetEquipmentStatus obj equipment) -> status
(objGetEventHandler obj) -> unid or Nil
(objGetID obj) -> objID
(objGetImageDesc obj) -> imageDesc
(objGetInstalledItemDesc obj item) -> 'installed as forward armor'
(objGetItems obj criteria) -> list of items
(objGetLevel obj) -> level
(objGetMass obj) -> mass in tons
(objGetMaxPower obj) -> power (in 1/10 MWs)
(objGetName obj [flags]) -> Name of the object
(objGetNamedItems obj name) -> list of items
(objGetNearestStargate obj) -> obj
(objGetObjByID objID) -> obj
(objGetObjRefData obj attrib) -> obj
(objGetOpenDockingPortCount obj) -> count of open docking ports
(objGetOrderGiver obj [destroyReason]) -> obj
(objGetOverlayData obj overlayID attrib) -> data
(objGetOverlayPos obj overlayID) -> vector
(objGetOverlayRotation obj overlayID) -> rotation
(objGetOverlays obj [criteria|overlayType]) -> list of overlayIDs
(objGetOverlayType obj overlayID) -> type
(objGetPlayerPriceAdj obj [data]) -> priceAdj (or Nil if no adj)
(objGetPos obj) -> vector
(objGetRefuelItemAndPrice obj objToRefuel) -> (item price)
(objGetRemoveConditionPrice obj shipObj condition) -> price (at which obj restores ship)
(objGetSellPrice obj item [options]) -> price (at which obj sells item)
(objGetShieldLevel obj) -> 0-100% (or -1 for no shields)
(objGetShipBuyPrice obj shipObj) -> price (at which obj buys ship)
(objGetShipSellPrice obj shipObj) -> price (at which obj sells ship)
(objGetShipwreckType obj) -> unid
(objGetStargateID obj) -> gateID
(objGetStaticData obj attrib) -> data
(objGetTarget obj) -> obj
(objGetType obj) -> unid
(objGetTypeData obj attrib) -> data
(objGetVel obj) -> velVector
(objHasAttribute obj attrib) -> True/Nil
(objHasItem obj item [count] [options]) -> number of items (or Nil)
(objHasTradeService obj service [options]) -> True/Nil
(objInc@ obj property [increment]) -> new value
(objInc@ obj item property [increment]) -> item
(objIncData obj attrib [increment]) -> new value
(objIncOverlayData obj overlayID attrib [increment]) -> new value
(objIncVel obj velVector) -> velVector
(objIsAngryAt obj targetObj) -> True/Nil
(objIsDeviceSlotAvailable ship) -> True/Nil
(objIsDockedAt obj stationObj) -> True/Nil
(objIsEnemy obj target) -> True/Nil
(objIsIdentified obj) -> True/Nil
(objIsKnown obj) -> True/Nil
(objIsParalyzed obj) -> True/Nil
(objIsRadioactive obj) -> True/Nil
(objIsShip obj) -> True/Nil
(objJumpTo obj pos) -> True/Nil
(objLowerShields obj) -> True/Nil
(objMatches obj source filter) -> True/Nil
(objProgramDamage obj hacker progName aiLevel code) -> True/Nil
(objRecordBuyItem buyerObj sellerObj item [currency] price) -> True/Nil
(objRegisterForEvents target obj|obj-list) -> True/Nil
(objRegisterForSystemEvents target range) -> True/Nil
(objRemove obj) -> True/Nil
(objRemoveCondition obj condition [options]) -> result
(objRemoveItem obj item [count] [options]) -> True/Nil
(objRemoveItemEnhancement obj item enhancementID) -> True/Nil
(objRemoveOverlay obj overlayID) -> True/Nil
(objRepairArmor ship item|armorSegment [hpToRepair]) -> hp repaired
(objResume obj [gateObj]) -> True/Nil
(objSendMessage obj sender text) -> True/Nil
(objSendMessageTranslate obj sender textID [data]) -> True/Nil
(objSet@ obj property value) -> True/Nil
(objSetCharacterData obj attrib data) -> True/Nil
(objSetData obj attrib data) -> True/Nil
(objSetDeviceActivationDelay obj deviceItem [delay]) -> True/Nil
(objSetEventHandler obj unid) -> True/Nil
(objSetIdentified obj) -> True/Nil
(objSetItemData obj item attrib data [count]) -> item
(objSetKnown obj) -> True/Nil
(objSetName obj name [flags]) -> True/Nil
(objSetObjRefData obj attrib obj) -> True/Nil
(objSetOverlayData obj overlayID attrib data)
(objSetOverlayEffectProperty obj overlayID property value)
(objSetOverlayPos obj overlayID pos)
(objSetOverlayRotation obj overlayID rotation)
(objSetPos obj vector [rotation])
(objSetShowAsDestination obj [options]) -> True/Nil
(objSetTradeDesc obj currency [maxCurrency replenishCurrency]) -> True/Nil
(objSetTypeData obj attrib data)
(objSetVel obj velVector)
(objSquadronComms obj receiver msgID [options]) -> Result
(objSquadronCommsMessages obj receiver) -> List of msgIDs
(objSuspend obj)
(objTranslate obj textID [data] [default]) -> text (or Nil)
(objUnregisterForEvents target obj)
(objUnregisterForSystemEvents target)
(or exp1 exp2 ... expn) -> True/Nil
(ovr@ obj overlayID property) -> value
(ovrInc@ obj overlayID property [increment]) -> new value
(ovrSet@ obj overlayID property value)
(plyChangeShip player newShip [options]) -> True/Nil
(plyCharge player [currency] charge) -> credits left
(plyComposeString player string [arg1 arg2 ... argn]) -> text
(plyCredit player [currency] credit) -> credits left
(plyDestroyed player epitaph) -> True/Nil
(plyEnableMessage player messageID True/Nil) -> True/Nil
(plyGetCredits player [currency]) -> credits left
(plyGetGenome player) -> 'humanMale | 'humanFemale
(plyGetItemStat player stat criteria|type) -> value
(plyGetKeyEventStat player stat nodeID typeCriteria) -> value
(plyGetName player) -> player's name
(plyGetRedirectMessage player) -> text or Nil
(plyGetStat player stat) -> value
(plyGetSystemStat player stat [nodeID]) -> value
(plyIncItemStat player stat item|type [inc]) -> value
(plyIncScore player scoreInc) -> score
(plyInSystemStat player stat [nodeID] [inc]) -> value
(plyIsMessageEnabled player messageID) -> True/Nil
(plyMessage player message) -> True/Nil
(plyRecordBuyItem player item [currency] totalPrice) -> True/Nil
(plyRecordSellItem player item [currency] totalPrice) -> True/Nil
(plyRedirectMessage player True/Nil) -> True/Nil
(plyUseItem player item) -> True/Nil
(pow x y) -> z
(power x y) -> z
(print [string]*) -> True
(printTo output [string]*) -> True
(quote exp) -> unevaluated exp
(random from to)
(random list)
(random) -> random number between 0 and 1
(randomGaussian low mid high) -> random number between low and high
(randomTable chance1 exp1 chance2 exp2 ... chancen expn) -> exp
(regex source pattern ['offset|'subex]) -> result
(resColorBlend rgbDest rgbSource srcOpacity) -> rgbColor
(resCreateImageDesc imageUNID x y width height) -> imageDesc
(resGetImageProperty imageDesc property) -> value
(rollChance percentChance [rolls]) -> True/Nil
(rollDice count sides [bonus]) -> value
(round ['stochastic] x) -> y
(scr@ screen property) -> value
(scrAddAction screen actionID pos label [key] [special] code) -> True/Nil
(scrAddListFilter screen filterID label filter) -> True/Nil
(scrAddMinorAction screen actionID pos label [key] [special] code) -> True/Nil
(scrAddUndockCode screen id code) -> True/Nil
(scrEnableAction screen actionID enabled) -> True/Nil
(scrExitScreen screen ['forceUndock]) -> True/Nil
(scrGetCounter screen) -> value
(scrGetData screen attrib) -> data
(scrGetDesc screen) -> text
(scrGetInputText screen) -> text
(scrGetItem screen) -> item
(scrGetList screen) -> list of entries
(scrGetListCursor screen) -> cursor
(scrGetListEntry screen) -> entry
RENAMED: Used (scr@ ...) instead.
(scrGetReturnData screen attrib) -> data
(scrGetScreen gScreen) -> screenDesc
(scrGetSessionData screen attrib) -> data
(scrIncData screen attrib [increment]) -> value
(scrIsActionEnabled screen actionID) -> True/Nil
(scrIsFirstOnInit screen) -> True/Nil
(scrRefreshScreen screen) -> True/Nil
(scrRemoveAction screen actionID) -> True/Nil
(scrRemoveItem screen count) -> item
(scrSet@ screen property value) -> True/Nil
(scrSetActionDesc screen actionID text) -> True/Nil
(scrSetActionLabel screen actionID label [key] [special]) -> True/Nil
(scrSetBackgroundImage screen imageDesc) -> True/Nil
(scrSetControlValue screen controlID value) -> True/Nil
(scrSetControlValueTranslate screen controlID textID [data]) -> True/Nil
(scrSetCounter screen counter) -> True/Nil
(scrSetData screen attrib data) -> True/Nil
(scrSetDesc screen text [text...]) -> True/Nil
(scrSetDescTranslate screen textID [data]) -> True/Nil
(scrSetDisplayText screen ID text [text...]) -> True/Nil
(scrSetInputText screen text) -> True/Nil
(scrSetListCursor screen cursor) -> True/Nil
(scrSetListFilter screen filter) -> True/Nil
RENAMED: Use (scrSet@ ...) instead.
(scrSetReturnData screen attrib data) -> True/Nil
(scrSetSessionData screen attrib data) -> True/Nil
(scrSetTabSet screen tabSet) -> True/Nil
(scrShowAction screen actionID shown) -> True/Nil
(scrShowItemUseScreen screen item) -> True/Nil
(scrShowPane screen pane) -> True/Nil
(scrShowScreen screen screen [pane] [data]) -> True/Nil
(scrShowTab screen tabID) -> True/Nil
(scrTranslate screen textID [data]) -> text or Nil
(seededRandom seed from to)
(seededRandom seed list)
(set string value) -> value
(set@ list-var index value) -> list
(set@ struct-var key value) -> struct
(set@ struct-var struct) -> merged structs
(setq variable value)
(shpCancelOrder ship [orderIndex]) -> True/Nil
(shpCancelOrders ship) -> True/Nil
(shpCanRemoveDevice ship item) -> resultCode
(shpConsumeFuel ship fuel [useType]) -> fuelLeft
(shpDamageArmor ship armorSegment damageType damage ['noSRSFlash]) -> damage done
(shpEnhanceItem ship item [mods|options]) -> True/Nil
(shpGetAISetting ship setting)
(shpGetArmor ship armorSegment) -> item struct
(shpGetArmorCount ship) -> number of armor segments
(shpGetArmorMaxHitPoints obj item|armorSegment) -> damage to armor segment
(shpGetClassName class flags) -> class name
(shpGetDirection ship) -> angle
(shpGetDockObj ship) -> dockObj
(shpGetFuelLeft ship) -> fuel left
(shpGetFuelNeeded ship item) -> items needed
(shpGetImageDesc class [options|rotationAngle]) -> imageDesc
(shpGetItemDeviceName ship item) -> device name of item (or -1)
(shpGetMaxSpeed ship) -> max speed in % of lightspeed
(shpGetOrder obj) -> order
(shpGetOrderCount obj) -> count
(shpGetOrderDesc obj [orderIndex]) -> orderDesc
(shpGetOrderTarget obj) -> obj
(shpGetShieldDamage ship) -> damage to shields
(shpGetShieldItemUNID ship) -> UNID (or Nil)
(shpGetShieldMaxHitPoints ship) -> max hp of shields
(shpInstallArmor ship item armorSegment) -> itemStruct (or Nil)
(shpInstallDevice ship item [deviceSlot]) -> itemStruct (or Nil)
(shpIsBlind ship) -> True/Nil
(shpIsFuelCompatible ship item) -> True/Nil
(shpIsRadiationImmune ship [item])
(shpOrder ship order [target] [count]) -> True/Nil
(shpOrderImmediate ship order [target] [count]) -> True/Nil
(shpRechargeShield ship [hpToRecharge]) -> shield hp
(shpRefuelFromItem ship item) -> True/Nil
(shpRemoveDevice ship item) -> item
(shpRepairItem ship item) -> True/Nil
(shpSetAISetting ship setting value)
(shpSetCommandCode ship code) -> True/Nil
(shpSetController ship controller) -> True/Nil
(shuffle list) -> shuffled list
(sin x ['degrees]) -> z
(subset list start [end]) -> list
(subset string start [end]) -> string
(sort list-of-atoms ['ascending|'descending]) -> sorted list
(sort list-of-lists ['ascending|'descending] [index to sort on]) -> sorted list
(sort list-of-structs ['ascending|'descending] [field to sort on]) -> sorted list
(sovGetDisposition sovereignID targetSovereignID) -> disposition of sovereign to target
(sovGetName sovereignID [flags]) -> name
(sovMessage sovereignID text) -> True/Nil
(sovMessageFromObj sovereignID obj text) -> True/Nil
(sovSetDisposition sovereignID targetSovereignID disposition)
(split string [characters]) -> list
(sqrt x) -> integer z
(sqrtn x) -> real z
(staAbandon obj [objSource]) -> True/Nil
(staClearFireReconEvent station)
(staClearReconned station)
(staGetDockedShips station) -> list of docked ships
(staGetImageVariant station) -> variant
(staGetSubordinates station) -> list of subordinates (e.g., guardians)
(staIsEncountered type) -> True/Nil
(staIsReconned station) -> True/Nil
(staSetActive station [True/Nil])
(staSetFireReconEvent station)
(staSetImageVariant station variant)
(staSetShowMapLabel station True/Nil)
(strBeginsWith string target [caseSensitive=Nil]) -> True|Nil
(strCapitalize string) -> string
(strCount string target [caseSensitive=Nil]) -> int
(strEndsWith string target [caseSensitive=Nil]) -> True|Nil
(strFind string target [caseSensitive=Nil]) -> pos of target in string (0-based)
(strFindAll string target [caseSensitive=Nil]) -> list of all target pos in string (0-based). If none, Nil.
(strJoin list delimiter) -> string. Does not ignore Nil.
(strReplace string target replacement [caseSensitive=Nil]) -> string
(strSplit string delimiter [caseSensitive=Nil]) -> list of strings split around delimiter.
Leaves empty strings where appropriate, including at the beginning and ends if it starts or ends with a delimiter string.
(strStrip string [characters] [caseSensitive=Nil]) -> string with characters to strip removed from either end. Strips whitespace by default.
(struct key1 value1 [ key2 value2 ...]) -> struct
(struct (key1 value1) [ (key2 value2) ...]) -> struct
(struct struct1 [struct2 ...]) -> struct
{ key1:value1 [key2:value2 ...] } -> struct
(structAppend key1 value1 [ key2 value2 ...]) -> struct
(structAppend (key1 value1) [ (key2 value2) ...]) -> struct
(structAppend struct1 [struct2 ...]) -> struct
(subset list pos [count] ['-|'empty]) -> list
(subset string pos [count] ['-|'empty]) -> string
(subst string arg1 arg2 ... argn) -> string
(subtract x1 x2 ... xn) -> z
(switch [cond1 exp1 ... condn expn] [defaultexp]) -> value
(sys@ [nodeID] property) -> value
(sysAddEncounterEvent delay target encounterID gateObj|pos)
(sysAddEncounterEventAtDist delay target encounterID distance)
(sysAddObjRecurringTimerEvent interval obj event)
(sysAddObjTimerEvent delay obj event)
(sysAddStargateTopology [nodeID] gateID destNodeID destGateID) -> True/Nil
(sysAddTypeRangeEvent type event options)
(sysAddTypeRecurringTimerEvent interval type event)
(sysAddTypeTimerEvent delay type event)
(sysAscendObject obj) -> True/Nil
(sysCalcFireSolution targetPos targetVel speed) -> angle to shoot (Nil, if no solution)
(sysCalcStdCombatStrength level) -> standard combat strength for level
(sysCalcTravelDistance speed time) -> distance in light-seconds
(sysCalcTravelTime distance speed) -> time in ticks
(sysCancelTimerEvent obj event) -> True/Nil
(sysCancelTypeTimerEvent type event) -> True/Nil
(sysCreateEffect effectID anchorObj pos [rotation] [params]) -> obj or Nil
(sysCreateEncounter unid [options]) -> True/Nil
(sysCreateFlotsam item|unid pos sovereignID) -> obj
(sysCreateHitEffect weaponUNID hitObj hitPos hitDir damageHP) -> True/Nil
(sysCreateLookup tableName orbit) -> True/Nil
(sysCreateMarker name pos sovereignID|options) -> marker
(sysCreateShip unid pos sovereignID [options|eventHandler|controller]) -> ship or list
(sysCreateShipwreck unid pos sovereignID) -> shipwreck
(sysCreateStargate unid pos gateID [destNodeID destGateID]) -> obj
(sysCreateStation unid pos [eventHandler]) -> obj
(sysCreateTerritory orbit minRadius maxRadius attributes [criteria]) -> True/Nil
(sysCreateWeaponFire weaponID objSource pos dir speed objTarget [options] [bonus%]) -> obj
(sysDescendObject objID pos) -> obj
(sysFindObject source criteria) -> list of objects
(sysFindObjectAtPos source criteria pos [destPos]) -> list of objects
(sysGetAscendedObjects) -> list of objects
(sysGetData [nodeID] attrib) -> data
(sysGetEnvironment pos) -> environmentUNID
(sysGetItemBuyPrice [nodeID] item [typeCriteria]) -> price (or Nil)
(sysGetItemFrequency [nodeID] item) -> frequencyRate
(sysGetLevel [nodeID]) -> level
(sysGetLightIntensity pos) -> intensity (0-100)
(sysGetLocations) -> list of locations
(sysGetName [nodeID]) -> name
(sysGetNavPathPoint sovereignID objFrom objTo %path) -> vector
(sysGetNextNodeTo [fromNodeID] toNodeID) -> nodeID
(sysGetNode) -> nodeID
(sysGetNodes [criteria|options]) -> list of nodeIDs
(sysGetObjectByName [source] name) -> obj
(sysGetPOV) -> obj
(sysGetRandomLocation criteria [options]) -> location or Nil
(sysGetStargateDestination [nodeID] gateID) -> (nodeID gateID)
(sysGetStargateDestinationNode [nodeID] gateID) -> nodeID
(sysGetStargateProperty [nodeID] gateID property) -> value
(sysGetStargates [nodeID]) -> list of gateIDs
(sysGetSystemType [nodeID]) -> systemUNID
(sysGetTopologyDistance fromID [toID]) -> distance (or Nil)
(sysGetTopologyDistanceToCriteria [fromID] criteria) -> distance (or Nil)
(sysGlobals) -> list of global symbols
(sysHasAttribute [nodeID] attrib) -> True/Nil
(sysHitScan source startPos endPos [options]) -> (obj hitPos) or Nil
(sysHitTest source pos [options]) -> obj or Nil
(sysIncData [nodeID] attrib increment) -> new value
(sysIsKnown [nodeID]) -> True/Nil
(sysMatches [nodeID] criteria) -> True/Nil
(sysOrbit center radius angle [eccentricity rotation]) -> orbit
(sysOrbitPos orbit [options]) -> vector
(sysPlaySound unid [sourceObj]) -> True/Nil
(sysPoolUsage) -> list of resource usage
(sysSelfTest) -> True/Nil
(sysSet@ [nodeID] property value) -> True/Nil
(sysSetData [nodeID] attrib data) -> data
(sysSetEnvironment unid shape options) -> True/Nil
(sysSetKnown [nodeID] [True/Nil]) -> True/Nil
(sysSetPOV obj|vector) -> True/Nil
(sysStartTime) -> True/Nil
(sysStopTime duration except) -> True/Nil
(sysStopTime targetList duration) -> True/Nil
(sysTicks) -> int
(sysVectorAdd vector vector) -> vector
(sysVectorAngle vector) -> angle of vector
(sysVectorAngle pos1 pos2) -> angle of pos1 relative to pos2
(sysVectorDistance vector [vector]) -> distance in light-seconds (int32)
(sysVectorDistanceExact vector [vector]) -> distance in light-seconds or speed as a fraction of c (real)
(sysVectorDivide vector scalar) -> vector
(sysVectorInPolygon vector list-of-points) -> True/Nil
(sysVectorMultiply vector scalar) -> vector
(sysVectorPixelOffset center x y) -> vector
(sysVectorPolarOffset center angle radius) -> vector
(sysVectorPolarVelocity angle speed) -> velVector
(sysVectorRandom center radius minSeparation [filter]) -> vector
(sysVectorSpeed velVector) -> % of light speed
(sysVectorSubtract vector vector) -> vector
(tan x ['degrees]) -> z
(typ@ unid property) -> value
(typAddRecurringTimerEvent unid interval event)
(typAddTimerEvent unid delay event)
(typCancelTimerEvent unid event) -> True/Nil
(typCreate unid XML) -> True/Nil
(typDynamicUNID uniqueName) -> UNID
(typeOf item) -> type
(typFind criteria) -> list of UNIDs
(typFireEvent unid event [data]) -> result of event
(typFireObjEvent unid obj event [data]) -> result of event
(typFireObjItemEvent unid obj item event [data]) -> result of event
(typGetData unid attrib) -> data
(typGetDataField unid field) -> data
(typGetImageDesc unid [options]) -> imageDesc
(typGetName unid [flags]) -> name
(typGetStaticData unid attrib) -> data
(typGetXML unid) -> xmlElement
(typHasAttribute unid attrib) -> True/Nil
(typHasEvent unid event) -> True/Nil
(typHasProperty unid property) -> propertyType|Nil
(typInc@ unid property [increment]) -> True/Nil
(typIncData unid attrib [increment]) -> new value
(typMarkImages unid) -> True/Nil
(typMatches unid criteria) -> True/Nil
(typSet@ unid property data) -> True/Nil
(typSetData unid attrib data) -> True/Nil
(typTranslate unid textID [data] [default]) -> text (or Nil)
(uiCanPlayMusic filename) -> True/Nil
(uiGetCollection) -> collection
(uiGetKeyDesc command) -> desc
(uiGetKeyName command) -> text
(uiGetMousePos) -> (x y)
(uiGetMusicCatalog) -> list of files
(uiGetMusicState) -> ('playing filename position length)
(uiIsKeyPressed key|command) -> True/Nil
(uiPlayMusic filename [pos]) -> True/Nil
(uiQueueSoundtrack soundtrackUNID [options]) -> True/Nil
(uiSetSoundtrackMode mode [soundtrackUNID]) -> True/Nil
(uiStopMusic)
(unv@ property)
(unvEntity entity) -> unid
(unvEntity unid) -> entity
(unvFindObject [nodeID] criteria) -> list of entries
(unvGetCurrentExtensionUNID) -> UNID
(unvGetElapsedGameTime [startTick] endTick format) -> result
(unvGetExtensionData scope attrib) -> data
(unvGetRealDate) -> (year month day) GMT
(unvGetTick) -> time
(unvSetAchievement id) -> True/Nil
(unvSetExtensionData scope attrib data) -> True/Nil
(unvSetObjectKnown [nodeID] criteria [True/Nil]) -> True/Nil
(unvUNID string) -> (unid 'itemtype name) or (unid 'shipclass name)
(v* scalar vec1) -> result of scalar multiplication of scalar and vec1
(v+ vec1 vec2) -> result of vector addition of vec1 and vec2
(v-> vec1 indexlist) -> get the elements of vec1 based on indexlist
(v<- vec1 indexlist datalist) -> set the elements of vec1 with datalist based on the indices in indexlist
(v= vec1 vec2) -> compare vec1 and vec2 for equality
(v^ vec1 vec2) -> result of element-wise multiplication of vec1 and vec2
(vDot vec1 vec2) -> result of vector dot product of vec1 and vec2
(vecCreate) -> empty vector
(vecSetElement ...)
(vector contentlist) -> vector form of contentlist
(vFilled scalar shapelist) -> vector filled with scalar's value
(while condition exp) -> Evaluate exp until condition is Nil
(xmlAppendSubElement xml xmlToAdd [index]) -> True/Nil
(xmlAppendText xml text [index]) -> True/Nil
(xmlCreate xml) -> xml
(xmlDeleteSubElement xml index) -> True/Nil
(xmlGetAttrib xml attrib) -> value
(xmlGetAttribList xml) -> list of attribs
(xmlGetSubElement xml tag|index) -> xml
(xmlGetSubElementCount xml) -> number of sub-elements
(xmlGetSubElementList xml [tag]) -> list of xml
(xmlGetTag xml) -> tag
(xmlGetText xml index) -> text (index should usually be 0, i.e. before the first subelement)
(xmlSetAttrib xml attrib value) -> value
(xmlSetText xml text [index]) -> True/Nil
(+ 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 all arguments are exactly equal and of the same type
Treats strings as case sensitive. Does not treat zeros, empty lists, and strings as Nil
A single argument returns True if it is Nil.
(> [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
(@ 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
(dbgApplyTimed fn args) -> Time in ns to execute fn with args (double).
Arguments are the same as (apply fn args). Resolution may vary by system.
(dbgEvalTimed expr) -> Time in ns to parse and execute expr (double).
Arguments are the same as (eval expr). Resolution may vary by system.
(dbgGet property) -> value
property:
'debugMode
'memoryUse
'showAIDebug
'showBounds
'showDamageDone
'showFacingsAngle
'showLineOfFire
'showNavPaths
'showNodeInfo
'showOrderInfo
'translateLog
(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
'showDamageDone True/Nil
'showFacingsAngle True/Nil
'showLineOfFire True/Nil
'showNavPaths True/Nil
'showNodeInfo True/Nil
'showOrderInfo True/Nil
(dbgSetPerformanceCounter counter [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "*" [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "?") -> List of counters
(dbgSetPerformanceCounter counter [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "*" [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "?") -> List of counters
(dbgSetPerformanceCounter counter [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "*" [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "?") -> List of counters
(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.
(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
(gammaScale var inStart inEnd outStart outEnd [gamma=1.0]) -> scaled value (int or real)
Scales var from range inStart to inEnd to the output scale outStart to outEnd.
Returns int if both outStart and outEnd are ints, otherwise returns a real. Gamma specifies an exponent relationship curve between input and output ranges.
At a gamma of 1.0 it is a linear curve, at 0.5 it is a square root function, at 2.0 it is a square function.
If gamma is an integer, it should be multiplied by 100: ex, gamma 1.0 becomes 100, gamma 0.5 becomes 50, gamma 2.0 becomes 200
(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
(gr [x1 x2 ... xn]) -> True if x1 > x2 > ... > xn
(help) -> this help
(help '* ['lambdas]) -> all functions
(help 'partial-string ['lambdas]) -> all functions starting with partial-string
(help 'function-name ['lambdas]) -> help on function-name
(help lambda) -> help on the provided lambda
(help) -> this help
(help '* ['lambdas]) -> all functions
(help 'partial-string ['lambdas]) -> all functions starting with partial-string
(help 'function-name ['lambdas]) -> help on function-name
(help lambda) -> help on the provided lambda
(help) -> this help
(help '* ['lambdas]) -> all functions
(help 'partial-string ['lambdas]) -> all functions starting with partial-string
(help 'function-name ['lambdas]) -> help on function-name
(help lambda) -> help on the provided lambda
(help) -> this help
(help '* ['lambdas]) -> all functions
(help 'partial-string ['lambdas]) -> all functions starting with partial-string
(help 'function-name ['lambdas]) -> help on function-name
(help lambda) -> help on the provided lambda
(hex x [fieldSize]) -> hex-string
(hex hex-string) -> value
(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
(itm@ 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
'chargeTime
'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
'missileSpeed
'multiShot
'omnidirectional
'range
'repeating
'shipCounterPerShot
'stdCost
'targetCriteria
property (armor)
'blindingImmune
'completeHP
'damage
'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
(itmSet@ 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.
(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 [docstring] exp) -> lambda function
(leq [x1 x2 ... xn]) -> True if x1 <= x2 <= ... <= xn
(link str) -> expr. Converts a string into a tlisp expression that can be evaluated with (eval ...).
(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.
(ls [x1 x2 ... xn]) -> True if x1 < x2 < ... < xn
(make 'duplicates count entry) -> list of n entries
(make 'sequence count) -> list from 1 to count
(make 'sequence start end [inc]) -> list from start to end, incrementing by inc
(make 'duplicates count entry) -> list of n entries
(make 'sequence count) -> list from 1 to count
(make 'sequence start end [inc]) -> list from start to end, incrementing by inc
(make 'duplicates count entry) -> list of n entries
(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
(msn@ 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 (accepted and not debriefed)
'isCompleted Is a completed mission (player or non-player, not necessarily debriefed)
'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
(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
(msnInc@ obj property [increment]) -> new value
(msnIncData missionObj attrib [increment]) -> new value
(msnRefreshSummary missionObj)
(msnRegisterForEvents missionObj obj|obj-list)
(msnReward missionObj [data])
(msnSet@ 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 or are of different types.
Treats strings as case sensitive. Does not treat zeros, empty lists, and strings as Nil
A single argument returns True if it is not Nil.
(!= x1 x2 ... xn) -> True if any arguments are not equal
(!=== [x1 x2 ... xn]) -> True if any arguments are not equal or are of different types.
Treats strings as case sensitive. Does not treat zeros, empty lists, and strings as Nil
A single argument returns True if it is not Nil.
(* 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 all arguments are exactly equal and of the same type
Treats strings as case sensitive. Does not treat zeros, empty lists, and strings as Nil
A single argument returns True if it is Nil.
(> [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
(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
(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
(objCanInstallItem obj item [armorSeg|deviceSlot]) -> (True/Nil resultCode resultString [itemToReplace])
(convertTo dataType value) -> result
(cos x ['degrees]) -> cosine (real)
(count list|string|struct) -> number of items or characters
(dbgApplyTimed fn args) -> Time in ns to execute fn with args (double).
(dbgBreak)
(dbgClear)
(dbgEvalTimed expr) -> Time in ns to parse and execute expr (double).
(dbgGet property) -> value
(dbgGetPerformance) -> list of performance entries
(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
(dbgSetPerformanceCounter counter [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "*" [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "?") -> List of counters
(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
(enumWhile list condition itemVar exp) -> value
(eq [x1 x2 ... xn]) -> True if all arguments are equal
(errBlock localsList [exp1 exp2 ... expn] expErr) -> value of expn or expErr if error occurs
(error msg) -> error
(eval exp) -> result
(exp x) -> e^x (real)
(filter list var boolean-exp) -> filtered list
(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)
(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
(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
(gammaScale var inStart inEnd outStart outEnd [gamma=1.0]) -> scaled value (int or real)
(gamSave [options]) -> True/Nil
(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 '* ['lambdas]) -> all functions
(help 'partial-string ['lambdas]) -> all functions starting with partial-string
(help 'function-name ['lambdas]) -> help on function-name
(help lambda) -> help on the provided lambda
(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
(itm@ item|type property) -> value
(itmCreate itemUNID count) -> item
(itmCreateByName criteria name [count]) -> item
(itmCreateRandom criteria levelDistribution) -> item
(itmEnumTypes criteria item-var exp) -> value of last expression
(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
(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
(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
(itmIsInstalled item) -> True/Nil
(itmIsKnown item|type) -> True/Nil
(itmMatches item|type criteria) -> True/Nil
(itmSet@ item property value) -> item
(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 [docstring] exp) -> lambda function
(leq [x1 x2 ... xn]) -> True if x1 <= x2 <= ... <= xn
(link str) -> expr. Converts a string into a tlisp expression that can be evaluated with (eval ...).
(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.
(ls [x1 x2 ... xn]) -> True if x1 < x2 < ... < xn
(make 'duplicates count entry) -> list of n entries
(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
(msn@ missionObj property) -> value
(msnAccept missionObj) -> True/Nil
(msnAddRecurringTimerEvent missionObj interval event [options])
(msnAddTimerEvent missionObj delay event [options])
(msnCancelTimerEvent missionObj event) -> True/Nil
(msnCanCreate unid [owner [data|options]]) -> True|Nil
(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
(msnFireEvent missionObj event [data]) -> result of event
(msnGetData missionObj attrib) -> data
(msnGetObjRefData missionObj attrib) -> obj
(msnGetStaticData missionObj attrib) -> data
(msnGetTypeData missionObj attrib) -> data
(msnInc@ obj property [increment]) -> new value
(msnIncData missionObj attrib [increment]) -> new value
(msnRefreshSummary missionObj)
(msnRegisterForEvents missionObj obj|obj-list)
(msnReward missionObj [data])
(msnSet@ obj property value) -> True/Nil
(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
(obj@ obj property) -> value
(objAccelerate obj angle thrust [ticks]) -> velVector
(objAddBuyOrder obj criteria priceAdj) -> True/Nil
(objAddConnection obj1 connectType obj2 [options]) -> connectionID
(objAddItem obj item|type [count]) -> item
(objAddOverlay obj overlayType [lifetime]) -> overlayID
(objAddOverlay obj overlayType pos rotation [lifetime]) -> overlayID
(objAddOverlay obj overlayType pos rotation lifetime [posZ]) -> overlayID
(objAddRandomItems obj table count) -> True/Nil
(objAddSellOrder obj criteria priceAdj) -> True/Nil
(objAddSubordinate obj subordinate) -> True/Nil
(objAddTradeOrder obj service criteria priceAdj) -> True/Nil
(objApplyCondition obj condition [options]) -> result
(objCalcBestTarget obj [objList]) -> targetObj (or Nil)
(objCanApplyCondition obj condition [options]) -> result
(objCanAttack obj) -> True/Nil
(objCanDestroyTarget obj target) -> True/Nil
(objCanDetectTarget obj target) -> True/Nil
(objCanEnhanceItem obj item enhancementType|item) -> result
(objCanHitTarget obj target) -> True/Nil
(objCanRemoveCondition obj condition [options]) -> result
(objChangeEquipmentStatus obj equipment command [duration] [options]) -> True/Nil
(objCharge obj [currency] amount) -> remaining balance
(objClearIdentified obj) -> True/Nil
(objClearShowAsDestination obj) -> True/Nil
(objCommunicate obj senderObj msg [obj] [data]) -> result
(objCreateReflection missile [pos] [angle]) -> reflection
(objCredit obj [currency] amount) -> new balance
(objDamage obj weaponType objSource [pos] [options]) -> result
(objDepleteShields obj) -> True/Nil
(objDestroy obj [objSource]) -> True/Nil
(objEnhanceItem obj item enhancementType|item|enhancementDesc) -> result
(objEnumItems obj criteria itemVar exp) -> value
(objFireEvent obj event [data]) -> result of event
(objFireItemEvent obj item event [data]) -> result of event
(objFireItemInvoke obj item) -> True/Nil
(objFireOverlayEvent obj overlayID event [data]) -> result of event
(objFirePowerInvoke obj power [target] ['noInvokeCheck]) -> result of event
(objFireWeapon obj weapon target [fireDelay] [checkFireDelay]) -> True/Nil
(objGateTo obj node entrypoint [effectID]) -> True/Nil
(objGetArmorCriticality obj item|armorSegment) -> criticalityType
(objGetArmorDamage obj item|armorSegment) -> damage to armor segment
(objGetArmorLevel obj item|armorSegment) -> 0-100%
(objGetArmorName obj item|armorSegment) -> name of armor (e.g., 'forward', etc.)
(objGetArmorRepairPrice obj [shipObj] armorItem hpToRepair) -> price (at which obj repairs)
(objGetArmorReplacePrice obj armorItem) -> price
(objGetArmorType obj item|armorSegment) -> type
(objGetBalance obj [currency]) -> balance
(objGetBuyPrice obj item [options]) -> price (at which obj buys item)
(objGetCargoSpaceLeft obj) -> space left in kg
(objGetCharacterData obj attrib) -> data
(objGetCombatPower obj) -> 0-100
(objGetCondition obj [condition]) -> True/Nil
(objGetDamageType obj) -> damage type
(objGetData obj attrib) -> data
(objGetDataField obj field) -> data
(objGetDetectRange obj targetObj) -> range in light-seconds
(objGetDisposition obj targetObj) -> disposition of obj towards targetObj
(objGetDistance obj destObj) -> distance in light-seconds
(objGetEquipmentStatus obj equipment) -> status
(objGetEventHandler obj) -> unid or Nil
(objGetID obj) -> objID
(objGetImageDesc obj) -> imageDesc
(objGetInstalledItemDesc obj item) -> 'installed as forward armor'
(objGetItems obj criteria) -> list of items
(objGetLevel obj) -> level
(objGetMass obj) -> mass in tons
(objGetMaxPower obj) -> power (in 1/10 MWs)
(objGetName obj [flags]) -> Name of the object
(objGetNamedItems obj name) -> list of items
(objGetNearestStargate obj) -> obj
(objGetObjByID objID) -> obj
(objGetObjRefData obj attrib) -> obj
(objGetOpenDockingPortCount obj) -> count of open docking ports
(objGetOrderGiver obj [destroyReason]) -> obj
(objGetOverlayData obj overlayID attrib) -> data
(objGetOverlayPos obj overlayID) -> vector
(objGetOverlayRotation obj overlayID) -> rotation
(objGetOverlays obj [criteria|overlayType]) -> list of overlayIDs
(objGetOverlayType obj overlayID) -> type
(objGetPlayerPriceAdj obj [data]) -> priceAdj (or Nil if no adj)
(objGetPos obj) -> vector
(objGetRefuelItemAndPrice obj objToRefuel) -> (item price)
(objGetRemoveConditionPrice obj shipObj condition) -> price (at which obj restores ship)
(objGetSellPrice obj item [options]) -> price (at which obj sells item)
(objGetShieldLevel obj) -> 0-100% (or -1 for no shields)
(objGetShipBuyPrice obj shipObj) -> price (at which obj buys ship)
(objGetShipSellPrice obj shipObj) -> price (at which obj sells ship)
(objGetShipwreckType obj) -> unid
(objGetStargateID obj) -> gateID
(objGetStaticData obj attrib) -> data
(objGetTarget obj) -> obj
(objGetType obj) -> unid
(objGetTypeData obj attrib) -> data
(objGetVel obj) -> velVector
(objHasAttribute obj attrib) -> True/Nil
(objHasItem obj item [count] [options]) -> number of items (or Nil)
(objHasTradeService obj service [options]) -> True/Nil
(objInc@ obj property [increment]) -> new value
(objInc@ obj item property [increment]) -> item
(objIncData obj attrib [increment]) -> new value
(objIncOverlayData obj overlayID attrib [increment]) -> new value
(objIncVel obj velVector) -> velVector
(objIsAngryAt obj targetObj) -> True/Nil
(objIsDeviceSlotAvailable ship) -> True/Nil
(objIsDockedAt obj stationObj) -> True/Nil
(objIsEnemy obj target) -> True/Nil
(objIsIdentified obj) -> True/Nil
(objIsKnown obj) -> True/Nil
(objIsParalyzed obj) -> True/Nil
(objIsRadioactive obj) -> True/Nil
(objIsShip obj) -> True/Nil
(objJumpTo obj pos) -> True/Nil
(objLowerShields obj) -> True/Nil
(objMatches obj source filter) -> True/Nil
(objProgramDamage obj hacker progName aiLevel code) -> True/Nil
(objRecordBuyItem buyerObj sellerObj item [currency] price) -> True/Nil
(objRegisterForEvents target obj|obj-list) -> True/Nil
(objRegisterForSystemEvents target range) -> True/Nil
(objRemove obj) -> True/Nil
(objRemoveCondition obj condition [options]) -> result
(objRemoveItem obj item [count] [options]) -> True/Nil
(objRemoveItemEnhancement obj item enhancementID) -> True/Nil
(objRemoveOverlay obj overlayID) -> True/Nil
(objRepairArmor ship item|armorSegment [hpToRepair]) -> hp repaired
(objResume obj [gateObj]) -> True/Nil
(objSendMessage obj sender text) -> True/Nil
(objSendMessageTranslate obj sender textID [data]) -> True/Nil
(objSet@ obj property value) -> True/Nil
(objSetCharacterData obj attrib data) -> True/Nil
(objSetData obj attrib data) -> True/Nil
(objSetDeviceActivationDelay obj deviceItem [delay]) -> True/Nil
(objSetEventHandler obj unid) -> True/Nil
(objSetIdentified obj) -> True/Nil
(objSetItemData obj item attrib data [count]) -> item
(objSetKnown obj) -> True/Nil
(objSetName obj name [flags]) -> True/Nil
(objSetObjRefData obj attrib obj) -> True/Nil
(objSetOverlayData obj overlayID attrib data)
(objSetOverlayEffectProperty obj overlayID property value)
(objSetOverlayPos obj overlayID pos)
(objSetOverlayRotation obj overlayID rotation)
(objSetPos obj vector [rotation])
(objSetShowAsDestination obj [options]) -> True/Nil
(objSetTradeDesc obj currency [maxCurrency replenishCurrency]) -> True/Nil
(objSetTypeData obj attrib data)
(objSetVel obj velVector)
(objSquadronComms obj receiver msgID [options]) -> Result
(objSquadronCommsMessages obj receiver) -> List of msgIDs
(objSuspend obj)
(objTranslate obj textID [data] [default]) -> text (or Nil)
(objUnregisterForEvents target obj)
(objUnregisterForSystemEvents target)
(or exp1 exp2 ... expn) -> True/Nil
(ovr@ obj overlayID property) -> value
(ovrInc@ obj overlayID property [increment]) -> new value
(ovrSet@ obj overlayID property value)
(plyChangeShip player newShip [options]) -> True/Nil
(plyCharge player [currency] charge) -> credits left
(plyComposeString player string [arg1 arg2 ... argn]) -> text
(plyCredit player [currency] credit) -> credits left
(plyDestroyed player epitaph) -> True/Nil
(plyEnableMessage player messageID True/Nil) -> True/Nil
(plyGetCredits player [currency]) -> credits left
(plyGetGenome player) -> 'humanMale | 'humanFemale
(plyGetItemStat player stat criteria|type) -> value
(plyGetKeyEventStat player stat nodeID typeCriteria) -> value
(plyGetName player) -> player's name
(plyGetRedirectMessage player) -> text or Nil
(plyGetStat player stat) -> value
(plyGetSystemStat player stat [nodeID]) -> value
(plyIncItemStat player stat item|type [inc]) -> value
(plyIncScore player scoreInc) -> score
(plyInSystemStat player stat [nodeID] [inc]) -> value
(plyIsMessageEnabled player messageID) -> True/Nil
(plyMessage player message) -> True/Nil
(plyRecordBuyItem player item [currency] totalPrice) -> True/Nil
(plyRecordSellItem player item [currency] totalPrice) -> True/Nil
(plyRedirectMessage player True/Nil) -> True/Nil
(plyUseItem player item) -> True/Nil
(pow x y) -> z
(power x y) -> z
(print [string]*) -> True
(printTo output [string]*) -> True
(quote exp) -> unevaluated exp
(random from to)
(random list)
(random) -> random number between 0 and 1
(randomGaussian low mid high) -> random number between low and high
(randomTable chance1 exp1 chance2 exp2 ... chancen expn) -> exp
(regex source pattern ['offset|'subex]) -> result
(resColorBlend rgbDest rgbSource srcOpacity) -> rgbColor
(resCreateImageDesc imageUNID x y width height) -> imageDesc
(resGetImageProperty imageDesc property) -> value
(rollChance percentChance [rolls]) -> True/Nil
(rollDice count sides [bonus]) -> value
(round ['stochastic] x) -> y
(scr@ screen property) -> value
(scrAddAction screen actionID pos label [key] [special] code) -> True/Nil
(scrAddListFilter screen filterID label filter) -> True/Nil
(scrAddMinorAction screen actionID pos label [key] [special] code) -> True/Nil
(scrAddUndockCode screen id code) -> True/Nil
(scrEnableAction screen actionID enabled) -> True/Nil
(scrExitScreen screen ['forceUndock]) -> True/Nil
(scrGetCounter screen) -> value
(scrGetData screen attrib) -> data
(scrGetDesc screen) -> text
(scrGetInputText screen) -> text
(scrGetItem screen) -> item
(scrGetList screen) -> list of entries
(scrGetListCursor screen) -> cursor
(scrGetListEntry screen) -> entry
RENAMED: Used (scr@ ...) instead.
(scrGetReturnData screen attrib) -> data
(scrGetScreen gScreen) -> screenDesc
(scrGetSessionData screen attrib) -> data
(scrIncData screen attrib [increment]) -> value
(scrIsActionEnabled screen actionID) -> True/Nil
(scrIsFirstOnInit screen) -> True/Nil
(scrRefreshScreen screen) -> True/Nil
(scrRemoveAction screen actionID) -> True/Nil
(scrRemoveItem screen count) -> item
(scrSet@ screen property value) -> True/Nil
(scrSetActionDesc screen actionID text) -> True/Nil
(scrSetActionLabel screen actionID label [key] [special]) -> True/Nil
(scrSetBackgroundImage screen imageDesc) -> True/Nil
(scrSetControlValue screen controlID value) -> True/Nil
(scrSetControlValueTranslate screen controlID textID [data]) -> True/Nil
(scrSetCounter screen counter) -> True/Nil
(scrSetData screen attrib data) -> True/Nil
(scrSetDesc screen text [text...]) -> True/Nil
(scrSetDescTranslate screen textID [data]) -> True/Nil
(scrSetDisplayText screen ID text [text...]) -> True/Nil
(scrSetInputText screen text) -> True/Nil
(scrSetListCursor screen cursor) -> True/Nil
(scrSetListFilter screen filter) -> True/Nil
RENAMED: Use (scrSet@ ...) instead.
(scrSetReturnData screen attrib data) -> True/Nil
(scrSetSessionData screen attrib data) -> True/Nil
(scrSetTabSet screen tabSet) -> True/Nil
(scrShowAction screen actionID shown) -> True/Nil
(scrShowItemUseScreen screen item) -> True/Nil
(scrShowPane screen pane) -> True/Nil
(scrShowScreen screen screen [pane] [data]) -> True/Nil
(scrShowTab screen tabID) -> True/Nil
(scrTranslate screen textID [data]) -> text or Nil
(seededRandom seed from to)
(seededRandom seed list)
(set string value) -> value
(set@ list-var index value) -> list
(set@ struct-var key value) -> struct
(set@ struct-var struct) -> merged structs
(setq variable value)
(shpCancelOrder ship [orderIndex]) -> True/Nil
(shpCancelOrders ship) -> True/Nil
(shpCanRemoveDevice ship item) -> resultCode
(shpConsumeFuel ship fuel [useType]) -> fuelLeft
(shpDamageArmor ship armorSegment damageType damage ['noSRSFlash]) -> damage done
(shpEnhanceItem ship item [mods|options]) -> True/Nil
(shpGetAISetting ship setting)
(shpGetArmor ship armorSegment) -> item struct
(shpGetArmorCount ship) -> number of armor segments
(shpGetArmorMaxHitPoints obj item|armorSegment) -> damage to armor segment
(shpGetClassName class flags) -> class name
(shpGetDirection ship) -> angle
(shpGetDockObj ship) -> dockObj
(shpGetFuelLeft ship) -> fuel left
(shpGetFuelNeeded ship item) -> items needed
(shpGetImageDesc class [options|rotationAngle]) -> imageDesc
(shpGetItemDeviceName ship item) -> device name of item (or -1)
(shpGetMaxSpeed ship) -> max speed in % of lightspeed
(shpGetOrder obj) -> order
(shpGetOrderCount obj) -> count
(shpGetOrderDesc obj [orderIndex]) -> orderDesc
(shpGetOrderTarget obj) -> obj
(shpGetShieldDamage ship) -> damage to shields
(shpGetShieldItemUNID ship) -> UNID (or Nil)
(shpGetShieldMaxHitPoints ship) -> max hp of shields
(shpInstallArmor ship item armorSegment) -> itemStruct (or Nil)
(shpInstallDevice ship item [deviceSlot]) -> itemStruct (or Nil)
(shpIsBlind ship) -> True/Nil
(shpIsFuelCompatible ship item) -> True/Nil
(shpIsRadiationImmune ship [item])
(shpOrder ship order [target] [count]) -> True/Nil
(shpOrderImmediate ship order [target] [count]) -> True/Nil
(shpRechargeShield ship [hpToRecharge]) -> shield hp
(shpRefuelFromItem ship item) -> True/Nil
(shpRemoveDevice ship item) -> item
(shpRepairItem ship item) -> True/Nil
(shpSetAISetting ship setting value)
(shpSetCommandCode ship code) -> True/Nil
(shpSetController ship controller) -> True/Nil
(shuffle list) -> shuffled list
(sin x ['degrees]) -> z
(subset list start [end]) -> list
(subset string start [end]) -> string
(sort list-of-atoms ['ascending|'descending]) -> sorted list
(sort list-of-lists ['ascending|'descending] [index to sort on]) -> sorted list
(sort list-of-structs ['ascending|'descending] [field to sort on]) -> sorted list
(sovGetDisposition sovereignID targetSovereignID) -> disposition of sovereign to target
(sovGetName sovereignID [flags]) -> name
(sovMessage sovereignID text) -> True/Nil
(sovMessageFromObj sovereignID obj text) -> True/Nil
(sovSetDisposition sovereignID targetSovereignID disposition)
(split string [characters]) -> list
(sqrt x) -> integer z
(sqrtn x) -> real z
(staAbandon obj [objSource]) -> True/Nil
(staClearFireReconEvent station)
(staClearReconned station)
(staGetDockedShips station) -> list of docked ships
(staGetImageVariant station) -> variant
(staGetSubordinates station) -> list of subordinates (e.g., guardians)
(staIsEncountered type) -> True/Nil
(staIsReconned station) -> True/Nil
(staSetActive station [True/Nil])
(staSetFireReconEvent station)
(staSetImageVariant station variant)
(staSetShowMapLabel station True/Nil)
(strBeginsWith string target [caseSensitive=Nil]) -> True|Nil
(strCapitalize string) -> string
(strCount string target [caseSensitive=Nil]) -> int
(strEndsWith string target [caseSensitive=Nil]) -> True|Nil
(strFind string target [caseSensitive=Nil]) -> pos of target in string (0-based)
(strFindAll string target [caseSensitive=Nil]) -> list of all target pos in string (0-based). If none, Nil.
(strJoin list delimiter) -> string. Does not ignore Nil.
(strReplace string target replacement [caseSensitive=Nil]) -> string
(strSplit string delimiter [caseSensitive=Nil]) -> list of strings split around delimiter.
Leaves empty strings where appropriate, including at the beginning and ends if it starts or ends with a delimiter string.
(strStrip string [characters] [caseSensitive=Nil]) -> string with characters to strip removed from either end. Strips whitespace by default.
(struct key1 value1 [ key2 value2 ...]) -> struct
(struct (key1 value1) [ (key2 value2) ...]) -> struct
(struct struct1 [struct2 ...]) -> struct
{ key1:value1 [key2:value2 ...] } -> struct
(structAppend key1 value1 [ key2 value2 ...]) -> struct
(structAppend (key1 value1) [ (key2 value2) ...]) -> struct
(structAppend struct1 [struct2 ...]) -> struct
(subset list pos [count] ['-|'empty]) -> list
(subset string pos [count] ['-|'empty]) -> string
(subst string arg1 arg2 ... argn) -> string
(subtract x1 x2 ... xn) -> z
(switch [cond1 exp1 ... condn expn] [defaultexp]) -> value
(sys@ [nodeID] property) -> value
(sysAddEncounterEvent delay target encounterID gateObj|pos)
(sysAddEncounterEventAtDist delay target encounterID distance)
(sysAddObjRecurringTimerEvent interval obj event)
(sysAddObjTimerEvent delay obj event)
(sysAddStargateTopology [nodeID] gateID destNodeID destGateID) -> True/Nil
(sysAddTypeRangeEvent type event options)
(sysAddTypeRecurringTimerEvent interval type event)
(sysAddTypeTimerEvent delay type event)
(sysAscendObject obj) -> True/Nil
(sysCalcFireSolution targetPos targetVel speed) -> angle to shoot (Nil, if no solution)
(sysCalcStdCombatStrength level) -> standard combat strength for level
(sysCalcTravelDistance speed time) -> distance in light-seconds
(sysCalcTravelTime distance speed) -> time in ticks
(sysCancelTimerEvent obj event) -> True/Nil
(sysCancelTypeTimerEvent type event) -> True/Nil
(sysCreateEffect effectID anchorObj pos [rotation] [params]) -> obj or Nil
(sysCreateEncounter unid [options]) -> True/Nil
(sysCreateFlotsam item|unid pos sovereignID) -> obj
(sysCreateHitEffect weaponUNID hitObj hitPos hitDir damageHP) -> True/Nil
(sysCreateLookup tableName orbit) -> True/Nil
(sysCreateMarker name pos sovereignID|options) -> marker
(sysCreateShip unid pos sovereignID [options|eventHandler|controller]) -> ship or list
(sysCreateShipwreck unid pos sovereignID) -> shipwreck
(sysCreateStargate unid pos gateID [destNodeID destGateID]) -> obj
(sysCreateStation unid pos [eventHandler]) -> obj
(sysCreateTerritory orbit minRadius maxRadius attributes [criteria]) -> True/Nil
(sysCreateWeaponFire weaponID objSource pos dir speed objTarget [options] [bonus%]) -> obj
(sysDescendObject objID pos) -> obj
(sysFindObject source criteria) -> list of objects
(sysFindObjectAtPos source criteria pos [destPos]) -> list of objects
(sysGetAscendedObjects) -> list of objects
(sysGetData [nodeID] attrib) -> data
(sysGetEnvironment pos) -> environmentUNID
(sysGetItemBuyPrice [nodeID] item [typeCriteria]) -> price (or Nil)
(sysGetItemFrequency [nodeID] item) -> frequencyRate
(sysGetLevel [nodeID]) -> level
(sysGetLightIntensity pos) -> intensity (0-100)
(sysGetLocations) -> list of locations
(sysGetName [nodeID]) -> name
(sysGetNavPathPoint sovereignID objFrom objTo %path) -> vector
(sysGetNextNodeTo [fromNodeID] toNodeID) -> nodeID
(sysGetNode) -> nodeID
(sysGetNodes [criteria|options]) -> list of nodeIDs
(sysGetObjectByName [source] name) -> obj
(sysGetPOV) -> obj
(sysGetRandomLocation criteria [options]) -> location or Nil
(sysGetStargateDestination [nodeID] gateID) -> (nodeID gateID)
(sysGetStargateDestinationNode [nodeID] gateID) -> nodeID
(sysGetStargateProperty [nodeID] gateID property) -> value
(sysGetStargates [nodeID]) -> list of gateIDs
(sysGetSystemType [nodeID]) -> systemUNID
(sysGetTopologyDistance fromID [toID]) -> distance (or Nil)
(sysGetTopologyDistanceToCriteria [fromID] criteria) -> distance (or Nil)
(sysGlobals) -> list of global symbols
(sysHasAttribute [nodeID] attrib) -> True/Nil
(sysHitScan source startPos endPos [options]) -> (obj hitPos) or Nil
(sysHitTest source pos [options]) -> obj or Nil
(sysIncData [nodeID] attrib increment) -> new value
(sysIsKnown [nodeID]) -> True/Nil
(sysMatches [nodeID] criteria) -> True/Nil
(sysOrbit center radius angle [eccentricity rotation]) -> orbit
(sysOrbitPos orbit [options]) -> vector
(sysPlaySound unid [sourceObj]) -> True/Nil
(sysPoolUsage) -> list of resource usage
(sysSelfTest) -> True/Nil
(sysSet@ [nodeID] property value) -> True/Nil
(sysSetData [nodeID] attrib data) -> data
(sysSetEnvironment unid shape options) -> True/Nil
(sysSetKnown [nodeID] [True/Nil]) -> True/Nil
(sysSetPOV obj|vector) -> True/Nil
(sysStartTime) -> True/Nil
(sysStopTime duration except) -> True/Nil
(sysStopTime targetList duration) -> True/Nil
(sysTicks) -> int
(sysVectorAdd vector vector) -> vector
(sysVectorAngle vector) -> angle of vector
(sysVectorAngle pos1 pos2) -> angle of pos1 relative to pos2
(sysVectorDistance vector [vector]) -> distance in light-seconds (int32)
(sysVectorDistanceExact vector [vector]) -> distance in light-seconds or speed as a fraction of c (real)
(sysVectorDivide vector scalar) -> vector
(sysVectorInPolygon vector list-of-points) -> True/Nil
(sysVectorMultiply vector scalar) -> vector
(sysVectorPixelOffset center x y) -> vector
(sysVectorPolarOffset center angle radius) -> vector
(sysVectorPolarVelocity angle speed) -> velVector
(sysVectorRandom center radius minSeparation [filter]) -> vector
(sysVectorSpeed velVector) -> % of light speed
(sysVectorSubtract vector vector) -> vector
(tan x ['degrees]) -> z
(typ@ unid property) -> value
(typAddRecurringTimerEvent unid interval event)
(typAddTimerEvent unid delay event)
(typCancelTimerEvent unid event) -> True/Nil
(typCreate unid XML) -> True/Nil
(typDynamicUNID uniqueName) -> UNID
(typeOf item) -> type
(typFind criteria) -> list of UNIDs
(typFireEvent unid event [data]) -> result of event
(typFireObjEvent unid obj event [data]) -> result of event
(typFireObjItemEvent unid obj item event [data]) -> result of event
(typGetData unid attrib) -> data
(typGetDataField unid field) -> data
(typGetImageDesc unid [options]) -> imageDesc
(typGetName unid [flags]) -> name
(typGetStaticData unid attrib) -> data
(typGetXML unid) -> xmlElement
(typHasAttribute unid attrib) -> True/Nil
(typHasEvent unid event) -> True/Nil
(typHasProperty unid property) -> propertyType|Nil
(typInc@ unid property [increment]) -> True/Nil
(typIncData unid attrib [increment]) -> new value
(typMarkImages unid) -> True/Nil
(typMatches unid criteria) -> True/Nil
(typSet@ unid property data) -> True/Nil
(typSetData unid attrib data) -> True/Nil
(typTranslate unid textID [data] [default]) -> text (or Nil)
(uiCanPlayMusic filename) -> True/Nil
(uiGetCollection) -> collection
(uiGetKeyDesc command) -> desc
(uiGetKeyName command) -> text
(uiGetMousePos) -> (x y)
(uiGetMusicCatalog) -> list of files
(uiGetMusicState) -> ('playing filename position length)
(uiIsKeyPressed key|command) -> True/Nil
(uiPlayMusic filename [pos]) -> True/Nil
(uiQueueSoundtrack soundtrackUNID [options]) -> True/Nil
(uiSetSoundtrackMode mode [soundtrackUNID]) -> True/Nil
(uiStopMusic)
(unv@ property)
(unvEntity entity) -> unid
(unvEntity unid) -> entity
(unvFindObject [nodeID] criteria) -> list of entries
(unvGetCurrentExtensionUNID) -> UNID
(unvGetElapsedGameTime [startTick] endTick format) -> result
(unvGetExtensionData scope attrib) -> data
(unvGetRealDate) -> (year month day) GMT
(unvGetTick) -> time
(unvSetAchievement id) -> True/Nil
(unvSetExtensionData scope attrib data) -> True/Nil
(unvSetObjectKnown [nodeID] criteria [True/Nil]) -> True/Nil
(unvUNID string) -> (unid 'itemtype name) or (unid 'shipclass name)
(v* scalar vec1) -> result of scalar multiplication of scalar and vec1
(v+ vec1 vec2) -> result of vector addition of vec1 and vec2
(v-> vec1 indexlist) -> get the elements of vec1 based on indexlist
(v<- vec1 indexlist datalist) -> set the elements of vec1 with datalist based on the indices in indexlist
(v= vec1 vec2) -> compare vec1 and vec2 for equality
(v^ vec1 vec2) -> result of element-wise multiplication of vec1 and vec2
(vDot vec1 vec2) -> result of vector dot product of vec1 and vec2
(vecCreate) -> empty vector
(vecSetElement ...)
(vector contentlist) -> vector form of contentlist
(vFilled scalar shapelist) -> vector filled with scalar's value
(while condition exp) -> Evaluate exp until condition is Nil
(xmlAppendSubElement xml xmlToAdd [index]) -> True/Nil
(xmlAppendText xml text [index]) -> True/Nil
(xmlCreate xml) -> xml
(xmlDeleteSubElement xml index) -> True/Nil
(xmlGetAttrib xml attrib) -> value
(xmlGetAttribList xml) -> list of attribs
(xmlGetSubElement xml tag|index) -> xml
(xmlGetSubElementCount xml) -> number of sub-elements
(xmlGetSubElementList xml [tag]) -> list of xml
(xmlGetTag xml) -> tag
(xmlGetText xml index) -> text (index should usually be 0, i.e. before the first subelement)
(xmlSetAttrib xml attrib value) -> value
(xmlSetText xml text [index]) -> True/Nil
(+ 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 all arguments are exactly equal and of the same type
Treats strings as case sensitive. Does not treat zeros, empty lists, and strings as Nil
A single argument returns True if it is Nil.
(> [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
(@ 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
(dbgApplyTimed fn args) -> Time in ns to execute fn with args (double).
Arguments are the same as (apply fn args). Resolution may vary by system.
(dbgEvalTimed expr) -> Time in ns to parse and execute expr (double).
Arguments are the same as (eval expr). Resolution may vary by system.
(dbgGet property) -> value
property:
'debugMode
'memoryUse
'showAIDebug
'showBounds
'showDamageDone
'showFacingsAngle
'showLineOfFire
'showNavPaths
'showNodeInfo
'showOrderInfo
'translateLog
(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
'showDamageDone True/Nil
'showFacingsAngle True/Nil
'showLineOfFire True/Nil
'showNavPaths True/Nil
'showNodeInfo True/Nil
'showOrderInfo True/Nil
(dbgSetPerformanceCounter counter [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "*" [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "?") -> List of counters
(dbgSetPerformanceCounter counter [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "*" [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "?") -> List of counters
(dbgSetPerformanceCounter counter [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "*" [True|Nil]) -> True/Nil
(dbgSetPerformanceCounter "?") -> List of counters
(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.
(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
(gammaScale var inStart inEnd outStart outEnd [gamma=1.0]) -> scaled value (int or real)
Scales var from range inStart to inEnd to the output scale outStart to outEnd.
Returns int if both outStart and outEnd are ints, otherwise returns a real. Gamma specifies an exponent relationship curve between input and output ranges.
At a gamma of 1.0 it is a linear curve, at 0.5 it is a square root function, at 2.0 it is a square function.
If gamma is an integer, it should be multiplied by 100: ex, gamma 1.0 becomes 100, gamma 0.5 becomes 50, gamma 2.0 becomes 200
(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
(gr [x1 x2 ... xn]) -> True if x1 > x2 > ... > xn
(help) -> this help
(help '* ['lambdas]) -> all functions
(help 'partial-string ['lambdas]) -> all functions starting with partial-string
(help 'function-name ['lambdas]) -> help on function-name
(help lambda) -> help on the provided lambda
(help) -> this help
(help '* ['lambdas]) -> all functions
(help 'partial-string ['lambdas]) -> all functions starting with partial-string
(help 'function-name ['lambdas]) -> help on function-name
(help lambda) -> help on the provided lambda
(help) -> this help
(help '* ['lambdas]) -> all functions
(help 'partial-string ['lambdas]) -> all functions starting with partial-string
(help 'function-name ['lambdas]) -> help on function-name
(help lambda) -> help on the provided lambda
(help) -> this help
(help '* ['lambdas]) -> all functions
(help 'partial-string ['lambdas]) -> all functions starting with partial-string
(help 'function-name ['lambdas]) -> help on function-name
(help lambda) -> help on the provided lambda
(hex x [fieldSize]) -> hex-string
(hex hex-string) -> value
(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
(itm@ 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
'chargeTime
'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
'missileSpeed
'multiShot
'omnidirectional
'range
'repeating
'shipCounterPerShot
'stdCost
'targetCriteria
property (armor)
'blindingImmune
'completeHP
'damage
'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
(itmSet@ 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.
(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 [docstring] exp) -> lambda function
(leq [x1 x2 ... xn]) -> True if x1 <= x2 <= ... <= xn
(link str) -> expr. Converts a string into a tlisp expression that can be evaluated with (eval ...).
(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.
(ls [x1 x2 ... xn]) -> True if x1 < x2 < ... < xn
(make 'duplicates count entry) -> list of n entries
(make 'sequence count) -> list from 1 to count
(make 'sequence start end [inc]) -> list from start to end, incrementing by inc
(make 'duplicates count entry) -> list of n entries
(make 'sequence count) -> list from 1 to count
(make 'sequence start end [inc]) -> list from start to end, incrementing by inc
(make 'duplicates count entry) -> list of n entries
(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
(msn@ 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 (accepted and not debriefed)
'isCompleted Is a completed mission (player or non-player, not necessarily debriefed)
'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
(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
(msnInc@ obj property [increment]) -> new value
(msnIncData missionObj attrib [increment]) -> new value
(msnRefreshSummary missionObj)
(msnRegisterForEvents missionObj obj|obj-list)
(msnReward missionObj [data])
(msnSet@ 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