monsta88 Posted January 1, 2020 Share Posted January 1, 2020 Hi there, I'd like to find a lightweight mod which has the option to disable Fast Travel when the main character is wearing DD restraints. If I remember correctly Cursed Loot has a function like that, but I don't want to use that huge mod only for this small feature. Ideally this would be a non-changeable option if the character wears DDs. If there is no such mod, other fast travel disabling options might be acceptable too, like Better Fast Travel. Thanks, M Link to comment
Laura Posted January 1, 2020 Share Posted January 1, 2020 It wouldn't be too hard to make, but it'll need a script that periodically disables fast travel because changing cells resets it. EDIT: I also think it'll need an event or something to detect the equipping of a device. The periodic check should only be running while the player is wear restraints. EDIT2: I don't know if another mod can use DD's mod events. But this is what the script could look like: Spoiler Zadlibs Property libs Auto Function OnInit() CheckFastTravel() EndFunction Event OnUpdate() CheckFastTravel() EndEvent Event OnPlayerLoadGame() CheckFastTravel() EndEvent Event OnLocationChange(Location akOldLoc, Location akNewLoc) CheckFastTravel() EndEvent Function CheckFastTravel() If Self.IsRunning() Return EndIf if libs.playerref.WornHasKeyword(libs.zad_Lockable) Game.EnableFastTravel(False) RegisterForSingleUpdate(6) else Game.EnableFastTravel() RegisterForSingleUpdate(12) endif EndFunction Link to comment
monsta88 Posted January 1, 2020 Author Share Posted January 1, 2020 7 hours ago, Laura 'Lokomootje' said: It wouldn't be too hard to make, but it'll need a script that periodically disables fast travel because changing cells resets it. EDIT: I also think it'll need an event or something to detect the equipping of a device. The periodic check should only be running while the player is wear restraints. EDIT2: I don't know if another mod can use DD's mod events. But this is what the script could look like: Reveal hidden contents Zadlibs Property libs Auto Function OnInit() CheckFastTravel() EndFunction Event OnUpdate() CheckFastTravel() EndEvent Event OnPlayerLoadGame() CheckFastTravel() EndEvent Event OnLocationChange(Location akOldLoc, Location akNewLoc) CheckFastTravel() EndEvent Function CheckFastTravel() If Self.IsRunning() Return EndIf if libs.playerref.WornHasKeyword(libs.zad_Lockable) Game.EnableFastTravel(False) RegisterForSingleUpdate(6) else Game.EnableFastTravel() RegisterForSingleUpdate(12) endif EndFunction Thank you for your answer and effort, however I can't really do anything with it as I have no idea how to use that script. Link to comment
Swe-DivX Posted January 2, 2020 Share Posted January 2, 2020 15 hours ago, monsta88 said: Hi there, I'd like to find a lightweight mod which has the option to disable Fast Travel when the main character is wearing DD restraints. If I remember correctly Cursed Loot has a function like that, but I don't want to use that huge mod only for this small feature. Ideally this would be a non-changeable option if the character wears DDs. If there is no such mod, other fast travel disabling options might be acceptable too, like Better Fast Travel. Thanks, M First page to the right. Link to comment
monsta88 Posted January 2, 2020 Author Share Posted January 2, 2020 18 hours ago, Swe-DivX said: First page to the right. Ah yes, I had a faint memory I saw this feature somewhere. I have a newer version of the mod and it works like charm. Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now