bg3_se_eval
Run Lua code inside a live Baldur's Gate 3 session via Script Extender and get printed output plus JSON return value for testing mod logic, UI, and game scripts.
Instructions
Run Lua inside the RUNNING game via Script Extender and return its printed output plus the return value (JSON). context: 'server' (game logic, Osi.*, Ext.Stats) or 'client' (UI/visuals). delay: seconds to wait first (e.g. for a cast or boost to resolve). The test harness, once staged, is available as the global BG3T. This executes code in the user's live game session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| delay | No | ||
| context | No | server | |
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |