Norbyte / ositools

Advanced scripting and mod support for Divinity Original Sin 2
MIT License
376 stars 30 forks source link

[Bug]: syscalls/sysqueries do not work from lua #77

Open PinewoodPip opened 2 years ago

PinewoodPip commented 2 years ago

Operating System

Extender Version

v56 (untested on v55)

Game Version

v3.6.117.3755

Bug Summary

The syscall and sysquery osiris calls/queries do not work in lua:

No function named 'SysCompleteGoal' exists that can be called with 1 parameters.

Links

No response

LaughingLeader commented 2 years ago

These haven't ever been supported in Lua (since they're different than regular calls/queries under the hood), but a workaround has been to define a proc or query that calls the related Sys function and use that in Lua:

PROC
LeaderLib_CompleteGoal((STRING)_GoalTitle)
THEN
SysCompleteGoal(_GoalTitle);