Last updated at 16:00, 20 May 2013 Uploaded at 9:25, 8 May 2013
This mod is a result of J'zargo's default behavior making him incompatible with the "Spouses Can Live Everywhere" mod by Amgepo and Emma. The reason for this is that he goes to practice his magic at a set time of the day, which would cause him to run off far from wherever his home is set.
This mod is not tied to whether your character has married J'zargo. In its infancy that was its purpose and if any remnants of that are left in the mod that I failed to delete long ago that would be a bug. I would not have been as inspired to create this mod without the Khajiit Marriage And Follower Mod by Clarota, which is still quite functional even if it hasn't been updated in a long time. This mod also preserves J'zargo's personal magic practice routine anywhere in the game, something the default marriage option disables when the spouse moves in with the player.
Put "CustomJzargoPlaces.esp" in the Skyrim\Data folder.
Put "JzargoCustomSpotSetSpellsGive.pex" and "SetJzargoCustomSpots.pex" in the Skyrim\Data\Scripts folder.
OPTIONAL: Put "JzargoCustomSpotSetSpellsGive.psc" and "SetJzargoCustomSpots.psc" in the Skyrim\Data\Source folder.
The zip file also contains two screenshots to show the barrel that gives/removes the effects and a copy of this description.
Opening the sack on the barrel in the back left portion of J'zargo's room/cubby in the Hall of Attainment in the College of Winterhold will display a dialog to add or remove the minor powers that control where J'zargo goes. They can be removed so they don't clutter the player's spell lists after J'zargo is behaving as desired, but revisiting the sack on the barrel again will provide the option to once again give the spells back if more adjustments are needed.
Set J'zargo's Morning Spot
This sets where J'zargo will spend his time from 6AM to 10AM.
Set J'zargo's Practice Spot
This sets where J'zargo will go to practice his magic from 10AM to 2PM. Because I copied his default packages as much as possible, J'zargo will not attempt to practice his magic during a certain part of the College of Winterhold quest line.
Set J'zargo's Practice Target
This sets where J'zargo will aim while practicing his magic. It has an offset so he should aim relatively straight ahead. You can activate this mid air and he will attempt to aim wherever it is. This target should be in the same cell as his practice spot.
Set J'zargo's Afternoon Spot
This sets where J'zargo will spend his afternoon and eat dinner, from 2PM to 7PM.
Set J'zargo's Evening Spot
This sets where J'zargo will spend his time before bed, from 7PM to 10PM.
Set J'zargo's Sleep Spot
This sets where J'zargo will go to sleep, from 10PM to 6AM. Ideally this should be set next to the bed where you want him to sleep.
By default, before the use of the powers, all of these are set almost identically to his default behavior.
In depth description:
This is my very first mod and I'm no expert on mod conflicts, so I'll list what this mod does in much more detail. It's been nearly a year since I did most of the creation of this mod so I hope I remember all of this correctly.
*Adds two new x-markers in the Hall of Elements: one for J'zargo's practice spot and the other for his target. These start close to where his default ones are.
*Adds four new x-markers in the Hall of Attainment for J'zargo's packages to allow more direct customization of his behavior, near J'zargo's default.
*Adds a new set of packages of higher priority than J'zargo's default, copied in functionality, that use the new moveable x-markers instead of the defaults, in addition to a test package to totally block the defaults to make sure the defaults are never used with the mod active. I did this to avoid outright removing anything from the default J'zargo. By default, the functionality is virtually identical to an unmodded J'zargo, and some of the default x-marker positions are redundant. The extras are for more fine tuning of his daily behavior and are used with the six spells.
*Adds effects that move the six x markers added to where the player is standing. All of these effects call the script "SetJzargoCustomSpots.pex" and contain properties defining which objects to move, what text is shown to the player, and whether they have a height offset (this is to make sure the practice spot doesn't sit on the floor unintentionally). That script is a general script that could be easily re-used in a similar mod, and because the very idea is a direct copy of the concepts from another mod, I expect no credit if the source is outright copy/pasted in the unlikely event another wants to use it.
*Adds six lesser powers that call those effects.
*Adds a script "JzargoCustomSpotSetSpellsGive.pex" to a new sack placed on a barrel in J'zargo's room that on activation displays a message box added in the mod. This message box controls the options in the script and passes along six spell IDs to add/remove from the player. The message box values passed along are "0 = add the spells from the properties, 1 = remove them, 2 = do nothing." Option 0 has a condition that it only appears if the player does not have a certain spell in the set, and option 1 has a condition that it only appears if the player does have a certain spell in the set. Option 2 has no conditions.
The scripts used in this mod, especially the one that outright moves the x markers used in the custom J'zargo packages (the core mechanic inspired by/imitated from the "Spouses Can Live Everywhere" mod), are designed to be easily reused for other mods if any other NPCs have similar incompatibilities, or in the unlikely event someone wants to copy the functionality for another mod.
1.1 - Removed the script from the existing barrel in J'zargo's room and added a sack atop the barrel with the script. This was to fix an issue in which the script would be forever removed from the barrel if the mod were deactivated and then activated again later on the same saved game. If you like the mod please do let me know of any issues if you run into them.