This is a Developer Tool: for testing Papyrus scripts!
- Install Bind (it's an SKSE .dll compatible with SE/AE/GOG/VR)
- Create a Papyrus script
- Add a
{!BIND}comment to the script (see examples below)scriptName MyMCM extends Quest {!BIND} event OnInit() Debug.MessageBox("This is fantastic!") ; <--- automatically runs :) endEvent
- Run the game!
Each of your scripts will automatically be bound to a game object.
e.g. theevent OnInit()of each script will run
At this time, {!BIND} is only intended for developers.
Scripts are loaded every time the game is run.
There is no concept of "saves" at this time.
We might make
{!BIND}production-ready for distribution with mods in the future.
If your script comment is simply {!BIND} with no arguments:
; This will bind to the Player
; because it "extends Actor"
scriptName MyScript extends Actor
{!BIND}; This will generate a random quest and bind to it
; because it "extends Quest"
scriptName MyScript extends Quest
{!BIND}; This will generate a random object and bind to it
; because it "extends ObjectReference"
scriptName MyScript extends ObjectReference
{!BIND}; This will bind to the game reference of the "Hod" NPC in Riverwood
; because 0x1348A is the Form ID of this reference
scriptName MyScript extends Actor
{!BIND 0x1348A}Note: most Editor ID lookups only work if you (and your users) install:
; This will bind to the game reference of the "Hod" NPC in Riverwood
; because "HodRef" is an Editor ID matching the NPC
scriptName MyScript extends Actor
{!BIND HodRef}; This will generate a new quest and give it the Editor ID "MyCoolQuest"
; and bind to it.
scriptName MyScript extends Quest
{!BIND $Quest(MyCoolQuest)}Note: generated objects for ObjectReference scripts are spawned in the
WEMerchantChestsCELL.
If you don't specify a type of$Object, then aDwarvenForkis spawned.
; This will bind to a reference to a generated Sweet Roll
; because 0x64B3D is the Form ID of a Sweet Roll
scriptName MyScript extends ObjectReference
{!BIND $Object(0x64B3D)}; This will bind to a reference to a generated Sweet Roll
; because 0x64B3D is the Form ID of a Sweet Roll
scriptName MyScript extends ObjectReference
{!BIND $Object(FoodSweetRoll)}A single script can bind to an unlimited number of objects.
; This will bind `MyScript` to the three specified NPCs in Riverwood
scriptName MyScript extends Actor
{
!BIND HodRef
!BIND SvenRef
!BIND HildeRef
}; This will bind `MyScript` to the three specified object references
; You could use Form IDs of any object in the game
scriptName MyScript extends ObjectReference
{
!BIND 0x123
!BIND 0x456
!BIND 0x789
}; This will bind `MyScript` to the three specified Quests
; MQ101 is Unbound
; MQ102 is Before the Storm
; MQ103 is Bleak Falls Barrow
scriptName MyScript extends Quest
{
!BIND MQ101
!BIND MQ102
!BIND MQ103
}; This will bind `MyScript` to the the player and three specified NPCs in Riverwood using some of the supported binding options
scriptName MyScript extends Actor
{
!BIND SvenRef|$Player|0x1348A|HildeRef
}ℹ ️ If you run into any problems, check the
SkyrimScripting.Bind.login your
My Games\Skyrim Special Edition\SKSE\folder.
