Difference between revisions of "Form Script"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>ShadeMe
(Add missing F4SE member functions)
imported>ShadeMe
Line 34: Line 34:


== F4SE Member Functions ==
== F4SE Member Functions ==
*string Function [[GetName - Form|GetName]]()
**Returns this form's name as a string.
*string Function [[GetDescription - Form|GetDescription]]()
*string Function [[GetDescription - Form|GetDescription]]()
**Returns this form's description as a string.
**Returns this form's description as a string.
Line 57: Line 54:
*string Function [[GetMessageIconPath - Form|GetMessageIconPath]]()
*string Function [[GetMessageIconPath - Form|GetMessageIconPath]]()
**Returns this form's message icon path as a string.
**Returns this form's message icon path as a string.
*string Function [[GetName - Form|GetName]]()
**Returns this form's name as a string.


*string Function [[GetWorldModelPath - Form|GetWorldModelPath]]()
*string Function [[GetWorldModelPath - Form|GetWorldModelPath]]()
Line 66: Line 66:
*bool Function [[HasWorldModel - Form|HasWorldModel]]()
*bool Function [[HasWorldModel - Form|HasWorldModel]]()
**Returns if this form has a world model.
**Returns if this form has a world model.
*Function [[SetName - Form|SetName]](string asName)
**Set this form's name.


*Function [[SetEnchantment - Form|SetEnchantment]](Enchantment akNewEnchant)
*Function [[SetEnchantment - Form|SetEnchantment]](Enchantment akNewEnchant)
Line 78: Line 75:
*Function [[SetEquipType - Form|SetEquipType]](EquipSlot akType)
*Function [[SetEquipType - Form|SetEquipType]](EquipSlot akType)
**Set this form's Equip Slot.
**Set this form's Equip Slot.
*Function [[SetGoldValue - Form|SetGoldValue]](int aiValue)
**Set this form's gold value.


*Function [[SetIconPath - Form|SetIconPath]](string asPath)
*Function [[SetIconPath - Form|SetIconPath]](string asPath)
Line 84: Line 84:
*Function [[SetMessageIconPath - Form|SetMessageIconPath]](string asPath)
*Function [[SetMessageIconPath - Form|SetMessageIconPath]](string asPath)
**Set this form's message icon path.
**Set this form's message icon path.
*Function [[SetName - Form|SetName]](string asName)
**Set this form's name.


*Function [[SetWorldModelPath - Form|SetWorldModelPath]](string asPath)
*Function [[SetWorldModelPath - Form|SetWorldModelPath]](string asPath)
Line 90: Line 93:
*Function [[SetWeight - Form|SetWeight]](float afWeight)
*Function [[SetWeight - Form|SetWeight]](float afWeight)
**Set this form's weight.
**Set this form's weight.
*Function [[SetGoldValue - Form|SetGoldValue]](int aiValue)
**Set this form's gold value.


== Events ==
== Events ==
None
None

Revision as of 23:46, 21 October 2017

Extends: ScriptObject

Native base script for every form in the game.

Definition

ScriptName Form extends ScriptObject Native Hidden

Properties

None

Global Functions

None

Member Functions

F4SE Member Functions

  • string Function GetDescription()
    • Returns this form's description as a string.
  • Enchantment Function GetEnchantment()
    • Returns this form's enchantment.
  • EquipSlot Function GetEquipType()
    • Returns this form's Equip Slot.
  • string Function GetIconPath()
    • Returns this form's icon path as a string.
  • Keyword[] Function GetKeywords()
    • Returns this form's keywords.
  • string Function GetName()
    • Returns this form's name as a string.
  • string Function GetWorldModelPath()
    • Returns this form's world model path as a string.
  • float Function GetWeight()
    • Returns this form's weight as a float.
  • bool Function HasWorldModel()
    • Returns if this form has a world model.
  • Function SetEnchantment(Enchantment akNewEnchant)
    • Set this form's enchantment.
  • Function SetEquipType(EquipSlot akType)
    • Set this form's Equip Slot.
  • Function SetGoldValue(int aiValue)
    • Set this form's gold value.
  • Function SetIconPath(string asPath)
    • Set this form's icon path.
  • Function SetName(string asName)
    • Set this form's name.
  • Function SetWeight(float afWeight)
    • Set this form's weight.

Events

None