From Divinity Engine Wiki
- call ObjectSetFlag((GUIDSTRING)_Target, (STRING)_Flag, (INTEGER)_DialogInstance)
Sets the (character/item) flag _Flag on _Target. The _DialogInstance parameter can be examined when catching the corresponding ObjectFlagSet event, but is otherwise unused.
- There is an overload in the Shared mod without the last parameter, which passes 0.
- When an object flag is set or cleared in a dialog on a character, it is only set on the current shapeshift form of the character. This means that if the player afterwards uses the Mask of the Shapeshifter to shapeshift to a different form (or removes the mask while they were wearing it during the dialog), this flag's state will revert to whatever state it had when the player last had that form. However, the Osiris APIs always work on all shapeshift forms simultaneously. This means that this API will set the flag for all shapeshift forms, including "not shapeshifted".