-
Notifications
You must be signed in to change notification settings - Fork 6
/
ActorValueInfo.psc
66 lines (48 loc) · 2.39 KB
/
ActorValueInfo.psc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Scriptname ActorValueInfo extends Form Hidden
; Returns the AVI by name
ActorValueInfo Function GetActorValueInfoByName(string avName) global native
ActorValueInfo Function GetAVIByName(string avName) global
return GetActorValueInfoByName(avName)
EndFunction
; Returns the AVI by id (0-164)
ActorValueInfo Function GetActorValueInfoByID(int id) global native
ActorValueInfo Function GetAVIByID(int id) global
return GetActorValueInfoByID(id)
EndFunction
; Returns whether this AVI is a skill
bool Function IsSkill() native
; Skill Multiplier manipulation
float Function GetSkillUseMult() native
Function SetSkillUseMult(float value) native
float Function GetSkillOffsetMult() native
Function SetSkillOffsetMult(float value) native
float Function GetSkillImproveMult() native
Function SetSkillImproveMult(float value) native
float Function GetSkillImproveOffset() native
Function SetSkillImproveOffset(float value) native
; Returns the amount of experienced gained in this skill
float Function GetSkillExperience() native
; Does not trigger skill-up
Function SetSkillExperience(float exp) native
; Adds experience to this skill (Same as console AdvanceSkill, triggers skill-up)
Function AddSkillExperience(float exp) native
; Returns the experience required for skill-up
; (ImproveMult * currentLevel ^ fSkillUseCurve + ImproveOffset)
float Function GetExperienceForLevel(int currentLevel) native
; Returns the legendary level of this skill
int Function GetSkillLegendaryLevel() native
; Sets the legendary level of this skill
Function SetSkillLegendaryLevel(int level) native
; Returns perks from the skill into the FormList
; Actor filter applies to unowned and allRanks
; unowned will add perks that the actor does not own, or only perks the actor owns
; allRanks will add all ranks of each perk to the list, unowned/owned filter also applies
Function GetPerkTree(FormList list, Actor akActor = None, bool unowned = true, bool allRanks = false) native
; Same as GetPerkTree except returns into a new array
Perk[] Function GetPerks(Actor akActor = None, bool unowned = true, bool allRanks = false) native
; Same as Actor.GetActorValue (convenience function)
float Function GetCurrentValue(Actor akActor) native
; Same as Actor.GetBaseActorValue (convenience function)
float Function GetBaseValue(Actor akActor) native
; Acquires the Maximum value for the current ActorValue
float Function GetMaximumValue(Actor akActor) native