User Tools

Site Tools


script:language

Doomsday Script language

Built-ins

Built-in types

  • Number
  • Text
  • Time
  • Array
  • Dictionary
  • Function
  • Record

Built-in constants

  • True
  • False
  • None
  • Pi

Built-in functions

Function Description
deserialize reconstruct data from an array of bytes
dictkeys returns the keys of a dictionary as an array
dictvalues returns the values of a dictionary as an array
dir returns the variable names of a namespace as an array
eval parses and executes argument as a script, returns result
File returns a Core.File object
floor rounds a number down to an integer
globals returns the global namespace as a record
len determines the length/size of the argument
locals returns the local namespace as a record
members returns the members of a record as a dictionary
Number converts argument to a number value
Record duplicates a record or creates an empty one
serialize serializes data into an array of bytes
subrecords returns the subrecords of a record as a dictionary
Text converts argument to a text string
Time converts argument to a Time
timedelta calculates difference between two Times (as seconds)
typeof returns type of a value as a text string

Modules

The Doomsday Script Standard Library consists of a collection of native built-in modules and script modules. Applications also provide a number of built-in modules for scripts.

App
application core
Audio
audio subsystem
clientconfig
client application configuration variables (imported by Config)
Config
configuration variables (special persistent namespace)
Console
console variables
Core
built-in classes and core language functionality
Defs
definitions read from DED files
DisplayMode
information about display modes
Game
bindings for the game plugin
gui
routines related to the graphical user interface (stdlib.gui)
Input
input subsystem
Math
math routines
recutil
routines for manipulating records (stdlib)
Render
graphics and rendering
SavedSession
routines for manipulating savegames
Version
version information
World
game world
script/language.txt · Last modified: 2019-12-15 16:08 by skyjake