Witcher Script (.ws) is the primary scripting language for The Witcher 3: Wild Hunt. A very large chunk of the game's logic is written in Witcher Script, which is compiled on game startup. Mods can override scripts and thus can drastically change game behavior.
Keywords
Access Limitations
- private
- protected
- public
Control Flow
- if
- else
- for
- switch
- case
- while
- return
- break
- continue
Inheritance
- extends
- parent
- virtual_parent
- this
- super
Boolean
- true
- false
Nullability
- NULL
Declarations
- var
- enum
- struct
- function
- event
- class
Declaration Modifiers
- statemachine
- default
- editable
- const
- import
- final
- timer
- exec
- saved
- in
- out
- entry
Native Datatypes
- int
- bool
- name
- float
- string
- hint
- Vector
- Uint64
- array
Memory Management
- new
- delete