(add editors section) |
m (move section for datatypes) |
||
Line 4: | Line 4: | ||
==Editors== |
==Editors== |
||
Both [[Notepad++]] and [[Script Studio]] are great editors for Witcher Script. |
Both [[Notepad++]] and [[Script Studio]] are great editors for Witcher Script. |
||
+ | |||
⚫ | |||
⚫ | |||
==Keywords== |
==Keywords== |
||
Line 64: | Line 67: | ||
*delete |
*delete |
||
</div> |
</div> |
||
− | |||
⚫ | |||
⚫ | |||
[[Category:Witcher 3 Modding]] __NOEDITSECTION__ |
[[Category:Witcher 3 Modding]] __NOEDITSECTION__ |
Revision as of 02:25, 7 May 2016
Expansion required
This article is too short to provide more than rudimentary information about the subject. You can help Witcher Wiki by expanding it.
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. Witcher Script is a proprietary language, though it shares many features with other programming languages (such as classes, functions, c-style control flow, inheritance, etc.).
Editors
Both Notepad++ and Script Studio are great editors for Witcher Script.
Native Datatypes
Witcher Script has several native datatypes, documented on this page.
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
- abstract
- statemachine
- default
- editable
- const
- import
- final
- timer
- exec
- saved
- in
- out
- entry
Memory Management
- new
- delete