Jump to content

Spouse store scripts/dialogues


Risuun

Recommended Posts

Does anyone know where the dialogue and scripts are for spouse's stores?

 

The dialogue starts with, "Has the store made any money?"

With the spouse reply, "We have a cozy little profit. This is your share, love."

 

I really want to get into those scripts and dialogues and see if I can add some more functionality.

 

Thanks in advance!

Link to comment
Share on other sites

Found it! The quest is: RelationshipMarriageFIN

 

Here's how I found it:

 

Opened up the creation kit and loaded Skyrim.esm

At the top, I hit 'Character' -> 'Export Dialogue...'

This exports all the dialogue into a text file in the main skyrim directory.

Then I just used Notepad++ to open that file and search (regular notepad isn't good with large files) for the dialogue text that I knew.

After the search is complete, scroll to the left and look at the entry right next to the voice type

Write down that quest name and find it in the Creation Kit!

 

 

Lol! Now I just need to learn scripting! Because, unless I'm missing something, the only code is: "LoveInterest.GiveGold()" I'll keep digging to see how the game keeps track of how much gold to give (as I've noticed it increases as days pass without asking for money)

Link to comment
Share on other sites

Ah, Aliases! Found LoveInterestFINScript!

 

ScriptName LoveInterestFINScript extends ReferenceAlias

LocationAlias Property CurrentMarriageHouse Auto
Spell Property MarriageSleepAbility Auto
Faction Property JobMerchantFaction Auto
MiscObject Property Gold001 Auto
GlobalVariable Property MarriageGoldEarned Auto

;how much gold spouse earns each day
Int GoldEarnedAmount = 100

Event OnSleepStop(bool abInterrupted)
if (abInterrupted == False) && (CurrentMarriageHouse.GetLocation() == Game.GetPlayer().GetCurrentLocation())
; 	    Debug.Trace(self + "Player has slept in the same location as the spouse. Apply Bonus.")
	MarriageSleepAbility.Cast(Game.GetPlayer(), Game.GetPlayer())
Else
; 		Debug.Trace(self + "Player is married, but hasn't slept in the same location as the spouse, or was woken up by something.")
EndIf
endEvent


Event OnUpdateGameTime()

; 	debug.trace(self + "OnUpdate event to calculate spouse store gold")
If Self.GetActorRef().IsInFaction(JobMerchantFaction)
; 		debug.trace(self + "Adding gold to spouse for store")
	MarriageGoldEarned.SetValue(MarriageGoldEarned.Value + GoldEarnedAmount)
EndIf

EndEvent

Function GiveGold()

; 	debug.trace(self + "spouse gives gold")
Game.GetPlayer().AddItem(Gold001, MarriageGoldEarned.GetValueInt())
MarriageGoldEarned.SetValue(0)

EndFunction

Link to comment
Share on other sites

My plan is to make a quick and dirty mod where I put items in a "store" container. Then, instead of having to manually sell stuff, I'll have my merchant of a wife take care of it for me! Of course, I want to set it up where I get a paycheck to give the money out over time so it's balanced. This won't net as much money as 100 barter with 29 enchanted gear, but it'll save my sanity and time!
Link to comment
Share on other sites

  • Recently Browsing   0 members

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