-
Posts
24 -
Joined
-
Last visited
Everything posted by Good0Provider
-
When I use SEEdit "Export Dialogue" script, one of my topics has the full set of voices while others have just "no voice". I can't tell what is different in Creation Kit. Since it doesn't export the filename, I can't fix it post with a python script. How do I change a "no voice" dialogue to a full set of default voices?
-
So you want to use ModA, but it requires ModB, which requires ....., You don't need to track down the full chain of mods. The compiler only needs the function declarations you are using. Create a "header" file with empty functions for the ones you need. If ModA.psc looks like: Scriptname ModA extends Quest Imports JConatainer int actors Function OnInit() actors = JMap.values() EndFunction Actor Function getActor(int id) return JValue.getForm(actors, id) EndFunction Your simple header ModA.psc file should look like this: Scriptname ModA extends Quest Actor Function getActor(int id) EndFunction
-
Considered using this method, but this will fail if the mod changes enough that the faction's id changes. But if this is the state of the art method, so be it. Thanks again. String CoolModFile = "CoolMod.esm" if Game.GetModByName(CoolModFile) != 255 CoolModFaction = Game.GetFormFromFile(0x000DE45, CoolModFile) as Faction endif
-
https://elderscrolls.fandom.com/wiki/Xx So the baseID for the https://elderscrolls.fandom.com/wiki/Ash_Hopper_(Dragonborn) is represente as "xx01b657" because the first two to hex will be 02, 03, or 04 depending on if Dragonborn is 02,03,or 04 in the load order. Is there a way to find the load order for Dragonborn or should I search 0201b657, 0301b657, and 0401b657 until I find the Ash Hopper?
-
Jcontainer how to get nested map's keys
Good0Provider replied to Good0Provider's topic in Skyrim's Creation Kit and Modders
Already read. Thanks. Also recommend: -
I wan to write a a mod that returns a list of an actor's relations (parent,sibling,child,etc). It was suggesed that I use a xEdit script to gather the informaion I need. Specifically a JSON file for each actor with the following: { "name":"Sigrid", "refid":"0002BFA2" "relationships":[ { "type":"spouse", "refid:"00013482" }, { "type":"child", "refid:"00013484" } ] } Can an xEdit script pull the list of current actor refids and write it to disk? Even better could the script also pull out the relationship information? If so, where can I find a sample script? Alternatively does the GUI have a scalable way to get this information?
-
I am just learning papyrus and don't know what a "form list" is. Do you have sample code you could reference? I image it would be implemented as three separate scripts: 1. A python script, run outside Skyrim, that crawls the wiki and pulls out refids, and saves them into npc-relationships/data/ids.json. 2. A papyrus script that reads ids.json and calls HasParentRelationship, HasFamilyRelationship and HasAssociation across all ids pairs and stores that into npc-relationships/data/relationships.json. This would only be run once, or rarely. Use https://www.nexusmods.com/skyrimspecialedition/mods/13048 (or similair) { "name":"Sigrid", "refid":"0002BFA2" "relationships":[ { "type":"spouse", "refid:"00013482" }, { "type":"child", "refid:"00013484" } ] } 3. A papyrus script with GetRelationships. It reads relationships.json and stores it in memory. If that is not possible, the relationships.json file will be split into individual (refid).json files for each actor and that refid file matching the requested refid will be read when the function is called. If the functions can be return an array of structs the full information will be returned, if it can not just an array of refids will be returned. Scripts 2 and 3 could be in different mods, or combined into a single mod with the RebuildDB function called via MCM.
-
Could I approximate the list of active NPCs by crawling the RefIds from https://en.uesp.net/wiki/Skyrim:Essential_NPCs, https://en.uesp.net/wiki/Skyrim:Followers, https://en.uesp.net/wiki/Skyrim:Dawnguard, and https://en.uesp.net/wiki/Skyrim:Dragonborn? It wouldn't support mods, but if the code read all the JSON files in it's data directory they could be added by other mods and over time.
-
Looking for a function that given an NPC will list all the other NPCs that have a relationship with that NPC (father, sibling, etc) https://ck.uesp.net/wiki/Actor_Script lists getting the relationship between two ids. If it doesn't exist, I am interested in creating such a function. Does there exist a function that will return a full list of all NPCs active in the game? Thinking I can create a mod with the function by storing the pairwise function of all the ids into a file, store it as part of a mod, and then have that mod provide the functionality.