Buffing is an essential and fun part of all D&D games. They give strategical choices on whether to use a spell slot on a long term effect or one that deals with an encounter more efficiently. They are also enables for some fun builds like the cleric/fighter or the mage/fighter.
In the infinity engine games some buffs last such a long time that you want to cast them after every rest, like armor, stone-skin and contingencies. Doing this after every rest quickly gets tedious, however. For example, in my current IWD2 game I cast 13 spells in total after each rest. That is a lot of time wasted just pressing buttons.
I have searched far and wide for scripts or mods that automates this process or makes it quicker both for BG2:EE, ICD:EE and ICD2, but have so far had no luck.
Therefore I come to you for advice. First of all, does any scripts for these game already exist?
If none exist, I would like to get into the modding action, to make a simple script or mod that can do this. I have never modded before, but have experience programming. If one were to create this, how should you go about it? Should it be a hotkey script, an AI script or a full fledged mod?