WDL Scripting Changes

From Nomad DB

Watch Dogs Legion ScriptHook uses the same framework as WD2 & MDE ScriptHook. However, there are notable Lua changes compared to their old counterparts, which are documented in 1.0 section. Additionally, this page documents all Lua scripting changes throughout ScriptHook releases.

2.0.0

ImGui

Map Editor

Character Creator

1.1.0

Scripts

Two new Script events were added:

Rendering

Lua Functions

Entity

1.0.0

Scripts

  • manifest.json: Keybinds from Scripts can now be modified in the StartupMenu, as long as they have a Text configured. (Documented here)
  • Config Values: It is now possible to store and load persistent data (e.g. for configuration). For example, the Trainer stores the noclip & freecam speeds using this method. (ScriptHook: Script Config).

UI

  • SimpleMenu: Updated design for Checkboxes
  • SimpleMenu: Added Text & List entry types (Documented here)
  • UI uses a new configuration system, which allows for fully configurable design using JSON files. These JSON files are located in data/ui and once modified, the UI style will update instantly.

Rendering

This feature isn't exactly new, but hasn't been used in past ScriptHook versions.

Lua Functions

Entity

Entity functions from WD2 were also ported to Legion:

Related Pages