Skip to content

v2 - {!BIND}

Choose a tag to compare

@mrowrpurr mrowrpurr released this 01 Jan 07:55
· 12 commits to main since this release

v2

v2 has the same features as v1 except you no longer need to create a Scripts\Bindings\ folder.

Simply annotate your scripts by including !BIND commands into the script's top-level comment:

scriptName BindToSomeActors extends Actor
{
   !BIND HodRef
   !BIND SvenRef
   !BIND HildeRef 
}
scriptName BindToThePlayer extends Actor
{!BIND}
scriptName BindToNewQuest extends Quest
{!BIND $Quest(CoolEditorID)}

v1 Features (included)

The goal for v1 is to be as minimal as possible:

  • Bindings are defined in Scripts\Bindings\
  • Each file should contain 1 line per desired "binding" (attach script to something)
  • Support for binding to objects by Form ID
    NameOfScript 0x14
    
  • Support for binding to objects by Editor ID
    NameOfScript dlc1serana
    
  • Support for binding to the Player (as an Actor Form, not a ReferenceAlias)
    NameOfScript $Player
    
  • Support for binding to an anonymous/generated Quest
    NameOfScript $Quest
    
  • Support for binding to an anonymous/generated Quest with a provided editor ID
    NameOfScript $Quest(MyCoolQuest)
    
  • Support for binding to an anonymous/generated ObjectReference
    NameOfScript $Object
    

    Objects are ALWAYS placed in the WEMerchantChests cell. This is not configurable.

  • Support for binding to a generated ObjectReference of a specified base Form ID
    NameOfScript $Object(0x7)
    
  • Support for binding to a generated ObjectReference of a specified base Editor ID
    NameOfScript $Object(FoodSweetroll)
    
  • Support for determining what to bind to automatically based on script extends
    NameOfScript
    
    scriptName NameOfScript extends Quest ; Anonymous Quest
    scriptName NameOfScript extends Actor ; Player
    scriptName NameOfScript extends ObjectReference ; Anonymous Object
    scriptName NameOfScript extends CustomType ; CustomType parent(s) checked
  • Nothing is configurable