chajapa Posted June 21, 2017 Posted June 21, 2017 Created a follower specifically for Milk Mod Economy with MME as a master. (Her name is Elsie LaVache) I want to retrieve information from MME regarding her status. I would also like to get some information from Soul Gem Oven if it's installed. I do everything through dialogue and want to use the information as conditions for dialogue. So What I'm trying to accomplish is having these variable show up in the dialogue's list of quest variables when I select my quest.... I'm wondering if I should just put this in a separate script within the quest (not in the main script) and then call it from a script fragment. Something like: create a script called CheckStats ELV_MainQuest property ELV auto ;; set property for main quest Quest Property MME Auto ;; set property for MME ;; MME stuff float MMEMilks = StorageUtil.GetFloatValue(akSpeaker, "MME.MilkMaid.MilkCount") ; // get milk count from akSpeaker float MMEMaidLevel = StorageUtil.GetFloatValue(akSpeaker, "MME.MilkMaid.Level") ; // get level of akSpeaker ;; SGO stuff ;; not sure how to structure this but... If(Game.GetModByName("dcc-soulgem-oven-000.esm") != 255) float Function SGOPreg dcc_sgo_QuestController SGO = Quest.GetQuest("dcc_sgo_QuestController") as dcc_sgo_QuestController SGOPreg = SGO.ActorGemGetWeight(akActor, 0) EndFunction EndIf ********************************** Hoping to end up with 3 variables MMEMilks, MMEMaidLevel, and SGOPreg Then in script fragment: ELV.CheckStats to update ... I know I'm missing stuff.... can I get a hand?
Guest Posted June 21, 2017 Posted June 21, 2017 About dynamically get another script: dcc_sgo_QuestController SGO = None function myInit() ... if Game.GetModByName("dcc-soulgem-oven-000.esm") != -1 && Game.GetModByName("dcc-soulgem-oven-000.esm") != 255 SGO = Game.getFormFromFile("dcc-soulgem-oven-000.esm", <id of the quest>) as dcc_sgo_QuestController endIf ... endFunction
Recommended Posts
Archived
This topic is now archived and is closed to further replies.