Interrupt Rest

Discuss modding questions and implementation details.
Post Reply
User avatar
Ralzar
Posts: 2211
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Interrupt Rest

Post by Ralzar »

I am currently working on a mod that will at times apply fatigue or damage to player while resting. This leads to some unelegant behaviour in the game as it pops out to textboxes several times while not allowing you to stop resting.

The same behaviour will sometimes happen when you are poisoned and diseased and try to rest.


So I am looking for some way to interrupt Resting in the same way as "There are enemies nearby". But obviously without that textbox.

From what I can see, everything even semi-relevant is private or protected. It would be really helpful for me, and future mods, if there was a simple public boolean that let you do InterruptRest = true;


Edit: relevant code in DFU:
https://github.com/Interkarma/daggerfal ... tWindow.cs

User avatar
Magicono43
Posts: 1141
Joined: Tue Nov 06, 2018 7:06 am

Re: Interrupt Rest

Post by Magicono43 »

Interesting, I'd like to keep tabs on this topic as well. Nothing useful to add to it, but am interested.

Post Reply