32 lines
739 B
Plaintext
32 lines
739 B
Plaintext
|
Scriptname _00E_TalentLibrary
|
||
|
|
||
|
int Function GetTalentLevel(WordOfPower Word01, WordOfPower Word02, WordOfPower Word03) Global
|
||
|
|
||
|
if Game.IsWordUnlocked(Word03)
|
||
|
return 3
|
||
|
ElseIf Game.IsWordUnlocked(Word02) && !(Game.IsWordUnlocked(Word03))
|
||
|
return 2
|
||
|
ElseIf Game.IsWordUnlocked(Word01) && (!(Game.IsWordUnlocked(Word02)) && (Game.IsWordUnlocked(Word03)))
|
||
|
return 1
|
||
|
Else
|
||
|
return 0
|
||
|
EndIf
|
||
|
|
||
|
EndFunction
|
||
|
|
||
|
|
||
|
int Function GetPlayerTalentLevel(Perk Perk01, Perk Perk02, Perk Perk03) Global
|
||
|
|
||
|
Actor Player = Game.GetPlayer()
|
||
|
|
||
|
if Player.HasPerk(Perk03)
|
||
|
return 3
|
||
|
ElseIf ((Player.HasPerk(Perk02)) && !(Player.HasPerk(Perk03)))
|
||
|
return 2
|
||
|
ElseIf ((Player.HasPerk(Perk01)) && !(Player.HasPerk(Perk02)))
|
||
|
return 1
|
||
|
Else
|
||
|
return 0
|
||
|
EndIf
|
||
|
|
||
|
EndFunction
|