Difference between revisions of "Form Script"
Jump to navigation
Jump to search
imported>Tania |
imported>Homecom m (→Member Functions: Added the missing return type (bool) for "PlayerKnows".) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
'''Extends:''' [[ScriptObject Script|ScriptObject]] | '''Extends:''' [[ScriptObject Script|ScriptObject]] | ||
Line 26: | Line 23: | ||
*bool Function [[HasKeywordInFormList - Form|HasKeywordInFormList]](FormList akKeywordList) | *bool Function [[HasKeywordInFormList - Form|HasKeywordInFormList]](FormList akKeywordList) | ||
**Returns if this form has any of the keywords in the [[FormList Script|FormList]] attached. | **Returns if this form has any of the keywords in the [[FormList Script|FormList]] attached. | ||
*Function [[PlayerKnows - Form|PlayerKnows]]() | *bool Function [[PlayerKnows - Form|PlayerKnows]]() | ||
**Is the "Known" flag set on the form? | **Is the "Known" flag set on the form? | ||
*Function [[StartObjectProfiling - Form|StartObjectProfiling]]() | *Function [[StartObjectProfiling - Form|StartObjectProfiling]]() | ||
Line 34: | Line 31: | ||
== F4SE Member Functions == | == F4SE Member Functions == | ||
*string Function [[GetDescription - Form|GetDescription]]() | |||
**Returns this form's description as a string. | |||
*Enchantment Function [[GetEnchantment - Form|GetEnchantment]]() | |||
**Returns this form's enchantment. | |||
*int Function [[GetEnchantmentValue - Form|GetEnchantmentValue]]() | |||
**Returns this form's enchantment's value. | |||
*EquipSlot Function [[GetEquipType - Form|GetEquipType]]() | |||
**Returns this form's Equip Slot. | |||
*string Function [[GetIconPath - Form|GetIconPath]]() | |||
**Returns this form's icon path as a string. | |||
*Keyword[] Function [[GetKeywords - Form|GetKeywords]]() | |||
**Returns this form's keywords. | |||
*string Function [[GetMessageIconPath - Form|GetMessageIconPath]]() | |||
**Returns this form's message icon path as a string. | |||
*string Function [[GetName - Form|GetName]]() | *string Function [[GetName - Form|GetName]]() | ||
**Returns this form's name as a string. | **Returns this form's name as a string. | ||
*Function [[SetName - Form|SetName]]() | |||
** | *string Function [[GetWorldModelPath - Form|GetWorldModelPath]]() | ||
**Returns this form's world model path as a string. | |||
*float Function [[GetWeight - Form|GetWeight]]() | |||
**Returns this form's weight as a float. | |||
*bool Function [[HasWorldModel - Form|HasWorldModel]]() | |||
**Returns if this form has a world model. | |||
*Function [[SetEnchantment - Form|SetEnchantment]](Enchantment akNewEnchant) | |||
**Set this form's enchantment. | |||
*Function [[SetEnchantmentValue - Form|SetEnchantmentValue]](int aiValue) | |||
**Set this form's enchantment's value. | |||
*Function [[SetEquipType - Form|SetEquipType]](EquipSlot akType) | |||
**Set this form's Equip Slot. | |||
*Function [[SetGoldValue - Form|SetGoldValue]](int aiValue) | |||
**Set this form's gold value. | |||
*Function [[SetIconPath - Form|SetIconPath]](string asPath) | |||
**Set this form's icon path. | |||
*Function [[SetMessageIconPath - Form|SetMessageIconPath]](string asPath) | |||
**Set this form's message icon path. | |||
*Function [[SetName - Form|SetName]](string asName) | |||
**Set this form's name. | |||
*Function [[SetWorldModelPath - Form|SetWorldModelPath]](string asPath) | |||
**Set this form's world model path. | |||
*Function [[SetWeight - Form|SetWeight]](float afWeight) | |||
**Set this form's weight. | |||
== Events == | == Events == | ||
None | None | ||
[[Category:Scripting]] | |||
[[Category:Papyrus]] | |||
[[Category:Script Objects]] |
Latest revision as of 21:45, 17 June 2018
Extends: ScriptObject
Native base script for every form in the game.
Definition[edit | edit source]
ScriptName Form extends ScriptObject Native Hidden
Properties[edit | edit source]
None
Global Functions[edit | edit source]
None
Member Functions[edit | edit source]
- int Function GetFormID()
- Returns this form's form ID.
- int Function GetGoldValue()
- Returns this form's value in gold.
- bool Function HasKeyword(Keyword akKeyword)
- Returns if this form has the specified Keyword attached.
- bool Function HasKeywordInFormList(FormList akKeywordList)
- Returns if this form has any of the keywords in the FormList attached.
- bool Function PlayerKnows()
- Is the "Known" flag set on the form?
- Function StartObjectProfiling()
- Starts profiling all scripts attached to this form.
- Function StopObjectProfiling()
- Stops profiling all scripts attached to this form.
F4SE Member Functions[edit | edit source]
- string Function GetDescription()
- Returns this form's description as a string.
- Enchantment Function GetEnchantment()
- Returns this form's enchantment.
- int Function GetEnchantmentValue()
- Returns this form's enchantment's value.
- 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 GetMessageIconPath()
- Returns this form's message icon path as a string.
- 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 SetEnchantmentValue(int aiValue)
- Set this form's enchantment's value.
- 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 SetMessageIconPath(string asPath)
- Set this form's message icon path.
- Function SetName(string asName)
- Set this form's name.
- Function SetWorldModelPath(string asPath)
- Set this form's world model path.
- Function SetWeight(float afWeight)
- Set this form's weight.
Events[edit | edit source]
None