Game Development Community

TorqueScript Keywords and Functions List?

by Wysardry · in Torque Game Engine · 07/15/2004 (12:51 pm) · 2 replies

I've been working on creating a language definition file for Crimson Editor so that it will automatically highlight valid keywords and functions in TorqueScript files.

I've used several sources to find these out, and would appreciate it if those more experienced than myself could check the following list and let me know if any are missing:-

General
datablock
function
new
package
parent

Program Flow
break
case
continue
default
do
else
for
if
return
switch
switch$
or
while

Predefined Identifiers/Constants
false
true

String Operators
@
NL
TAB
SPC

Datablocks
AudioDescription
AudioEnvironment
AudioProfile
AudioSampleEnvironment
CameraData
DebrisData
DecalData
ExplosionData
FlyingVehicleData
GameBaseData
HoverVehicleData
ItemData
LightningData
MisssionMarkerData
ParticleData
ParticleEmitterData
ParticleEmitterNodeData
PlayerData
PrecipitationData
ProjectileData
ShapeBaseData
ShapeBaseImageData
SimDataBlock
SplashData
StaticShapeData
TSShapeConstructor
TriggerData
VehicleData
WheeledVehicleData
WheeledVehicleSpring
WheeledVehicleTire

Continued in next post...

#1
07/15/2004 (12:53 pm)
Standard Functions
activateDirectInput
activateKeyboard
activatePackage
AddCardProfile
addMaterialMapping
AddOSCardProfile
AddTaggedString
aiAddPlayer
AiConnect
alGetString
alListener3f
AllowConnections
alxCreateSource
alxGetChannelVolume
alxGetListener3f
alxGetListenerf
alxGetListeneri
alxGetSource3f
alxGetSourcef
alxGetSourcei
alxIsPlaying
alxListener
alxPlay
alxSetChannelVolume
alxSource3f
alxSourcef
alxSourcei
alxStop
alxStopAll
Backtrace
BuildTaggedString
calcExplosionCoverage
Call
Cancel
CancelServerQuery
ClearTextureHolds
CollapseEscape
CommandToClient
CommandToServer
Compile
Connect
ContainerBoxEmpty
ContainerFindFirst
ContainerFindNext
ContainerRayCast
ContainerSearchCurrDist
ContainerSearchCurrRadiusDist
ContainerSearchNext
CreateCanvas
DbgSetParameters
DeactivateDirectInput
DeactivateKeyboard
DeactivatePackage
Debug
Debug_debugbreak
Debug_testx86unixmutex
DecreaseNPatch
DecreaseNPatch
DeleteDataBlocks
DeleteVariables
Detag
DisableMouse
DnetSetLogging
DumpConsoleClasses
DumpMemSnapshot
DumpNetStringTable
DumpResourceStats
DumpTextureStats
Echo
EchoInputState
EnableMouse
EnableWinConsole
Error
Exec
ExpandEscape
ExpandFilename
Export
FileBase
FileExt
FileName
FilePath
FindFirstFile
FindNextFile
FirstWord
FlushTextureCache
FreeMemoryDump
GetBoxCenter
GetBuildString
GetCompileTimeString
GetControlObjectAltitude
GetControlObjectSpeed
GetDesktopResolution
GetDisplayDeviceList
GetField
GetFieldCount
GetFields
GetFileCount
GetFileCRC
GetJoystickAxes
GetMaxFrameAllocation
GetModPaths
GetRandom
GetRandomSeed
GetRealTime
GetRecord
GetRecordCount
GetRecords
GetResolution
GetResolutionList
GetServerCount
GetSimTime
GetSubStr
GetTag
GetTaggedString
GetTerrainHeight
GetVersionNumber
GetVersionString
GetVideoDriverInfo
GetWord
GetWordCount
GetWords
GLEnableLogging
GLEnableMetrics
GLEnableOutline
GotoWebPage
IncreaseFSAA
IncreaseNPatch
InitContainerRadiusSearch
InputLog
IsDemoRecording
IsDeviceFullScreenOnly
IsEventPending
IsFile
IsFullScreen
IsJoystickDetected
isKoreanBuild
IsObject
IsPackage
IsPointInside
IsWriteableFileName
LaunchDedicatedServer
LightScene
localConnect
lockMouse
ltrim
mAbs
mAcos
makeTestTerrain
mAsin
mAtan
MathInit
MatrixCreate
MatrixCreateFromEuler
MatrixMulPoint
MatrixMultiply
MatrixMulVector
mCeil
mCos
mDegToRad
mFloatLength
mFloor
mLog
mPow
mRadToDeg
msg
mSin
mSolveCubic
mSolveQuadratic
mSolveQuartic
mSqrt
mTan
nameToID
nextResolution
nextToken
OpenALInitDriver
OpenALRegisterExtensions
OpenALShutdownDriver
PanoramaScreenShot
pathOnMissionLoadDone
PermDisableMouse
PlayDemo
PlayJournal
PrevResolution
ProfilerDump
ProfilerDumpToFile
ProfilerEnable
ProfilerMarkerEnable
PurgeResources
QueryMasterServer
Quit
rebuildModPaths
RedbookClose
RedbookGetDeviceCount
RedbookGetDeviceName
RedbookGetLastError
RedbookGetTrackCount
RedbookGetVolume
RedbookOpen
RedbookPlay
RedbookSetVolume
RedbookStop
RemoveField
RemoveRecord
RemoveTaggedString
RemoveWord
ResetLighting
RestWords
Rtrim
SaveJournal
Schedule
ScreenShot
SetDefaultFov
SetDisplayDevice
SetEchoFileLoads
SetField
SetFov
SetFSAA
SetInteriorFocusedDebug
SetInteriorRenderMode
SetLogMode
SetModPaths
SetNetPort
SetNPatch
SetOpenGLAnisotropy
SetOpenGLInteriorMipReduction
SetOpenGLMipReduction
SetOpenGLSkyMipReduction
SetOpenGLTextureCompressionHint
SetPowerAudioProfiles
SetRandomSeed
SetRecord
SetRes
SetResolution
SetScreenMode
SetServerInfo
SetShadowDetailLevel
SetVerticalSync
SetWord
SetZoomSpeed

Continued in next post...
#2
07/15/2004 (12:53 pm)
SnapToggle
StartHeartbeat
StartRecord
StopHeartbeat
StopRecord
StopServerQuery
Strchr
Strcmp
Stricmp
StripChars
StripMLControlChars
StripTrailingSpaces
Strlen
Strlwr
Strpos
Strreplace
Strstr
StrToPlayerName
Strupr
SwitchBitDepth
TelnetSetParameters
ToggleFullScreen
ToggleInputState
ToggleNPatch
Trace
Trim
ValidateMemory
VectorAdd
VectorCross
VectorDist
VectorDot
VectorLen
VectorNormalize
VectorOrthoBasis
VectorScale
VectorSub
VideoSetGammaCorrection
Warn

"Show" Mod Functions
showDeleteThread
showNewThread
showPlay
showSelectSequence
showSequenceLoad
showSetCamera
showSetDetailSlider
showSetKeyboard
showSetLightDirection
showSetPos
showSetScale
showShapeLoad
showStop
showToggleRoot
showToggleStick
showTurnLeft
showTurnRight
showUpdateThreadControl