File information

Last updated

Original upload

Created by

Acid Zebra

Uploaded by

acidzebra

Virus scan

Safe to use

About this mod

Makes the player idle like an NPC after 90 seconds of inactivity (configurable timer + hotkey). Will use idle markers, furniture (but not crafting furniture or beds) and wander around until a key is pressed. Requires SKSE.

Requirements
Permissions and credits
Changelogs
REQUIRES A WORKING SKSE INSTALLATION OF AT LEAST V1.06.00 OR BETTER

WHAT IT IS:
Based on what I've learned from making this mod exploring AI-driven player travel, this a a very simple mod which enables idling mode for the player character after 90 seconds of inactivity (this can be configured), causing your character to wander around in the current area and use furniture and idle markers until a key is pressed. There is also an optional hotkey setting for instant idle mode. I've done earlier experiments with this but the codebase is vastly simplified and now uses states and registerforsingleupdate switches to be as safe and non-savegame bloat causing as possible. I've included the script source code in the hope that other people will take this and build on it, and because I believe sharing strengthens the community and allows us all to build better and more awesome mods.

There are some limitations:
- requires SKSE to monitor for a keypress
- you can't interrupt the player character when he's moving towards an idle marker (but at any other time a keypress will exit idle mode)
- Player can't use special/crafting furniture while idling (as this invariably brings up a menu)
- Player can't use beds while idling (but those would not give you a resting bonus anyway since you're idling, not sleeping)
- Forced third person perspective since many idles (drinking, eating, gardening) do not have first person meshes defined.

HOW IT WORKS:
The basic structure is hidden quest > adds AI package and script to player alias. Script registers for single update every 10 seconds and checks player position in the world. If not changed, increments counter variable. If counter reaches 9, assumes idle and changes state to AIdriven, package starts to run, and script starts monitoring keyboard presses every 0.1 seconds. Returns to initial state after keypress. The quest itself is never updated or touched again, it's just used for adding a script and AI package to the player on the fly.

I believe this esp and script to be safe, but please use with caution (make a savegame beforehand so you have something to fall back on) and report any bugs/issues.

INSTALLATION:
unrar archive in your data folder or use a mod manager. Activate mod. Start Game. Head to the Drunken Huntsman in Whiterun and pick up the spellbook from a table. Read the spellbook. Cast the spell Player Idle Config (under lesser powers). Enable the idle system (enable/reset option) and set your desired config options (see "usage" below).

UPGRADE/UNINSTALL
Open the mod config menu and stop the idling system. Save. Exit. Upgrade or remove mod. If upgrading open the mod config menu again after starting Skyrim and re-enable the idle system. Ready to roll.

USAGE:
Head to the Drunken Huntsman in Whiterun and pick up the spellbook from a table. Read the spellbook. Cast the spell Player Idle Config in the illusion school. This will open the config menu. NOTE you will have to enable/reset the system on first use/upgrade. You have the following options:

1. Idle timer settings
From the same spell-based menu system, you can set the idle timer for 30-60-90-120-360-infinity seconds.

2. Hotkeys (this feature may currently be out of order)
You can set keys L,O, and K as hotkeys for insta-idle (until someone explains how I use GetNthKeyPressed(Int n) in a menu or I figure it out myself). The assigned hotkey is a toggle - once pressed you will immediately go to idle mode and the script will ignore keyboard input completely. Press the key again to toggle it off, then press any key/move around to exit idle mode. By default no hotkey is configured - you will have to get the spellbook and learn the spell, it is waiting for you in the Drunken Huntsman in Whiterun.

3. IdleTypes
Not implemented in this version

4. Enable/Reset Idling system
This stops and starts the quest, hopefully resetting any glitching you may experience (haven't seen glitches yet). Don't spam this option - at least 15 seconds between using this.

4. Disable Idling System
Disables the quest, removing the script and AI package from the player - use this if you're going to uninstall or upgrade.

TROUBLESHOOTING
If you're unable to exit idle mode, make sure your SKSE is actually working. Sometimes drawing your weapon will help if nothing else will (and remember, during the time between the AI targeting an idle marker and getting there/using it you can't interrupt so wait a sec and press a key again). You can also open the console and type "stopquest DIMplayeridlequest" to completely stop the effect or access the same functionality from the supplied spell-based menu (disable idling system option). Remember that if you're using insta-idle from hotkey the keyboard is disable until you toggle the mode off (same hotkey) and then press some keys/move around.

ADVANCED/CONSOLE USAGE
You can set the variable dimidletimer to manually control the idle timer. It works in multiples of 10 seconds + 10 seconds minimum, so setting it to 1 will set a timer of 20 seconds, 2 will set a timer of 30, 3 will set a timer of 40, and so on.

startquest/stopquest/sqv DIMplayeridlequest to manipulate the running quest.

The variable dimhotkey can be used to configure the dxscancode for the hotkey; you need to restart the quest if you change it.

FUTURE PLANS
- adding more idle markers to the world (in a separate mod)
- trying to get special/crafting furniture working (without bringing up the menu)
Top