The current engine data is out of sync with game data while we wait for the next engine update. Meanwhile, here's a copy paste fix for your problem.
**Updated Story_header.div for compiling story until next Engine update comes out!**
For anyone having trouble getting mods with Origins dependencies to build, here's the new story_header.div pulled from the Patch5.pak.
You'll have to replace your own with this and avoid clicking "Generate Definitions".
New stuff:
```
call TeleportToRandomPosition((CHARACTERGUID)_Character, (REAL)_MaxRange, (STRING)_Event)
call CharacterSetCustomBloodSurface((CHARACTERGUID)_Character, (STRING)_SurfaceType)
event CharacterUsedLadder((CHARACTERGUID)_Character)
query IsSwitch([out](INTEGER)_Bool)```
https://cdn.discordapp.com/attachments/366250677770518538/619348245663055892/story_header.divReplace the existing story_header.div located at:
`\DefEd\Data\Mods\YourMod\Story\RawFiles`
There's lots of other useful information too in #Modding-resources in the
Larian Studios discord and you can chat with the modders there as well =)