I tweaked a script from Realistic Room Rentals, so that I can extend the sliders for room cost from 1 to 1000 (instead of 1 to 250).
But for some reason, I failed to recompile it, without any errors (only says "
I just copied the .psc file into the Data folder of Skyrim, opened the Creation KIt and tried to compile it, but it failed.
Am I doing something wrong?
This is the modified script:
Spoiler
Scriptname RRR_ConfigScript extends SKI_ConfigBaseQuest Property RRRTrackingQuest AutoGlobalVariable Property RRR_State AutoGlobalVariable Property RRR_EnhancedMode AutoGlobalVariable Property RRR_FlwerBedOwnership AutoQuest Property DialogueGeneric AutoQuest Property DialogueRiverwood_Revised AutoGlobalVariable Property RRR_KegCost AutoGlobalVariable Property RoomCost AutoGlobalVariable Property RRR_Discount3Days AutoGlobalVariable Property RRR_DiscountLPatron AutoGlobalVariable Property RRR_RoomCostDefault AutoGlobalVariable Property RRR_RoomCostBraidwoodInn AutoGlobalVariable Property RRR_RoomCostCandlehearthHall AutoGlobalVariable Property RRR_RoomCostDeadMansDrink AutoGlobalVariable Property RRR_RoomCostFourShieldsTavern AutoGlobalVariable Property RRR_RoomCostFrostfruitInn AutoGlobalVariable Property RRR_RoomCostMoorsideInn AutoGlobalVariable Property RRR_RoomCostNightgateInn AutoGlobalVariable Property RRR_RoomCostOldHroldanInn AutoGlobalVariable Property RRR_RoomCostSilverBloodInn AutoGlobalVariable Property RRR_RoomCostSleepingGiantInn AutoGlobalVariable Property RRR_RoomCostTheBanneredMare AutoGlobalVariable Property RRR_RoomCostTheBeeandBarb AutoGlobalVariable Property RRR_RoomCostTheFrozenHearth AutoGlobalVariable Property RRR_RoomCostTheWinkingSkeever AutoGlobalVariable Property RRR_RoomCostVilemyrInn AutoGlobalVariable Property RRR_RoomCostWindpeakInn AutoGlobalVariable Property RRR_RoomCostRetchingNetch Autoevent OnConfigInit() Pages = new string[1] Pages[0] = "$Configuration" endEventint OID_Statusint OID_Versionint OID_EnhancedModeint OID_FlwerBedOwnershipint OID_KegCostint OID_Discount3Daysint OID_DiscountLPatronint OID_RoomCostDefaultint OID_BraidwoodInnint OID_CandlehearthHallint OID_DeadMansDrinkint OID_FourShieldsTavernint OID_FrostfruitInnint OID_MoorsideInnint OID_NightgateInnint OID_OldHroldanInnint OID_SilverBloodInnint OID_SleepingGiantInnint OID_TheBanneredMareint OID_TheBeeandBarbint OID_TheFrozenHearthint OID_TheWinkingSkeeverint OID_VilemyrInnint OID_WindpeakInnint OID_RetchingNetchevent OnPageReset(string a_page) if (a_page == "$Configuration") SetCursorFillMode(TOP_TO_BOTTOM) AddHeaderOption("$RoomCostConfiguration") OID_BraidwoodInn = AddSliderOption("$BraidwoodInn", RRR_RoomCostBraidwoodInn.getValueInt()) OID_CandlehearthHall = AddSliderOption("$CandlehearthHall", RRR_RoomCostCandlehearthHall.getValueInt()) OID_DeadMansDrink = AddSliderOption("$DeadMansDrink", RRR_RoomCostDeadMansDrink.getValueInt()) OID_FourShieldsTavern = AddSliderOption("$FourShieldsTavern", RRR_RoomCostFourShieldsTavern.getValueInt()) OID_FrostfruitInn = AddSliderOption("$FrostfruitInn", RRR_RoomCostFrostfruitInn.getValueInt()) OID_MoorsideInn = AddSliderOption("$MoorsideInn", RRR_RoomCostMoorsideInn.getValueInt()) OID_NightgateInn = AddSliderOption("$NightgateInn", RRR_RoomCostNightgateInn.getValueInt()) OID_OldHroldanInn = AddSliderOption("$OldHroldanInn", RRR_RoomCostOldHroldanInn.getValueInt()) OID_SilverBloodInn = AddSliderOption("$SilverBloodInn", RRR_RoomCostSilverBloodInn.getValueInt()) OID_SleepingGiantInn = AddSliderOption("$SleepingGiantInn", RRR_RoomCostSleepingGiantInn.getValueInt()) OID_TheBanneredMare = AddSliderOption("$TheBanneredMare", RRR_RoomCostTheBanneredMare.getValueInt()) OID_TheBeeandBarb = AddSliderOption("$TheBeeandBarb", RRR_RoomCostTheBeeandBarb.getValueInt()) OID_TheFrozenHearth = AddSliderOption("$TheFrozenHearth", RRR_RoomCostTheFrozenHearth.getValueInt()) OID_RetchingNetch = AddSliderOption("$TheRetchingNetch", RRR_RoomCostRetchingNetch.getValueInt()) OID_TheWinkingSkeever = AddSliderOption("$TheWinkingSkeever", RRR_RoomCostTheWinkingSkeever.getValueInt()) OID_VilemyrInn = AddSliderOption("$VilemyrInn", RRR_RoomCostVilemyrInn.getValueInt()) OID_WindpeakInn = AddSliderOption("$WindpeakInn", RRR_RoomCostWindpeakInn.getValueInt()) SetCursorPosition(1) if RRR_State.getValue() == 0 OID_Status = AddTextOption("$RRRStart", "") else OID_Status = AddTextOption("$RRRStop", "") endif OID_Version = AddTextOption("$RRRCurrentVersion", "v1.8") AddEmptyOption() AddHeaderOption("$Options") OID_EnhancedMode = AddToggleOption("$EnhancedMode", RRR_EnhancedMode.getValueInt()) OID_FlwerBedOwnership = AddToggleOption("$FollowerBedOwnership", RRR_FlwerBedOwnership.getValueInt()) AddHeaderOption("$Discounts") OID_Discount3Days = AddSliderOption("$Discount3Days", RRR_Discount3Days.getValueInt(), "{0}%") OID_DiscountLPatron = AddSliderOption("$DiscountLPatron", RRR_DiscountLPatron.getValueInt(), "{0}%") AddHeaderOption("$Miscellaneous") OID_RoomCostDefault = AddSliderOption("$RoomCostDefault", RRR_RoomCostDefault.getValueInt()) OID_KegCost = AddSliderOption("$KegCost", RRR_KegCost.getValueInt(), "{0} gp/use") endIfendEventevent OnOptionSelect(int option) string page = CurrentPage if (option == OID_Status) if RRR_State.getValue() == 0 SetTextOptionValue(option, "$RRRExitMenu") RRR_Start() else SetTextOptionValue(option, "$RRRExitMenu") RRR_Stop() endif elseif (option == OID_EnhancedMode) toggle(RRR_EnhancedMode) SetToggleOptionValue(option, RRR_EnhancedMode.getValueInt()) elseif (option == OID_FlwerBedOwnership) toggle(RRR_FlwerBedOwnership) SetToggleOptionValue(option, RRR_FlwerBedOwnership.getValueInt()) endifendEventevent OnOptionSliderOpen(int option) if (option == OID_RoomCostDefault) SetSliderDialogStartValue(RRR_RoomCostDefault.getValueInt()) SetSliderDialogDefaultValue(50) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseif (option == OID_BraidwoodInn) SetSliderDialogStartValue(RRR_RoomCostBraidwoodInn.getValueInt()) SetSliderDialogDefaultValue(50) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_CandlehearthHall) SetSliderDialogStartValue(RRR_RoomCostCandlehearthHall.getValueInt()) SetSliderDialogDefaultValue(150) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_DeadMansDrink) SetSliderDialogStartValue(RRR_RoomCostDeadMansDrink.getValueInt()) SetSliderDialogDefaultValue(100) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_FourShieldsTavern) SetSliderDialogStartValue(RRR_RoomCostFourShieldsTavern.getValueInt()) SetSliderDialogDefaultValue(80) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_FrostfruitInn) SetSliderDialogStartValue(RRR_RoomCostFrostfruitInn.getValueInt()) SetSliderDialogDefaultValue(60) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_MoorsideInn) SetSliderDialogStartValue(RRR_RoomCostMoorsideInn.getValueInt()) SetSliderDialogDefaultValue(80) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_NightgateInn) SetSliderDialogStartValue(RRR_RoomCostNightgateInn.getValueInt()) SetSliderDialogDefaultValue(50) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_OldHroldanInn) SetSliderDialogStartValue(RRR_RoomCostOldHroldanInn.getValueInt()) SetSliderDialogDefaultValue(80) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_SilverBloodInn) SetSliderDialogStartValue(RRR_RoomCostSilverBloodInn.getValueInt()) SetSliderDialogDefaultValue(120) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_SleepingGiantInn) SetSliderDialogStartValue(RRR_RoomCostSleepingGiantInn.getValueInt()) SetSliderDialogDefaultValue(50) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_TheBanneredMare) SetSliderDialogStartValue(RRR_RoomCostTheBanneredMare.getValueInt()) SetSliderDialogDefaultValue(100) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_TheBeeandBarb) SetSliderDialogStartValue(RRR_RoomCostTheBeeandBarb.getValueInt()) SetSliderDialogDefaultValue(90) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_TheFrozenHearth) SetSliderDialogStartValue(RRR_RoomCostTheFrozenHearth.getValueInt()) SetSliderDialogDefaultValue(80) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_TheWinkingSkeever) SetSliderDialogStartValue(RRR_RoomCostTheWinkingSkeever.getValueInt()) SetSliderDialogDefaultValue(200) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_VilemyrInn) SetSliderDialogStartValue(RRR_RoomCostVilemyrInn.getValueInt()) SetSliderDialogDefaultValue(60) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_WindpeakInn) SetSliderDialogStartValue(RRR_RoomCostWindpeakInn.getValueInt()) SetSliderDialogDefaultValue(60) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_RetchingNetch) SetSliderDialogStartValue(RRR_RoomCostRetchingNetch.getValueInt()) SetSliderDialogDefaultValue(100) SetSliderDialogRange(1, 1000) SetSliderDialogInterval(1) elseIf (option == OID_Discount3Days) SetSliderDialogStartValue(RRR_Discount3Days.getValueInt()) SetSliderDialogDefaultValue(25) SetSliderDialogRange(0, 1000) SetSliderDialogInterval(1) elseIf (option == OID_DiscountLPatron) SetSliderDialogStartValue(RRR_DiscountLPatron.getValueInt()) SetSliderDialogDefaultValue(50) SetSliderDialogRange(0, 1000) SetSliderDialogInterval(1) elseIf (option == OID_KegCost) SetSliderDialogStartValue(RRR_KegCost.getValueInt()) SetSliderDialogDefaultValue(6) SetSliderDialogRange(0, 1000) SetSliderDialogInterval(1) endIfendEventevent OnOptionSliderAccept(int a_option, float a_value) if (a_option == OID_RoomCostDefault) RRR_RoomCostDefault.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_BraidwoodInn) RRR_RoomCostBraidwoodInn.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_CandlehearthHall) RRR_RoomCostCandlehearthHall.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_DeadMansDrink) RRR_RoomCostDeadMansDrink.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_FourShieldsTavern) RRR_RoomCostFourShieldsTavern.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_FrostfruitInn) RRR_RoomCostFrostfruitInn.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_MoorsideInn) RRR_RoomCostMoorsideInn.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_NightgateInn) RRR_RoomCostNightgateInn.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_OldHroldanInn) RRR_RoomCostOldHroldanInn.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_SilverBloodInn) RRR_RoomCostSilverBloodInn.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_SleepingGiantInn) RRR_RoomCostSleepingGiantInn.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_TheBanneredMare) RRR_RoomCostTheBanneredMare.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_TheBeeandBarb) RRR_RoomCostTheBeeandBarb.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_TheFrozenHearth) RRR_RoomCostTheFrozenHearth.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_TheWinkingSkeever) RRR_RoomCostTheWinkingSkeever.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_VilemyrInn) RRR_RoomCostVilemyrInn.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_WindpeakInn) RRR_RoomCostWindpeakInn.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_RetchingNetch) RRR_RoomCostRetchingNetch.setValue(a_value) SetSliderOptionValue(a_option, a_value) elseif (a_option == OID_Discount3Days) RRR_Discount3Days.setValue(a_value) SetSliderOptionValue(a_option, a_value, "{0}%") elseif (a_option == OID_DiscountLPatron) RRR_DiscountLPatron.setValue(a_value) SetSliderOptionValue(a_option, a_value, "{0}%") elseif (a_option == OID_KegCost) RRR_KegCost.setValue(a_value) SetSliderOptionValue(a_option, a_value, "{0} gp/use") endIf if RRRTrackingQuest.IsRunning() (RRRTrackingQuest as RRR_QuestScript).InnVisit(Game.GetPlayer().GetCurrentLocation()) endifendEventevent OnOptionHighlight(int option) if (option == OID_Status) SetInfoText("$HL_Status") elseif (option == OID_EnhancedMode) SetInfoText("$HL_EnhancedMode") elseif (option == OID_FlwerBedOwnership) SetInfoText("$HL_FlwerBedOwnership") elseif (option == OID_DiscountLPatron) SetInfoText("$HL_DiscountLPatron") elseif (option == OID_RoomCostDefault) SetInfoText("$HL_RoomCostDefault") elseif (option == OID_KegCost) SetInfoText("$HL_KegCost") endif ;SetInfoText("This is option B.\nOption B this is.\nDefault: true")endEventFunction RRR_Start() RRRTrackingQuest.Start() Utility.Wait(1) if RRRTrackingQuest.IsRunning() RRR_State.SetValue(1) (RRRTrackingQuest as RRR_QuestScript).InnVisit(Game.GetPlayer().GetCurrentLocation()) endifEndfunctionFunction RRR_Stop() (RRRTrackingQuest as RRR_QuestScript).Reset() RoomCost.SetValue(10) DialogueGeneric.UpdateCurrentInstanceGlobal(RoomCost) DialogueRiverwood_Revised.UpdateCurrentInstanceGlobal(RoomCost) RRRTrackingQuest.Stop() RRR_State.SetValue(0)EndFunctionFunction toggle(GlobalVariable gVar) if gVar.getValueInt() == 0 gVar.setValueInt(1) else gVar.setValueInt(0) endifEndFunction