Script Editor has an Output pane you can send text to using "Output(<string>)"

https://docs.larian.game/Script_editor