Difference between revisions of "ActorValueInfo Script"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>CraftySentinel
m (→‎SKSE Member Functions: Fixed Description GetPerkTree)
imported>CraftySentinel
(Added ActorValue ID list)
Line 17: Line 17:
== SKSE Global Functions ==
== SKSE Global Functions ==
'''ActorValueInfo [[GetActorValueInfoByName - ActorValueInfo|GetActorValueInfoByName]](String ''avName'')'''
'''ActorValueInfo [[GetActorValueInfoByName - ActorValueInfo|GetActorValueInfoByName]](String ''avName'')'''
*Returns the AVI by name.
*Returns the AVI by name. (See [[ActorValueInfo Script#Actor Value IDs|Actor Value IDs]] for a full list of Names and IDs for Actor Values)


'''ActorValueInfo [[GetActorValueInfoByName - ActorValueInfo|GetAVIByName]](String ''avName'')'''
'''ActorValueInfo [[GetActorValueInfoByName - ActorValueInfo|GetAVIByName]](String ''avName'')'''
Line 79: Line 79:
'''[[GetPerkTree - ActorValueInfo|GetPerkTree]](FormList ''list'', Actor ''akActor'', Bool ''unowned'', Bool ''allRanks'')'''
'''[[GetPerkTree - ActorValueInfo|GetPerkTree]](FormList ''list'', Actor ''akActor'', Bool ''unowned'', Bool ''allRanks'')'''
*Returns perks from the skill into the specified FormList, ''akActor'', ''unowned'' and ''allRanks'' are used for filtering, with ''unowned'' being whether ''akActor'' has the perk and ''allRanks'' returning all ranks of the perk, ''unowned'' also applies to this.
*Returns perks from the skill into the specified FormList, ''akActor'', ''unowned'' and ''allRanks'' are used for filtering, with ''unowned'' being whether ''akActor'' has the perk and ''allRanks'' returning all ranks of the perk, ''unowned'' also applies to this.
== Actor Value IDs ==
The Following is a list of Actor Value names and corresponding IDs for use with [[GetActorValueInfoByName - ActorValueInfo| GetAVIByName]] and [[GetActorValueInfoByID - ActorValueInfo|GetAVIByID]]:
<source lang="papyrus">
ID NAME
0 Aggression
1 Confidence
2 Energy
3 Morality
4 Mood
5 Assistance
6 OneHanded
7 TwoHanded
8 Marksman
9 Block
10 Smithing
11 HeavyArmor
12 LightArmor
13 Pickpocket
14 Lockpicking
15 Sneak
16 Alchemy
17 Speechcraft
18 Alteration
19 Conjuration
20 Destruction
21 Mysticism
22 Restoration
23 Enchanting
24 Health
25 Magicka
26 Stamina
27 HealRate
28 MagickaRate
29 StaminaRate
30 SpeedMult
31 InventoryWeight
32 CarryWeight
33 CritChance
34 MeleeDamage
35 UnarmedDamage
36 Mass
37 VoicePoints
38 VoiceRate
39 DamageResist
40 PoisonResist
41 FireResist
42 ElectricResist
43 FrostResist
44 MagicResist
45 NormalWeaponsResist
46 Paralysis
47 Invisibility
48 NightEye
49 DetectLifeRange
50 WaterBreathing
51 WaterWalking
52 Fame
53 Infamy
54 JumpingBonus
55 WardPower
56 EquippedItemCharge
57 ArmorPerks
58 ShieldPerks
59 WardDeflection
60 Variable01
61 Variable02
62 Variable03
63 Variable04
64 Variable05
65 Variable06
66 Variable07
67 Variable08
68 Variable09
69 Variable10
70 BowSpeedBonus
71 FavorActive
72 FavorsPerDay
73 FavorsPerDayTimer
74 EquippedStaffCharge
75 AbsorbChance
76 Blindness
77 WeaponSpeedMult
78 ShoutRecoveryMult
79 BowStaggerBonus
80 Telekinesis
81 FavorPointsBonus
82 LastBribedIntimidated
83 LastFlattered
84 Muffled
85 BypassVendorStolenCheck
86 BypassVendorKeywordCheck
87 WaitingForPlayer
88 OneHandedMod
89 TwoHandedMod
90 MarksmanMod
91 BlockMod
92 SmithingMod
93 HeavyArmorMod
94 LightArmorMod
95 PickPocketMod
96 LockpickingMod
97 SneakMod
98 AlchemyMod
99 SpeechcraftMod
100 AlterationMod
101 ConjurationMod
102 DestructionMod
103 IllusionMod
104 RestorationMod
105 EnchantingMod
106 OneHandedSkillAdvance
107 TwoHandedSkillAdvance
108 MarksmanSkillAdvance
109 BlockSkillAdvance
110 SmithingSkillAdvance
111 HeavyArmorSkillAdvance
112 LightArmorSkillAdvance
113 PickPocketSkillAdvance
114 LockpickingSkillAdvance
115 SneakSkillAdvance
116 AlchemySkillAdvance
117 SpeechcraftSkillAdvance
118 AlterationSkillAdvance
119 ConjurationSkillAdvance
120 DestructionSkillAdvance
121 IllusionSkillAdvance
122 RestorationSkillAdvance
123 EnchantingSkillAdvance
124 LeftWeaponSpeedMult
125 DragonSouls
126 CombatHealthRegenMult
127 OneHandedPowerMod
128 TwoHandedPowerMod
129 MarksmanPowerMod
130 BlockPowerMod
131 SmithingPowerMod
132 HeavyArmorPowerMod
133 LightArmorPowerMod
134 PickPocketPowerMod
135 LockpickingPowerMod
136 SneakPowerMod
137 AlchemyPowerMod
138 SpeechcraftPowerMod
139 AlterationPowerMod
140 ConjurationPowerMod
141 DestructionPowerMod
142 IllusionPowerMod
143 RestorationPowerMod
144 EnchantingPowerMod
145 DragonRend
146 AttackDamageMult
147 CombatHealthRegenMultMod
148 CombatHealthRegenMultPowerMod
149 StaminaRateMult
150 HealRatePowerMod
151 MagickaRateMod
152 GrabActorOffset
153 Grabbed
154 ReflectDamage
</source>
== Notes ==
None

Revision as of 00:47, 4 February 2014


Extends: Form Script

Script for the manipulation of actor value info. This Script Object was added in SKSE 1.07.0.

Definition

ScriptName ActorValueInfo extends Form Hidden

SKSE Global Functions

ActorValueInfo GetActorValueInfoByName(String avName)

  • Returns the AVI by name. (See Actor Value IDs for a full list of Names and IDs for Actor Values)

ActorValueInfo GetAVIByName(String avName)

  • Alias for GetActorValueInfoByName.

ActorValueInfo GetActorValueInfoByID(Int id)

  • Returns the AVI by ID.

ActorValueInfo GetAVIByID(Int id)

  • Alias for GetActorValueInfoByID.

SKSE Member Functions

Bool IsSkill()

  • Returns whether this AVI is a skill.

Float GetSkillUseMult()

  • Return the skill use Multiplier for the AVI.

SetSkillUseMult(Float value)

  • Sets the skill use Multiplier for the AVI.

Float GetSkillOffsetMult()

  • Return the skill offset multiplier for the AVI.

SetSkillOffsetMult()

  • Set the skill offset multiplier for the AVI.

Float GetSkillImproveMult()

  • Return the skill improvement multiplier for the AVI.

SetSkillImproveMult()

  • Set the skill improvement multiplier for the AVI.

Float GetSkillImproveMult()

  • Set the skill improvement multiplier for the AVI.

Float GetSkillImproveOffset()

  • Returns the skill improvement offset for the AVI.

GetSkillImproveOffset(Float value)

  • Set the skill improvement offset for the AVI.

Float GetSkillExperience()

  • Returns the amount of experience gained in this skill.

SetSkillExperience(Float exp)

  • Sets the skill experience to the specified amount. (This does not cause a skill up)

AddSkillExperience(Float exp)

  • Adds the specified amount of experience to the skill (This can trigger a skill up).

Float GetExperienceForLevel(Int currentLevel)

  • Returns the experience required for a skill up at the specified skill level.

Int GetSkillLegendaryLevel()

  • Returns the legendary level of the skill.

SetSkillLegendaryLevel(Int level)

  • Set the legendary level of the skill.

GetPerkTree(FormList list, Actor akActor, Bool unowned, Bool allRanks)

  • Returns perks from the skill into the specified FormList, akActor, unowned and allRanks are used for filtering, with unowned being whether akActor has the perk and allRanks returning all ranks of the perk, unowned also applies to this.


Actor Value IDs

The Following is a list of Actor Value names and corresponding IDs for use with GetAVIByName and GetAVIByID:

ID	NAME
0	Aggression	 
1	Confidence	 
2	Energy	 
3	Morality	 
4	Mood	 
5	Assistance	 
6	OneHanded
7	TwoHanded
8	Marksman	 
9	Block	 
10	Smithing	 
11	HeavyArmor	 
12	LightArmor	 
13	Pickpocket	 
14	Lockpicking	 
15	Sneak	 
16	Alchemy	 
17	Speechcraft	 
18	Alteration	 
19	Conjuration	 
20	Destruction	 
21	Mysticism	 
22	Restoration	 
23	Enchanting	 
24	Health	 
25	Magicka	 
26	Stamina	 
27	HealRate	 
28	MagickaRate	 
29	StaminaRate	 
30	SpeedMult	 
31	InventoryWeight	 
32	CarryWeight	 
33	CritChance	 
34	MeleeDamage	 
35	UnarmedDamage	 
36	Mass	 
37	VoicePoints	 
38	VoiceRate	 
39	DamageResist	 
40	PoisonResist	 
41	FireResist	 
42	ElectricResist	 
43	FrostResist	 
44	MagicResist	 
45	NormalWeaponsResist	 
46	Paralysis	 
47	Invisibility	 
48	NightEye	 
49	DetectLifeRange	 
50	WaterBreathing	 
51	WaterWalking	 
52	Fame	 
53	Infamy	 
54	JumpingBonus	 
55	WardPower	 
56	EquippedItemCharge	 
57	ArmorPerks	 
58	ShieldPerks	 
59	WardDeflection	 
60	Variable01	 
61	Variable02	 
62	Variable03	 
63	Variable04	 
64	Variable05	 
65	Variable06	 
66	Variable07	 
67	Variable08	 
68	Variable09	 
69	Variable10	 
70	BowSpeedBonus	 
71	FavorActive	 
72	FavorsPerDay	 
73	FavorsPerDayTimer	 
74	EquippedStaffCharge	 
75	AbsorbChance	 
76	Blindness	 
77	WeaponSpeedMult	 
78	ShoutRecoveryMult	 
79	BowStaggerBonus	 
80	Telekinesis	 
81	FavorPointsBonus	 
82	LastBribedIntimidated	 
83	LastFlattered	 
84	Muffled	 
85	BypassVendorStolenCheck	 
86	BypassVendorKeywordCheck	 
87	WaitingForPlayer	 
88	OneHandedMod	 
89	TwoHandedMod	 
90	MarksmanMod	 
91	BlockMod	 
92	SmithingMod	 
93	HeavyArmorMod	 
94	LightArmorMod	 
95	PickPocketMod	 
96	LockpickingMod	 
97	SneakMod	 
98	AlchemyMod	 
99	SpeechcraftMod	 
100	AlterationMod	 
101	ConjurationMod	 
102	DestructionMod	 
103	IllusionMod	 
104	RestorationMod	 
105	EnchantingMod	 
106	OneHandedSkillAdvance	 
107	TwoHandedSkillAdvance	 
108	MarksmanSkillAdvance	 
109	BlockSkillAdvance	 
110	SmithingSkillAdvance	 
111	HeavyArmorSkillAdvance	 
112	LightArmorSkillAdvance	 
113	PickPocketSkillAdvance	 
114	LockpickingSkillAdvance	 
115	SneakSkillAdvance	 
116	AlchemySkillAdvance	 
117	SpeechcraftSkillAdvance	 
118	AlterationSkillAdvance	 
119	ConjurationSkillAdvance	 
120	DestructionSkillAdvance	 
121	IllusionSkillAdvance	 
122	RestorationSkillAdvance	 
123	EnchantingSkillAdvance	 
124	LeftWeaponSpeedMult	 
125	DragonSouls	 
126	CombatHealthRegenMult	 
127	OneHandedPowerMod	 
128	TwoHandedPowerMod	 
129	MarksmanPowerMod	 
130	BlockPowerMod	 
131	SmithingPowerMod	 
132	HeavyArmorPowerMod	 
133	LightArmorPowerMod	 
134	PickPocketPowerMod	 
135	LockpickingPowerMod	 
136	SneakPowerMod	 
137	AlchemyPowerMod	 
138	SpeechcraftPowerMod	 
139	AlterationPowerMod	 
140	ConjurationPowerMod	 
141	DestructionPowerMod	 
142	IllusionPowerMod	 
143	RestorationPowerMod	 
144	EnchantingPowerMod	 
145	DragonRend	 
146	AttackDamageMult	 
147	CombatHealthRegenMultMod	 
148	CombatHealthRegenMultPowerMod	 
149	StaminaRateMult	 
150	HealRatePowerMod	 
151	MagickaRateMod	 
152	GrabActorOffset	 
153	Grabbed	 
154	ReflectDamage


Notes

None