Jump to content

Need some help trying to create a script so that it can initialise the mod till after an alternate Start & race menu are finished.


wedragon

Recommended Posts

Adapting Mod for personal use at this moment in time and to test if functioning fine.
Will seek permission from original mod author and release.
Mod being Adapted Classic Classes and Birthsigns by Kearsage ( /skyrim/mods/16736/? )
Scriptname _CCMenuScript extends Quest
;Table of Contents - USe Search to Jump to Section
;Mod Initialization Section
;Classic Classes Section
;Birthsign Main Menu Section
;Third Era Birthsign Section
;Fourth Era Birthsign Section
;Custom Class Section
Spell Property _CCUnarmedBonus Auto
Spell Property OakFlesh Auto
Spell Property MageLight Auto
Spell Property RaiseZombie Auto
Spell Property SoulTrap Auto
Spell Property BoundSword Auto
Spell Property Flames Auto
Spell Property FrostRune Auto
Spell Property Clairvoyance Auto
Spell Property Calm Auto
Spell Property Healing Auto
Spell Property TurnlesserUndead Auto
Spell Property HealingHands Auto
Spell Property Courage Auto
Spell Property _CCAthleticsAbility Auto
Spell Property _CCMysticismAbility Auto
Spell Property _CCAcrobaticsAbility Auto
Spell Property _CCUnarmoredAbility Auto
Spell Property _CCAcrobaticsStaAbility Auto
Spell Property _CCAthleticsStaAbility Auto
Spell Property _CCArcherAbility Auto
Spell Property _CCBarbarianAbility Auto
Spell Property _CCCrusaderAbility Auto
Spell Property _CCKnightAbility Auto
Spell Property _CCRogueAbility Auto
Spell Property _CCScoutAbility Auto
Spell Property _CCWarriorAbility Auto
Spell Property _CCAcrobatAbilityFirFro Auto
Spell Property _CCAcrobatAbilityMagSho Auto
Spell Property _CCAgentAbility Auto
Spell Property _CCAssassinAbility Auto
Spell Property _CCBardAbility Auto
Spell Property _CCMonkAbility Auto
Spell Property _CCPilgrimAbilityMagicka Auto
Spell Property _CCPilgrimAbilityHealth Auto
Spell Property _CCPilgrimAbilityStamina Auto
Spell Property _CCThiefAbility Auto
Spell Property _CCBattlemageAbility Auto
Spell Property _CCHealerAbility Auto
Spell Property _CCMageAbility Auto
Spell Property _CCNightbladeAbility Auto
Spell Property _CCSorcererAbility Auto
Spell Property _CCSpellswordAbility Auto
Spell Property _CCWitchhunterAbility Auto
message property _CCTopMenu auto
message property _CCAdventurerMenu auto
message property _CCSpecializationMenu auto
message property _CCCombatSpecializationMenu auto
message property _CCStealthSpecializationMenu auto
message property _CCMagicSpecializationMenu auto
message property _CCArcherMenu auto
message property _CCArcherSelected auto
message property _CCBarbarianMenu Auto
message property _CCBarbarianSelected Auto
message property _CCCrusaderMenu Auto
message property _CCCrusaderSelected Auto
message property _CCKnightMenu Auto
message property _CCKnightSelected Auto
message property _CCRogueMenu Auto
message property _CCRogueSelected Auto
message property _CCScoutMenu Auto
message property _CCScoutSelected Auto
message property _CCWarriorMenu Auto
message property _CCWarriorSelected Auto
message property _CCAcrobatMenu auto
message property _CCAcrobatSelected auto
message property _CCAgentMenu Auto
message property _CCAgentSelected Auto
message property _CCAssassinMenu Auto
message property _CCAssassinSelected Auto
message property _CCBardMenu Auto
message property _CCBardSelected Auto
message property _CCMonkMenu Auto
message property _CCMonkSelected Auto
message property _CCPilgrimMenu Auto
message property _CCPilgrimSelected Auto
message property _CCThiefMenu Auto
message property _CCThiefSelected Auto
message property _CCBattlemageMenu auto
message property _CCBattlemageSelected auto
message property _CCHealerMenu Auto
message property _CCHealerSelected Auto
message property _CCMageMenu Auto
message property _CCMageSelected Auto
message property _CCNightbladeMenu Auto
message property _CCNightbladeSelected Auto
message property _CCSorcererMenu Auto
message property _CCSorcererSelected Auto
message property _CCSpellswordMenu Auto
message property _CCSpellswordSelected Auto
message property _CCWitchhunterMenu Auto
message property _CCWitchhunterSelected Auto
Spell Property doomApprenticeAbility Auto
Spell Property doomApprenticeNegativeAbility Auto
Spell Property doomAtronachAbility Auto
Spell Property doomLadyAbility Auto
Spell Property doomLordAbility Auto
Spell Property doomLoverAbility Auto
Spell Property doomMageAbility Auto
Spell Property doomRitualAbility Auto
Spell Property doomSerpentAbility Auto
Spell Property doomShadowAbility Auto
Spell Property doomSteedAbility Auto
Spell Property doomThiefAbility Auto
Spell Property doomTowerAbility Auto
Spell Property doomWarriorAbility Auto
Spell Property _BSWarriorSign Auto
Spell Property _BSMageSign Auto
Spell Property _BSThiefSign Auto
Spell Property _BSSerpentSign Auto
Spell Property _BSSerpentAbility Auto
Spell Property _BSLadySignHealth Auto
Spell Property _BSLadySignMagicka Auto
Spell Property _BSSteedSign Auto
Spell Property _BSLordSign Auto
Spell Property _BSLordSignAbility Auto
Spell Property _BSApprenticeSign Auto
Spell Property _BSApprenticeSignNegativeAbility Auto
Spell Property _BSAtronachSign Auto
Spell Property _BSRitualSignHealAbility Auto
Spell Property _BSRitualSignTurnAbility Auto
Spell Property _BSLoverSign Auto
Spell Property _BSShadowSign Auto
Spell Property _BSTowerSign Auto
message property _BSBirthsignMenu Auto
message property _BSBirthsignChoiceMenu Auto
message property _BSApprenticeMenu Auto
message property _BSAtronachMenu Auto
message property _BSLadyMenu Auto
message property _BSLordMenu Auto
message property _BSLoverMenu Auto
message property _BSMageSignMenu Auto
message property _BSMageChargesMenu Auto
message property _BSRitualMenu Auto
message property _BSSerpentMenu Auto
message property _BSShadowMenu Auto
message property _BSSteedMenu Auto
message property _BSThiefSignMenu Auto
message property _BSThiefChargesMenu Auto
message property _BSTopMenu Auto
message property _BSTowerMenu Auto
message property _BSTravelerMenu Auto
message property _BSWarriorSignMenu Auto
message property _BSWarriorChargesMenu Auto
message property _BSWarriorSignMenu3E Auto
message property _BSMageSignMenu3E Auto
message property _BSThiefSignMenu3E Auto
message property _BSSerpentMenu3E Auto
message property _BSLadyMenu3E Auto
message property _BSSteedMenu3E Auto
message property _BSLordMenu3E Auto
message property _BSApprenticeMenu3E Auto
message property _BSAtronachMenu3E Auto
message property _BSRitualMenu3E Auto
message property _BSLoverMenu3E Auto
message property _BSShadowMenu3E Auto
message property _BSTowerMenu3E Auto
message property _CCCurrentCharacter Auto
message property _CCCurrentBirthsignMenu Auto
GlobalVariable property SpeechEasy Auto
GlobalVariable property SpeechAverage Auto
GlobalVariable property SpeechHard Auto
GlobalVariable property SpeechVeryHard Auto
;-------------------------------------------------------------------------
;MOD INITIALIZATION SECTION
;-------------------------------------------------------------------------
Event OnInit() ;SCRIPT INITIALIZATION
int playerlevel = Game.GetPlayer().GetLevel()
if playerlevel == 1
StartMod()
Else
CurrentClassStart()
EndIf
EndEvent
Function StartMod()
Actor player = Game.GetPlayer()
; debug.MessageBox(player.GetEquippedItemType(0))
bool hasequipped = (player.GetEquippedItemType(0) > 0) || (player.GetEquippedItemType(1) > 0)
if hasequipped == false
StartMod()
Else
TopMenu()
EndIf
EndFunction
;-------------------------------------------------------------------------
;CURRENT CLASS SECTION
;-------------------------------------------------------------------------
Function CurrentClassStart()
int ibutton = _CCCurrentCharacter.Show()
if ibutton == 0
SpecializationMenu()
elseif ibutton == 1
CurrentBirthsignMenu()
EndIf
EndFunction
Function CurrentBirthsignMenu()
int ibutton = _CCCurrentBirthsignMenu.Show()
if ibutton == 0
BSTopMenu()
elseif ibutton == 1
EndIf
EndFunction
;-------------------------------------------------------------------------
;CLASSIC CLASS SECTION
;-------------------------------------------------------------------------
Function TopMenu() ;TOP MENU
if (!Utility.IsInMenuMode())
int ibutton = _CCTopMenu.Show()
if ibutton == 0
AdventurerMenu()
elseif ibutton == 1
SpecializationMenu()
elseif ibutton == 2
CustomClassMenu()
EndIf
Else
TopMenu()
EndIf
EndFunction
Function AdventurerMenu() ;ADVENTURER MENU
int ibutton = _CCAdventurerMenu.Show()
if ibutton == 1
TopMenu()
Else
BSTopMenu()
EndIf
EndFunction
Function SpecializationMenu() ;SPECIALIZATION MENU
int ibutton = _CCSpecializationMenu.Show()
if ibutton == 0
CombatSpecializationMenu()
elseif ibutton == 1
StealthSpecializationMenu()
elseif ibutton == 2
MagicSpecializationMenu()
Elseif ibutton == 3
int playerlevel = Game.GetPlayer().GetLevel()
if playerlevel == 1
TopMenu()
Else
CurrentClassStart()
EndIf
EndIf
EndFunction
;COMBAT CLASSES BELOW
Function CombatSpecializationMenu() ;COMBAT SPECIALIZATION MENU
int ibutton = _CCCombatSpecializationMenu.Show()
if ibutton == 0
ArcherMenu()
elseif ibutton == 1
BarbarianMenu()
elseif ibutton == 2
CrusaderMenu()
elseif ibutton == 3
KnightMenu()
elseif ibutton == 4
RogueMenu()
elseif ibutton == 5
ScoutMenu()
elseif ibutton == 6
WarriorMenu()
elseif ibutton == 7
SpecializationMenu()
EndIf
EndFunction
Function ArcherMenu() ;ARCHER MENU
int ibutton = _CCArcherMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCArcherSelected.Show()
if sbutton == 1
CombatSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomArchery)
player.AddPerk(_CCCustomBlock)
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomSmithing)
player.AddPerk(_CCCustomLightArmor)
player.AddPerk(_CCCustomSneak)
;Set Secondary Skill
player.AddPerk(_CCCustomAthletics)
;Class Abilities
player.AddSpell(_CCArcherAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
CombatSpecializationMenu()
EndIf
EndFunction
Function BarbarianMenu() ;BARBARIAN MENU
int ibutton = _CCBarbarianMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCBarbarianSelected.Show()
if sbutton == 1
CombatSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomArchery)
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomSmithing)
player.AddPerk(_CCCustomTwoHanded)
player.AddPerk(_CCCustomLightArmor)
player.AddPerk(_CCCustomBlock)
;Set Secondary Skill
player.AddSpell(_CCUnarmedBonus)
;Barbarian Class Ability
player.AddSpell(_CCBarbarianAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
CombatSpecializationMenu()
EndIf
EndFunction
Function CrusaderMenu() ;CRUSADER MENU
int ibutton = _CCCrusaderMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCCrusaderSelected.Show()
if sbutton == 1
CombatSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomBlock)
player.AddPerk(_CCCustomHeavyArmor)
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomTwoHanded)
player.AddPerk(_CCCustomDestruction)
player.AddPerk(_CCCustomRestoration)
;Set Secondary Skill
player.AddSpell(_CCUnarmedBonus)
;Set Crusader Class Bonus:
player.AddSpell(_CCCrusaderAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
CombatSpecializationMenu()
EndIf
EndFunction
Function KnightMenu() ;KNIGHT MENU
int ibutton = _CCKnightMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCKnightSelected.Show()
if sbutton == 1
CombatSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomBlock)
player.AddPerk(_CCCustomHeavyArmor)
player.AddPerk(_CCCustomTwoHanded)
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomIllusion)
player.AddPerk(_CCCustomSpeech)
;Set Secondary Skill
player.AddSpell(_CCMysticismAbility)
;Knight Class Bonus:
player.AddSpell(_CCKnightAbility)
player.AddSpell(Courage)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
CombatSpecializationMenu()
EndIf
EndFunction
Function RogueMenu() ;ROGUE MENU
int ibutton = _CCRogueMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCRogueSelected.Show()
if sbutton == 1
CombatSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomBlock)
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomIllusion)
player.AddPerk(_CCCustomAlchemy)
player.AddPerk(_CCCustomLightArmor)
player.AddPerk(_CCCustomSpeech)
;Set Secondary Skill
player.AddPerk(_CCCustomAthletics)
;Rogue Class Bonus:
player.AddSpell(_CCRogueAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
CombatSpecializationMenu()
EndIf
EndFunction
Function ScoutMenu() ;SCOUT MENU
int ibutton = _CCScoutMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCScoutSelected.Show()
if sbutton == 1
CombatSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomBlock)
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomSmithing)
player.AddPerk(_CCCustomAlchemy)
player.AddPerk(_CCCustomLightArmor)
player.AddPerk(_CCCustomSneak)
;Set Secondary Skill
player.AddPerk(_CCCustomAthletics)
;Scout Class Bonus:
player.AddSpell(_CCScoutAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
CombatSpecializationMenu()
EndIf
EndFunction
Function WarriorMenu() ;WARRIOR MENU
int ibutton = _CCWarriorMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCWarriorSelected.Show()
if sbutton == 1
CombatSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomArchery)
player.AddPerk(_CCCustomBlock)
player.AddPerk(_CCCustomHeavyArmor)
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomSmithing)
player.AddPerk(_CCCustomTwoHanded)
;Set Secondary Skill
player.AddPerk(_CCCustomAthletics)
;Warrior Class Bonus
player.AddSpell(_CCWarriorAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
CombatSpecializationMenu()
EndIf
EndFunction
;STEALTH CLASSES BELOW
Function StealthSpecializationMenu() ;STEALTH SPECIALIZATION MENU
int ibutton = _CCStealthSpecializationMenu.Show()
if ibutton == 0
AcrobatMenu()
elseif ibutton == 1
AgentMenu()
elseif ibutton == 2
AssassinMenu()
elseif ibutton == 3
BardMenu()
elseif ibutton == 4
MonkMenu()
elseif ibutton == 5
PilgrimMenu()
elseif ibutton == 6
ThiefMenu()
elseif ibutton == 7
SpecializationMenu()
EndIf
EndFunction
Function AcrobatMenu() ;ACROBAT MENU
int ibutton = _CCAcrobatMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCAcrobatSelected.Show()
if sbutton == 1
StealthSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomArchery)
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomLockpicking)
player.AddPerk(_CCCustomPickpocket)
player.AddPerk(_CCCustomSneak)
player.AddPerk(_CCCustomSpeech)
;Set Secondary Skill
player.AddPerk(_CCCustomAcrobatics)
;Acrobat Class Bonus
player.AddSpell(_CCAcrobatAbilityFirFro)
player.AddSpell(_CCAcrobatAbilityMagSho)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
StealthSpecializationMenu()
EndIf
EndFunction
Function AgentMenu() ;AGENT MENU
int ibutton = _CCAgentMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCAgentSelected.Show()
if sbutton == 1
StealthSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomArchery)
player.AddPerk(_CCCustomIllusion)
player.AddPerk(_CCCustomLockpicking)
player.AddPerk(_CCCustomPickpocket)
player.AddPerk(_CCCustomSneak)
player.AddPerk(_CCCustomSpeech)
;Set Secondary Skill
player.AddSpell(_CCUnarmoredAbility)
;Agent Class Ability
player.AddSpell(_CCAgentAbility)
SpeechEasy.SetValue(70)
SpeechAverage.SetValue(70)
SpeechHard.SetValue(70)
SpeechVeryHard.SetValue(70)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
StealthSpecializationMenu()
EndIf
EndFunction
Function AssassinMenu() ;ASSASSIN MENU
int ibutton = _CCAssassinMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCAssassinSelected.Show()
if sbutton == 1
StealthSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomArchery)
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomAlchemy)
player.AddPerk(_CCCustomLightArmor)
player.AddPerk(_CCCustomPickpocket)
player.AddPerk(_CCCustomSneak)
;Set Secondary Skill
player.AddPerk(_CCCustomAcrobatics)
;Assassin Class Bonus
player.AddSpell(_CCAssassinAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
StealthSpecializationMenu()
EndIf
EndFunction
Function BardMenu() ;BARD MENU
int ibutton = _CCBardMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCBardSelected.Show()
if sbutton == 1
StealthSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomEnchanting)
player.AddPerk(_CCCustomIllusion)
player.AddPerk(_CCCustomAlchemy)
player.AddPerk(_CCCustomLightArmor)
player.AddPerk(_CCCustomSpeech)
;Set Secondary Skill
player.AddSpell(_CCMysticismAbility)
;Bard Class Bonus
player.AddSpell(_CCBardAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
StealthSpecializationMenu()
EndIf
EndFunction
Function MonkMenu() ;MONK MENU
int ibutton = _CCMonkMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCMonkSelected.Show()
if sbutton == 1
StealthSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomArchery)
player.AddPerk(_CCCustomAlteration)
player.AddPerk(_CCCustomAlchemy)
player.AddPerk(_CCCustomLockpicking)
player.AddPerk(_CCCustomPickpocket)
player.AddPerk(_CCCustomSneak)
;Set Secondary Skill
player.AddSpell(_CCUnarmoredAbility)
;Monk Class Bonus
player.AddSpell(_CCMonkAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
StealthSpecializationMenu()
EndIf
EndFunction
Function PilgrimMenu() ;PILGRIM MENU
int ibutton = _CCPilgrimMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCPilgrimSelected.Show()
if sbutton == 1
StealthSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomBlock)
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomSmithing)
player.AddPerk(_CCCustomRestoration)
player.AddPerk(_CCCustomLightArmor)
player.AddPerk(_CCCustomSpeech)
;Set Secondary Skill
player.AddSpell(_CCMysticismAbility)
;Pilgrim Class Bonus:
player.AddSpell(_CCPilgrimAbilityMagicka)
player.AddSpell(_CCPilgrimAbilityHealth)
player.AddSpell(_CCPilgrimAbilityStamina)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
StealthSpecializationMenu()
EndIf
EndFunction
Function ThiefMenu() ;THIEF MENU
int ibutton = _CCThiefMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCThiefSelected.Show()
if sbutton == 1
StealthSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomArchery)
player.AddPerk(_CCCustomLightArmor)
player.AddPerk(_CCCustomLockpicking)
player.AddPerk(_CCCustomPickpocket)
player.AddPerk(_CCCustomSneak)
player.AddPerk(_CCCustomSpeech)
;Set Secondary Skill
player.AddPerk(_CCCustomAthletics)
;Thief Class Bonus
player.AddSpell(_CCThiefAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
StealthSpecializationMenu()
EndIf
EndFunction
;MAGIC CLASSES BELOW
Function MagicSpecializationMenu() ;MAGIC SPECIALIZATION MENU
int ibutton = _CCMagicSpecializationMenu.Show()
if ibutton == 0
BattlemageMenu()
elseif ibutton == 1
HealerMenu()
elseif ibutton == 2
MageMenu()
elseif ibutton == 3
NightbladeMenu()
elseif ibutton == 4
SorcererMenu()
elseif ibutton == 5
SpellswordMenu()
elseif ibutton == 6
WitchhunterMenu()
elseif ibutton == 7
SpecializationMenu()
EndIf
EndFunction
Function BattlemageMenu() ;BATTLEMAGE MENU
int ibutton = _CCBattlemageMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCBattlemageSelected.Show()
if sbutton == 1
MagicSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomAlteration)
player.AddPerk(_CCCustomConjuration)
player.AddPerk(_CCCustomDestruction)
player.AddPerk(_CCCustomEnchanting)
player.AddPerk(_CCCustomAlchemy)
;Set Secondary Skill
player.AddSpell(_CCUnarmoredAbility)
;Battlemage Class Bonus
player.AddSpell(_CCBattlemageAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
MagicSpecializationMenu()
EndIf
EndFunction
Function HealerMenu() ;HEALER MENU
int ibutton = _CCHealerMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCHealerSelected.Show()
if sbutton == 1
MagicSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomAlteration)
player.AddPerk(_CCCustomDestruction)
player.AddPerk(_CCCustomIllusion)
player.AddPerk(_CCCustomRestoration)
player.AddPerk(_CCCustomAlchemy)
player.AddPerk(_CCCustomSpeech)
;Set Secondary Skill
player.AddSpell(_CCMysticismAbility)
;Healer Class Bonus:
player.AddSpell(_CCHealerAbility)
player.AddSpell(HealingHands)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
MagicSpecializationMenu()
EndIf
EndFunction
Function MageMenu() ;MAGE MENU
int ibutton = _CCMageMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCMageSelected.Show()
if sbutton == 1
MagicSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomAlteration)
player.AddPerk(_CCCustomConjuration)
player.AddPerk(_CCCustomDestruction)
player.AddPerk(_CCCustomEnchanting)
player.AddPerk(_CCCustomIllusion)
player.AddPerk(_CCCustomRestoration)
;Set Secondary Skill
player.AddSpell(_CCUnarmoredAbility)
;Mage Class Bonus
player.AddSpell(_CCMageAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
MagicSpecializationMenu()
EndIf
EndFunction
Function NightbladeMenu() ;NIGHTBLADE MENU
int ibutton = _CCNightbladeMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCNightbladeSelected.Show()
if sbutton == 1
MagicSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomDestruction)
player.AddPerk(_CCCustomIllusion)
player.AddPerk(_CCCustomRestoration)
player.AddPerk(_CCCustomLightArmor)
player.AddPerk(_CCCustomSneak)
;Set Secondary Skill
player.AddPerk(_CCCustomAcrobatics)
;Nightblade Class Bonus
player.AddSpell(_CCNightbladeAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
MagicSpecializationMenu()
EndIf
EndFunction
Function SorcererMenu() ;SORCERER MENU
int ibutton = _CCSorcererMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCSorcererSelected.Show()
if sbutton == 1
MagicSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomHeavyArmor)
player.AddPerk(_CCCustomConjuration)
player.AddPerk(_CCCustomDestruction)
player.AddPerk(_CCCustomEnchanting)
player.AddPerk(_CCCustomRestoration)
player.AddPerk(_CCCustomAlchemy)
;Set Secondary Skill
player.AddSpell(_CCMysticismAbility)
;Sorcerer Class Bonus
player.AddSpell(_CCSorcererAbility)
player.AddSpell(BoundSword)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
MagicSpecializationMenu()
EndIf
EndFunction
Function SpellswordMenu() ;SPELLSWORD MENU
int ibutton = _CCSpellswordMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCSpellswordSelected.Show()
if sbutton == 1
MagicSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomHeavyArmor)
player.AddPerk(_CCCustomOneHanded)
player.AddPerk(_CCCustomAlteration)
player.AddPerk(_CCCustomDestruction)
player.AddPerk(_CCCustomEnchanting)
player.AddPerk(_CCCustomRestoration)
;Set Secondary Skill
player.AddSpell(_CCMysticismAbility)
;Spellsword Class Bonus
player.AddSpell(_CCSpellswordAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
MagicSpecializationMenu()
EndIf
EndFunction
Function WitchhunterMenu() ;WITCHHUNTER MENU
int ibutton = _CCWitchhunterMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
int sbutton = _CCWitchhunterSelected.Show()
if sbutton == 1
MagicSpecializationMenu()
Else
;Set the Class Skills
player.AddPerk(_CCCustomArchery)
player.AddPerk(_CCCustomDestruction)
player.AddPerk(_CCCustomEnchanting)
player.AddPerk(_CCCustomConjuration)
player.AddPerk(_CCCustomAlchemy)
player.AddPerk(_CCCustomLockpicking)
;Set Secondary Skill
player.AddSpell(_CCMysticismAbility)
;Witchhunter Class Bonus
player.AddSpell(_CCWitchhunterAbility)
;Run Class Build Function
BuildClass()
EndIf
Elseif ibutton == 1
MagicSpecializationMenu()
EndIf
EndFunction
;-------------------------------------------------------------------------
;BIRTHSIGN MAIN MENU SECTION
;-------------------------------------------------------------------------
Function BSTopMenu() ;BIRTHSIGN TOP MENU
int ibutton = _BSTopMenu.Show()
if ibutton == 0
TravelerMenu()
elseif ibutton == 1
BirthsignChoice()
EndIf
EndFunction
Function TravelerMenu() ;TRAVELER MENU
int ibutton = _BSTravelerMenu.Show()
if ibutton == 1
BSTopMenu()
Else
EndIf
EndFunction
Function BirthsignChoice() ;BIRTHSIGN ERA CHOICE
int ibutton = _BSBirthsignChoiceMenu.Show()
if ibutton == 0
BirthsignMenu3E()
Elseif ibutton == 1
BirthsignMenu()
Elseif ibutton == 2
BSTopMenu()
EndIf
EndFunction
;-------------------------------------------------------------------------
;THIRD ERA BIRTHSIGN SECTION
;-------------------------------------------------------------------------
Function BirthsignMenu3E() ;BIRTHSIGNS MENUS
int ibutton = _BSBirthsignMenu.Show()
if ibutton == 0
BSWarriorChargesMenu3e()
Elseif ibutton == 1
BSMageChargesMenu3e()
Elseif ibutton == 2
BSThiefChargesMenu3e()
Elseif ibutton == 3
SerpentMenu3e()
Elseif ibutton == 4
BirthsignChoice()
EndIf
EndFunction
Function BSWarriorSignMenu3E() ;WARRIOR SIGN MENU
int ibutton = _BSWarriorSignMenu3E.Show()
if ibutton == 1
BSWarriorChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSWarriorSign)
EndIf
EndFunction
Function BSWarriorChargesMenu3E() ;WARRIOR CHARGES MENU
int ibutton = _BSWarriorChargesMenu.Show()
if ibutton == 0
BSWarriorSignMenu3E()
Elseif ibutton == 1
LadyMenu3E()
Elseif ibutton == 2
SteedMenu3E()
Elseif ibutton == 3
LordMenu3E()
Elseif ibutton == 4
BirthsignMenu3E()
EndIf
EndFunction
Function BSMageSignMenu3E() ;MAGE SIGN MENU
int ibutton = _BSMageSignMenu3E.Show()
if ibutton == 1
BSMageChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSMageSign)
EndIf
EndFunction
Function BSMageChargesMenu3E() ;MAGE CHARGES MENU
int ibutton = _BSMageChargesMenu.Show()
if ibutton == 0
BSMageSignMenu3E()
Elseif ibutton == 1
ApprenticeMenu3E()
Elseif ibutton == 2
AtronachMenu3E()
Elseif ibutton == 3
RitualMenu3E()
Elseif ibutton == 4
BirthsignMenu3E()
EndIf
EndFunction
Function BSThiefSignMenu3E() ;THIEF SIGN MENU
int ibutton = _BSThiefSignMenu3E.Show()
if ibutton == 1
BSThiefChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSThiefSign)
EndIf
EndFunction
Function BSThiefChargesMenu3E() ;THIEF CHARGES MENU
int ibutton = _BSThiefChargesMenu.Show()
if ibutton == 0
BSThiefSignMenu3E()
elseif ibutton == 1
LoverMenu3E()
Elseif ibutton == 2
ShadowMenu3E()
Elseif ibutton == 3
TowerMenu3E()
Elseif ibutton == 4
BirthsignMenu3E()
EndIf
EndFunction
Function SerpentMenu3E() ;SERPENT MENU
int ibutton = _BSSerpentMenu3E.Show()
if ibutton == 1
BirthsignMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSSerpentSign)
player.AddSpell(_BSSerpentAbility)
EndIf
EndFunction
Function LadyMenu3E() ;LADY MENU
int ibutton = _BSLadyMenu3E.Show()
if ibutton == 1
BSWarriorChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSLadySignHealth)
player.AddSpell(_BSLadySignMagicka)
EndIf
EndFunction
Function SteedMenu3E() ;STEED MENU
int ibutton = _BSSteedMenu3E.Show()
if ibutton == 1
BSWarriorChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSSteedSign)
EndIf
EndFunction
Function LordMenu3E() ;LORD MENU
int ibutton = _BSLordMenu3E.Show()
if ibutton == 1
BSWarriorChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSLordSign)
player.AddSpell(_BSLordSignAbility)
EndIf
EndFunction
Function ApprenticeMenu3E() ;APPRENTICE MENU
int ibutton = _BSApprenticeMenu3E.Show()
if ibutton == 1
BSMageChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSApprenticeSign)
player.AddSpell(_BSApprenticeSignNegativeAbility)
EndIf
EndFunction
Function AtronachMenu3E() ;ATRONACH MENU
int ibutton = _BSAtronachMenu3E.Show()
if ibutton == 1
BSMageChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSAtronachSign)
EndIf
EndFunction
Function RitualMenu3E() ;RITUAL MENU
int ibutton = _BSRitualMenu3E.Show()
if ibutton == 1
BSMageChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSRitualSignHealAbility)
player.AddSpell(_BSRitualSignTurnAbility)
EndIf
EndFunction
Function LoverMenu3E() ;LOVER MENU
int ibutton = _BSLoverMenu3E.Show()
if ibutton == 1
BSThiefChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSLoverSign)
EndIf
EndFunction
Function ShadowMenu3E() ;SHADOW MENU
int ibutton = _BSShadowMenu3E.Show()
if ibutton == 1
BSThiefChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSShadowSign)
EndIf
EndFunction
Function TowerMenu3E() ;TOWER MENU
int ibutton = _BSTowerMenu3E.Show()
if ibutton == 1
BSThiefChargesMenu3E()
Else
Actor player = Game.GetPlayer()
player.AddSpell(_BSTowerSign)
EndIf
EndFunction
;-------------------------------------------------------------------------
;FOURTH ERA BIRTHSIGN SECTION
;-------------------------------------------------------------------------
Function BirthsignMenu() ;BIRTHSIGNS MENUS
int ibutton = _BSBirthsignMenu.Show()
if ibutton == 0
BSWarriorChargesMenu()
Elseif ibutton == 1
BSMageChargesMenu()
Elseif ibutton == 2
BSThiefChargesMenu()
Elseif ibutton == 3
SerpentMenu()
Elseif ibutton == 4
BirthsignChoice()
EndIf
EndFunction
Function BSWarriorSignMenu() ;WARRIOR SIGN MENU
int ibutton = _BSWarriorSignMenu.Show()
if ibutton == 1
BSWarriorChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomWarriorAbility)
EndIf
EndFunction
Function BSWarriorChargesMenu() ;WARRIOR CHARGES MENU
int ibutton = _BSWarriorChargesMenu.Show()
if ibutton == 0
BSWarriorSignMenu()
Elseif ibutton == 1
LadyMenu()
Elseif ibutton == 2
SteedMenu()
Elseif ibutton == 3
LordMenu()
Elseif ibutton == 4
BirthsignMenu()
EndIf
EndFunction
Function BSMageSignMenu() ;MAGE SIGN MENU
int ibutton = _BSMageSignMenu.Show()
if ibutton == 1
BSMageChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomMageAbility)
EndIf
EndFunction
Function BSMageChargesMenu() ;MAGE CHARGES MENU
int ibutton = _BSMageChargesMenu.Show()
if ibutton == 0
BSMageSignMenu()
Elseif ibutton == 1
ApprenticeMenu()
Elseif ibutton == 2
AtronachMenu()
Elseif ibutton == 3
RitualMenu()
Elseif ibutton == 4
BirthsignMenu()
EndIf
EndFunction
Function BSThiefSignMenu() ;THIEF SIGN MENU
int ibutton = _BSThiefSignMenu.Show()
if ibutton == 1
BSThiefChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomThiefAbility)
EndIf
EndFunction
Function BSThiefChargesMenu() ;THIEF CHARGES MENU
int ibutton = _BSThiefChargesMenu.Show()
if ibutton == 0
BSThiefSignMenu()
elseif ibutton == 1
LoverMenu()
Elseif ibutton == 2
ShadowMenu()
Elseif ibutton == 3
TowerMenu()
Elseif ibutton == 4
BirthsignMenu()
EndIf
EndFunction
Function SerpentMenu() ;SERPENT MENU
int ibutton = _BSSerpentMenu.Show()
if ibutton == 1
BirthsignMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomSerpentAbility)
EndIf
EndFunction
Function LadyMenu() ;LADY MENU
int ibutton = _BSLadyMenu.Show()
if ibutton == 1
BSWarriorChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomLadyAbility)
EndIf
EndFunction
Function SteedMenu() ;STEED MENU
int ibutton = _BSSteedMenu.Show()
if ibutton == 1
BSWarriorChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomSteedAbility)
EndIf
EndFunction
Function LordMenu() ;LORD MENU
int ibutton = _BSLordMenu.Show()
if ibutton == 1
BSWarriorChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomLordAbility)
EndIf
EndFunction
Function ApprenticeMenu() ;APPRENTICE MENU
int ibutton = _BSApprenticeMenu.Show()
if ibutton == 1
BSMageChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomApprenticeAbility)
player.AddSpell(doomApprenticeNegativeAbility)
EndIf
EndFunction
Function AtronachMenu() ;ATRONACH MENU
int ibutton = _BSAtronachMenu.Show()
if ibutton == 1
BSMageChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomAtronachAbility)
EndIf
EndFunction
Function RitualMenu() ;RITUAL MENU
int ibutton = _BSRitualMenu.Show()
if ibutton == 1
BSMageChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomRitualAbility)
EndIf
EndFunction
Function LoverMenu() ;LOVER MENU
int ibutton = _BSLoverMenu.Show()
if ibutton == 1
BSThiefChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomLoverAbility)
EndIf
EndFunction
Function ShadowMenu() ;SHADOW MENU
int ibutton = _BSShadowMenu.Show()
if ibutton == 1
BSThiefChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomShadowAbility)
EndIf
EndFunction
Function TowerMenu() ;TOWER MENU
int ibutton = _BSTowerMenu.Show()
if ibutton == 1
BSThiefChargesMenu()
Else
CleanUpSigns()
Actor player = Game.GetPlayer()
player.AddSpell(doomTowerAbility)
EndIf
EndFunction
Function CleanUpSigns()
Actor player = Game.GetPlayer()
player.RemoveSpell(doomApprenticeAbility)
player.RemoveSpell(doomApprenticeNegativeAbility)
player.RemoveSpell(doomAtronachAbility)
player.RemoveSpell(doomLadyAbility)
player.RemoveSpell(doomLordAbility)
player.RemoveSpell(doomLoverAbility)
player.RemoveSpell(doomMageAbility)
player.RemoveSpell(doomRitualAbility)
player.RemoveSpell(doomSerpentAbility)
player.RemoveSpell(doomShadowAbility)
player.RemoveSpell(doomSteedAbility)
player.RemoveSpell(doomThiefAbility)
player.RemoveSpell(doomTowerAbility)
player.RemoveSpell(doomWarriorAbility)
EndFunction
;-------------------------------------------------------------------------
;CUSTOM CLASS SECTION
;-------------------------------------------------------------------------
message property _CCCustomTopMenu auto
message property _CCCustomSpecialist auto
message property _CCCustomCombatSkillAdded auto
message property _CCCustomStealthSkillAdded auto
message property _CCCustomMagicSkillAdded auto
message property _CCCustomCombatSkills auto
message property _CCCustomStealthSkills auto
message property _CCCustomMagicSkills auto
message property _CCCustomViewClass auto
message property _CCCustomViewCombatSkills auto
message property _CCCustomViewStealthSkills auto
message property _CCCustomViewMagicSkills auto
message property _CCCustomSpecError auto
message property _CCCustomRemoveSpec auto
message property _CCCustomSpecRemoved auto
message property _CCCustomCombatSkillRemoved auto
message property _CCCustomStealthSkillRemoved auto
message property _CCCustomMagicSkillRemoved auto
message property _CCCustomSkillsFull auto
message property _CCCustomCancelMenu auto
message property _CCCustomConfirmErrorSpec auto
message property _CCCustomConfirmErrorSkills auto
message property _CCCustomClassConfirm auto
message property _CCCustomSecondaryError auto
message property _CCCustomSecondarySkillRemoved auto
message property _CCCustomSecondarySkills auto
message property _CCCustomViewSecondarySkills auto
message property _CCCustomConfirmErrorSecondary auto
Perk Property _CCCustomCombatSpec Auto
Perk Property _CCCustomStealthSpec Auto
Perk Property _CCCustomMagicSpec Auto
Perk Property _CCCustomArchery Auto
Perk Property _CCCustomBlock Auto
Perk Property _CCCustomHeavyArmor Auto
Perk Property _CCCustomOneHanded Auto
Perk Property _CCCustomSmithing Auto
Perk Property _CCCustomTwoHanded Auto
Perk Property _CCCustomAlchemy Auto
Perk Property _CCCustomLightArmor Auto
Perk Property _CCCustomLockpicking Auto
Perk Property _CCCustomPickpocket Auto
Perk Property _CCCustomSneak Auto
Perk Property _CCCustomSpeech Auto
Perk Property _CCCustomAlteration Auto
Perk Property _CCCustomConjuration Auto
Perk Property _CCCustomDestruction Auto
Perk Property _CCCustomEnchanting Auto
Perk Property _CCCustomIllusion Auto
Perk Property _CCCustomRestoration Auto
Perk Property _CCCustomHandtoHand Auto
Perk Property _CCCustomAthletics Auto
Perk Property _CCCustomAcrobatics Auto
Perk Property _CCCustomUnarmored Auto
Perk Property _CCCustomMysticism Auto
int skillcount = 0
int secondary = 0
Function CustomClassMenu() ;CUSTOM CLASS TOP MENU
int ibutton = _CCCustomTopMenu.Show()
if ibutton == 0
SpecializationBonusMenu()
elseif ibutton == 1
CombatSkillsMenu()
elseif ibutton == 2
StealthSkillsMenu()
elseif ibutton == 3
MagicSkillsMenu()
elseif ibutton == 4
if secondary < 1
SecondarySkillsMenu()
Else
SecondaryChosen()
EndIf
elseif ibutton == 5
ViewCustomClass()
elseif ibutton == 6
CancelMenu()
EndIf
EndFunction
Function CancelMenu() ;CANCEL CUSTOMIZATION
int ibutton = _CCCustomCancelMenu.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
player.RemovePerk(_CCCustomCombatSpec)
player.RemovePerk(_CCCustomStealthSpec)
player.RemovePerk(_CCCustomMagicSpec)
player.RemovePerk(_CCCustomArchery)
player.RemovePerk(_CCCustomBlock)
player.RemovePerk(_CCCustomHeavyArmor)
player.RemovePerk(_CCCustomOneHanded)
player.RemovePerk(_CCCustomSmithing)
player.RemovePerk(_CCCustomTwoHanded)
player.RemovePerk(_CCCustomAlchemy)
player.RemovePerk(_CCCustomLightArmor)
player.RemovePerk(_CCCustomLockpicking)
player.RemovePerk(_CCCustomPickpocket)
player.RemovePerk(_CCCustomSneak)
player.RemovePerk(_CCCustomSpeech)
player.RemovePerk(_CCCustomAlteration)
player.RemovePerk(_CCCustomConjuration)
player.RemovePerk(_CCCustomDestruction)
player.RemovePerk(_CCCustomEnchanting)
player.RemovePerk(_CCCustomIllusion)
player.RemovePerk(_CCCustomRestoration)
player.RemovePerk(_CCCustomHandtoHand)
player.RemovePerk(_CCCustomAthletics)
player.RemovePerk(_CCCustomAcrobatics)
player.RemovePerk(_CCCustomUnarmored)
player.RemovePerk(_CCCustomMysticism)
skillcount = 0
TopMenu()
elseif ibutton == 1
CustomClassMenu()
EndIf
EndFunction
Function SpecializationBonusMenu() ;SPECIALIZATION BONUS MENU
int ibutton = _CCCustomSpecialist.Show()
Actor player = Game.GetPlayer()
bool SpecError = (player.HasPerk(_CCCustomCombatSpec) || player.HasPerk(_CCCustomStealthSpec) || player.HasPerk(_CCCustomMagicSpec))
if SpecError == True
SpecError()
elseif ibutton == 0
player.AddPerk(_CCCustomCombatSpec)
CustomClassMenu()
elseif ibutton == 1
player.AddPerk(_CCCustomStealthSpec)
CustomClassMenu()
elseif ibutton == 2
player.AddPerk(_CCCustomMagicSpec)
CustomClassMenu()
elseif ibutton == 3
CustomClassMenu()
EndIf
EndFunction
Function SpecError() ;SPECIALIZATION ERROR
int ibutton = _CCCustomSpecError.Show()
if ibutton == 0
CustomClassMenu()
EndIf
EndFunction
Function CombatSkillsMenu() ;COMBAT SKILL SELECTION
int ibutton = _CCCustomCombatSkills.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
if (skillcount < 7)
player.AddPerk(_CCCustomArchery)
skillcount += 1
CombatSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 1
if (skillcount < 7)
player.AddPerk(_CCCustomBlock)
skillcount += 1
CombatSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 2
if (skillcount < 7)
player.AddPerk(_CCCustomHeavyArmor)
skillcount += 1
CombatSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 3
if (skillcount < 7)
player.AddPerk(_CCCustomOneHanded)
skillcount += 1
CombatSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 4
if (skillcount < 7)
player.AddPerk(_CCCustomSmithing)
skillcount += 1
CombatSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 5
if (skillcount < 7)
player.AddPerk(_CCCustomTwoHanded)
skillcount += 1
CombatSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 6
CustomClassMenu()
EndIf
EndFunction
Function CombatSkillAdded() ;SKILL (COMBAT) ADDED NOTIFICATION
int ibutton = _CCCustomCombatSkillAdded.Show()
if ibutton == 0
CombatSkillsMenu()
EndIf
EndFunction
Function StealthSkillsMenu() ;STEALTH SKILL SELECTION
int ibutton = _CCCustomStealthSkills.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
if skillcount < 7
player.AddPerk(_CCCustomAlchemy)
skillcount += 1
StealthSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 1
if skillcount < 7
player.AddPerk(_CCCustomLightArmor)
skillcount += 1
StealthSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 2
if skillcount < 7
player.AddPerk(_CCCustomLockpicking)
skillcount += 1
StealthSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 3
if skillcount < 7
player.AddPerk(_CCCustomPickpocket)
skillcount += 1
StealthSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 4
if skillcount < 7
player.AddPerk(_CCCustomSneak)
skillcount += 1
StealthSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 5
if skillcount < 7
player.AddPerk(_CCCustomSpeech)
skillcount += 1
StealthSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 6
CustomClassMenu()
EndIf
EndFunction
Function StealthSkillAdded() ;SKILL (STEALTH) ADDED NOTIFICATION
int ibutton = _CCCustomStealthSkillAdded.Show()
if ibutton == 0
StealthSkillsMenu()
EndIf
EndFunction
Function MagicSkillsMenu() ;MAGIC SKILL SELECTION
int ibutton = _CCCustomMagicSkills.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
if skillcount < 7
player.AddPerk(_CCCustomAlteration)
skillcount += 1
MagicSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 1
if skillcount < 7
player.AddPerk(_CCCustomConjuration)
skillcount += 1
MagicSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 2
if skillcount < 7
player.AddPerk(_CCCustomDestruction)
skillcount += 1
MagicSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 3
if skillcount < 7
player.AddPerk(_CCCustomEnchanting)
skillcount += 1
MagicSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 4
if skillcount < 7
player.AddPerk(_CCCustomIllusion)
skillcount += 1
MagicSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 5
if skillcount < 7
player.AddPerk(_CCCustomRestoration)
skillcount += 1
MagicSkillAdded()
Else
SkillsFull()
Endif
elseif ibutton == 6
CustomClassMenu()
EndIf
EndFunction
Function MagicSkillAdded() ;SKILL (MAGIC) ADDED NOTIFICATION
int ibutton = _CCCustomMagicSkillAdded.Show()
if ibutton == 0
MagicSkillsMenu()
EndIf
EndFunction
Function SecondarySkillsMenu()
Actor player = Game.GetPlayer()
int ibutton = _CCCustomSecondarySkills.Show()
if ibutton == 0
player.AddPerk(_CCCustomHandtoHand)
secondary += 1
SecondarySkillAdded()
elseif ibutton == 1
player.AddPerk(_CCCustomAthletics)
secondary += 1
SecondarySkillAdded()
elseif ibutton == 2
player.AddPerk(_CCCustomAcrobatics)
secondary += 1
SecondarySkillAdded()
elseif ibutton == 3
player.AddPerk(_CCCustomUnarmored)
secondary += 1
SecondarySkillAdded()
elseif ibutton == 4
player.AddPerk(_CCCustomMysticism)
secondary += 1
SecondarySkillAdded()
elseif ibutton == 5
CustomClassMenu()
Endif
EndFunction
Function SecondarySkillAdded() ;SKILL (SECONDARY) ADDED NOTIFICATION
int ibutton = _CCCustomMagicSkillAdded.Show()
if ibutton == 0
CustomClassMenu()
EndIf
EndFunction
Function SecondaryChosen() ;SECONDARY CHOSEN ERROR
int ibutton = _CCCustomSecondaryError.Show()
if ibutton == 0
CustomClassMenu()
EndIf
EndFunction
Function SkillsFull() ;SKILL FULL ERROR
int ibutton = _CCCustomSkillsFull.Show()
if ibutton == 0
CustomClassMenu()
EndIf
EndFunction
Function ViewCustomClass() ;VIEW CUSTOM CLASS
int ibutton = _CCCustomViewClass.Show()
Actor player = Game.GetPlayer()
bool SpecError = (player.HasPerk(_CCCustomCombatSpec) || player.HasPerk(_CCCustomStealthSpec) || player.HasPerk(_CCCustomMagicSpec))
bool SecSkillError = (player.HasPerk(_CCCustomHandtoHand) || player.HasPerk(_CCCustomAthletics) || player.HasPerk(_CCCustomAcrobatics)) || player.HasPerk(_CCCustomUnarmored) || player.HasPerk(_CCCustomMysticism)
if ibutton == 0
RemoveSpecialization()
elseif ibutton == 1
RemoveSpecialization()
elseif ibutton == 2
RemoveSpecialization()
elseif ibutton == 3
ViewCombatSkills()
elseif ibutton == 4
ViewStealthSkills()
elseif ibutton == 5
ViewMagicSkills()
elseif ibutton == 6
ViewSecondarySkills()
elseif ibutton == 7
if SpecError == False
ConfirmErrorSpec()
elseif skillcount < 7
ConfirmErrorSkills()
elseif secondary < 1
ConfirmErrorSecondary()
else
ConfirmCustomClass()
endif
elseif ibutton == 8
CustomClassMenu()
EndIf
EndFunction
Function RemoveSpecialization() ;REMOVE SPECIALIZATION
int ibutton = _CCCustomRemoveSpec.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
player.RemovePerk(_CCCustomCombatSpec)
player.RemovePerk(_CCCustomStealthSpec)
player.RemovePerk(_CCCustomMagicSpec)
SpecRemoved()
elseif ibutton == 1
ViewCustomClass()
EndIf
EndFunction
Function SpecRemoved() ;SPEC REMOVED NOTIFICATION
int ibutton = _CCCustomSpecRemoved.Show()
if ibutton == 0
ViewCustomClass()
EndIf
EndFunction
Function ViewCombatSkills() ;REMOVE COMBAT SKILL MENU
int ibutton = _CCCustomViewCombatSkills.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
player.RemovePerk(_CCCustomArchery)
skillcount -= 1
CombatSkillRemoved()
elseif ibutton == 1
player.RemovePerk(_CCCustomBlock)
skillcount -= 1
CombatSkillRemoved()
elseif ibutton == 2
player.RemovePerk(_CCCustomHeavyArmor)
skillcount -= 1
CombatSkillRemoved()
elseif ibutton == 3
player.RemovePerk(_CCCustomOneHanded)
skillcount -= 1
CombatSkillRemoved()
elseif ibutton == 4
player.RemovePerk(_CCCustomSmithing)
skillcount -= 1
CombatSkillRemoved()
elseif ibutton == 5
player.RemovePerk(_CCCustomTwoHanded)
skillcount -= 1
CombatSkillRemoved()
elseif ibutton == 6
ViewCustomClass()
EndIf
EndFunction
Function CombatSkillRemoved() ;SKILL (COMBAT) REMOVED NOTIFICATION
int ibutton = _CCCustomCombatSkillRemoved.Show()
if ibutton == 0
ViewCombatSkills()
EndIf
EndFunction
Function ViewStealthSkills() ;REMOVE STEALTH SKILL MENU
int ibutton = _CCCustomViewStealthSkills.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
player.RemovePerk(_CCCustomAlchemy)
skillcount -= 1
StealthSkillRemoved()
elseif ibutton == 1
player.RemovePerk(_CCCustomLightArmor)
skillcount -= 1
StealthSkillRemoved()
elseif ibutton == 2
player.RemovePerk(_CCCustomLockpicking)
skillcount -= 1
StealthSkillRemoved()
elseif ibutton == 3
player.RemovePerk(_CCCustomPickpocket)
skillcount -= 1
StealthSkillRemoved()
elseif ibutton == 4
player.RemovePerk(_CCCustomSneak)
skillcount -= 1
StealthSkillRemoved()
elseif ibutton == 5
player.RemovePerk(_CCCustomSpeech)
skillcount -= 1
StealthSkillRemoved()
elseif ibutton == 6
ViewCustomClass()
EndIf
EndFunction
Function StealthSkillRemoved() ;SKILL (STEALTH) REMOVED NOTIFICATION
int ibutton = _CCCustomStealthSkillRemoved.Show()
if ibutton == 0
ViewStealthSkills()
EndIf
EndFunction
Function ViewMagicSkills() ;REMOVE MAGIC SKILL MENU
int ibutton = _CCCustomViewMagicSkills.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
player.RemovePerk(_CCCustomAlteration)
skillcount -= 1
MagicSkillRemoved()
elseif ibutton == 1
player.RemovePerk(_CCCustomConjuration)
skillcount -= 1
MagicSkillRemoved()
elseif ibutton == 2
player.RemovePerk(_CCCustomDestruction)
skillcount -= 1
MagicSkillRemoved()
elseif ibutton == 3
player.RemovePerk(_CCCustomEnchanting)
skillcount -= 1
MagicSkillRemoved()
elseif ibutton == 4
player.RemovePerk(_CCCustomIllusion)
skillcount -= 1
MagicSkillRemoved()
elseif ibutton == 5
player.RemovePerk(_CCCustomRestoration)
skillcount -= 1
MagicSkillRemoved()
elseif ibutton == 6
ViewCustomClass()
EndIf
EndFunction
Function MagicSkillRemoved() ;SKILL (MAGIC) REMOVED NOTIFICATION
int ibutton = _CCCustomMagicSkillRemoved.Show()
if ibutton == 0
ViewMagicSkills()
EndIf
EndFunction
Function ViewSecondarySkills() ;REMOVE SECONDARY SKILL MENU
int ibutton = _CCCustomViewSecondarySkills.Show()
Actor player = Game.GetPlayer()
if ibutton == 0
player.RemovePerk(_CCCustomHandtoHand)
secondary -= 1
SecondarySkillRemoved()
elseif ibutton == 1
player.RemovePerk(_CCCustomAthletics)
secondary -= 1
SecondarySkillRemoved()
elseif ibutton == 2
player.RemovePerk(_CCCustomAcrobatics)
secondary -= 1
SecondarySkillRemoved()
elseif ibutton == 3
player.RemovePerk(_CCCustomUnarmored)
secondary -= 1
SecondarySkillRemoved()
elseif ibutton == 4
player.RemovePerk(_CCCustomMysticism)
secondary -= 1
SecondarySkillRemoved()
elseif ibutton == 5
ViewCustomClass()
EndIf
EndFunction
Function SecondarySkillRemoved() ;SKILL (MAGIC) REMOVED NOTIFICATION
int ibutton = _CCCustomSecondarySkillRemoved.Show()
if ibutton == 0
ViewCustomClass()
EndIf
EndFunction
Function ConfirmErrorSkills() ;NO SKILLS CONFIRM ERROR
int ibutton = _CCCustomConfirmErrorSkills.Show()
if ibutton == 0
ViewCustomClass()
EndIf
Endfunction
Function ConfirmErrorSecondary() ;NO SECONDARY CONFIRM ERROR
int ibutton = _CCCustomConfirmErrorSecondary.Show()
if ibutton == 0
ViewCustomClass()
EndIf
Endfunction
Function ConfirmErrorSpec() ;NO SPEC CONFIRM ERROR
int ibutton = _CCCustomConfirmErrorSpec.Show()
if ibutton == 0
ViewCustomClass()
EndIf
Endfunction
Function ConfirmCustomClass() ;CONFIRM CUSTOM CLASS
int ibutton = _CCCustomClassConfirm.Show()
if ibutton == 0
BuildClass()
elseif ibutton == 1
ViewCustomClass()
Endif
EndFunction
Function BuildClass() ;BUILD CUSTOM CLASS
;Define variables and add starting spells
Actor player = Game.GetPlayer()
int CCOneHanded = 0
int CCTwoHanded = 0
int CCMarksman = 0
int CCBlock = 0
int CCSmithing = 0
int CCHeavyArmor = 0
int CCLightArmor = 0
int CCLockpicking = 0
int CCPickpocket = 0
int CCSneak = 0
int CCAlchemy = 0
int CCSpeechcraft = 0
int CCAlteration = 0
int CCConjuration = 0
int CCDestruction = 0
int CCIllusion = 0
int CCRestoration = 0
int CCEnchanting = 0
if player.HasPerk(_CCCustomOneHanded) == True
CCOneHanded = 20
EndIf
if player.HasPerk(_CCCustomTwoHanded) == True
CCTwoHanded = 20
EndIf
if player.HasPerk(_CCCustomArchery) == True
CCMarksman = 20
EndIf
if player.HasPerk(_CCCustomBlock) == True
CCBlock = 20
EndIf
if player.HasPerk(_CCCustomSmithing) == True
CCSmithing = 20
EndIf
if player.HasPerk(_CCCustomHeavyArmor) == True
CCHeavyArmor = 20
EndIf
if player.HasPerk(_CCCustomLightArmor) == True
CCLightArmor = 20
EndIf
if player.HasPerk(_CCCustomLockpicking) == True
CCLockpicking = 20
EndIf
if player.HasPerk(_CCCustomPickpocket) == True
CCPickpocket = 20
EndIf
if player.HasPerk(_CCCustomSneak) == True
CCSneak = 20
EndIf
if player.HasPerk(_CCCustomAlchemy) == True
CCAlchemy = 20
EndIf
if player.HasPerk(_CCCustomSpeech) == True
CCSpeechcraft = 20
endif
if player.HasPerk(_CCCustomAlteration) == True
CCAlteration = 20
player.AddSpell(Oakflesh)
player.AddSpell(Magelight)
EndIf
if player.HasPerk(_CCCustomConjuration) == True
CCConjuration = 20
player.AddSpell(RaiseZombie)
player.AddSpell(SoulTrap)
EndIf
if player.HasPerk(_CCCustomDestruction) == True
CCDestruction = 20
player.AddSpell(Flames)
player.AddSpell(FrostRune)
endif
if player.HasPerk(_CCCustomIllusion) == True
CCIllusion = 20
player.AddSpell(Clairvoyance)
player.AddSpell(Calm)
endif
if player.HasPerk(_CCCustomRestoration) == True
CCRestoration = 20
player.AddSpell(Healing)
player.AddSpell(TurnLesserUndead)
EndIf
if player.HasPerk(_CCCustomEnchanting) == True
CCEnchanting = 20
EndIf
;Add specialization bonuses
if player.HasPerk(_CCCustomCombatSpec) == True
player.SetActorValue("Stamina", 120)
EndIf
if player.HasPerk(_CCCustomStealthSpec) == True
player.SetActorValue("Health", 120)
EndIf
if player.HasPerk(_CCCustomMagicSpec) == True
player.SetActorValue("Magicka", 120)
EndIf
;Add Secondary Skills
if player.HasPerk(_CCCustomHandtoHand) == True
player.AddSpell(_CCUnarmedBonus)
EndIf
if player.HasPerk(_CCCustomAthletics) == True
player.AddSpell(_CCAthleticsAbility)
player.AddSpell(_CCAthleticsStaAbility)
EndIf
if player.HasPerk(_CCCustomAcrobatics) == True
player.AddSpell(_CCAcrobaticsAbility)
player.AddSpell(_CCAcrobaticsStaAbility)
EndIf
if player.HasPerk(_CCCustomUnarmored) == True
player.AddSpell(_CCUnarmoredAbility)
EndIf
if player.HasPerk(_CCCustomMysticism) == True
player.AddSpell(_CCMysticismAbility)
EndIf
;Define the Racial Bonuses
int OneHandedRaceBonus = (player.GetActorValue("OneHanded") - 15) as Int
int TwoHandedRaceBonus = (player.GetActorValue("TwoHanded") - 15) as Int
int MarksmanRaceBonus = (player.GetActorValue("Marksman") - 15) as Int
int BlockRaceBonus = (player.GetActorValue("Block") - 15) as Int
int SmithingRaceBonus = (player.GetActorValue("Smithing") - 15) as Int
int HeavyArmorRaceBonus = (player.GetActorValue("HeavyArmor") - 15) as Int
int LightArmorRaceBonus = (player.GetActorValue("LightArmor") - 15) as Int
int LockpickingRaceBonus = (player.GetActorValue("Lockpicking") - 15) as Int
int PickpocketRaceBonus = (player.GetActorValue("Pickpocket") - 15) as Int
int SneakRaceBonus = (player.GetActorValue("Sneak") - 15) as Int
int AlchemyRaceBonus = (player.GetActorValue("Alchemy") - 15) as Int
int SpeechcraftRaceBonus = (player.GetActorValue("Speechcraft") - 15) as Int
int AlterationRaceBonus = (player.GetActorValue("Alteration") - 15) as Int
int ConjurationRaceBonus = (player.GetActorValue("Conjuration") - 15) as Int
int DestructionRaceBonus = (player.GetActorValue("Destruction") - 15) as Int
int IllusionRaceBonus = (player.GetActorValue("Illusion") - 15) as Int
int RestorationRaceBonus = (player.GetActorValue("Restoration") - 15) as Int
int EnchantingRaceBonus = (player.GetActorValue("Enchanting") - 15) as Int
int playerlevel = Game.GetPlayer().GetLevel()
if playerlevel == 1
;Set the Class Skills
player.SetActorValue("OneHanded", 5+OneHandedRaceBonus+CCOneHanded)
player.SetActorValue("TwoHanded", 5+TwoHandedRaceBonus+CCTwoHanded)
player.SetActorValue("Marksman", 5+MarksmanRaceBonus+CCMarksman)
player.SetActorValue("Block", 5+BlockRaceBonus+CCBlock)
player.SetActorValue("Smithing", 5+SmithingRaceBonus+CCSmithing)
player.SetActorValue("HeavyArmor", 5+HeavyArmorRaceBonus+CCHeavyArmor)
player.SetActorValue("LightArmor", 5+LightArmorRaceBonus+CCLightArmor)
player.SetActorValue("Lockpicking", 5+LockpickingRaceBonus+CCLockpicking)
player.SetActorValue("Pickpocket", 5+PickpocketRaceBonus+CCPickpocket)
player.SetActorValue("Sneak", 5+SneakRaceBonus+CCSneak)
player.SetActorValue("Alchemy", 5+AlchemyRaceBonus+CCAlchemy)
player.SetActorValue("Speechcraft", 5+SpeechcraftRaceBonus+CCSpeechcraft)
player.SetActorValue("Alteration", 5+AlterationRaceBonus+CCAlteration)
player.SetActorValue("Conjuration", 5+ConjurationRaceBonus+CCConjuration)
player.SetActorValue("Destruction", 5+DestructionRaceBonus+CCDestruction)
player.SetActorValue("Illusion", 5+IllusionRaceBonus+CCIllusion)
player.SetActorValue("Restoration", 5+RestorationRaceBonus+CCRestoration)
player.SetActorValue("Enchanting", 5+EnchantingRaceBonus+CCEnchanting)
Endif
;Remove invisible perks
player.RemovePerk(_CCCustomCombatSpec)
player.RemovePerk(_CCCustomStealthSpec)
player.RemovePerk(_CCCustomMagicSpec)
player.RemovePerk(_CCCustomArchery)
player.RemovePerk(_CCCustomBlock)
player.RemovePerk(_CCCustomHeavyArmor)
player.RemovePerk(_CCCustomOneHanded)
player.RemovePerk(_CCCustomSmithing)
player.RemovePerk(_CCCustomTwoHanded)
player.RemovePerk(_CCCustomAlchemy)
player.RemovePerk(_CCCustomLightArmor)
player.RemovePerk(_CCCustomLockpicking)
player.RemovePerk(_CCCustomPickpocket)
player.RemovePerk(_CCCustomSneak)
player.RemovePerk(_CCCustomSpeech)
player.RemovePerk(_CCCustomAlteration)
player.RemovePerk(_CCCustomConjuration)
player.RemovePerk(_CCCustomDestruction)
player.RemovePerk(_CCCustomEnchanting)
player.RemovePerk(_CCCustomIllusion)
player.RemovePerk(_CCCustomRestoration)
player.RemovePerk(_CCCustomHandtoHand)
player.RemovePerk(_CCCustomAthletics)
player.RemovePerk(_CCCustomAcrobatics)
player.RemovePerk(_CCCustomUnarmored)
player.RemovePerk(_CCCustomMysticism)
;Run Birthsign Menu
if playerlevel == 1
BSTopMenu()
else
CurrentBirthsignMenu()
EndIf
EndFunction

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...