Alright so as a programmer myself I understand how hard it is to read another person's code and help them out so I will do my best to make it easier for everybody here to understand.
Here is the code
Whats the point of the program?
The point of the program is to open the soul summoning menu when a summon spell is cast. What it will do is check the player's inventory for soul gems filled soul gems. If any are available the menu will open up before casting the creature. However, if no soul gems or no filled soul gems are availabe the spell will be interrupted (not cast). I know for a fact that the menu works, I tested it with an activator.
Whats the problem?
For some reason when I cast the summon spell "Conjure Familiar" which I attached the script to its magic effect, the summon will still be cast with or without the soul gems but the notification will still appear when the player has no soul gems. Also when the player does have soul gems the menu does not pop up.
My thoughs on this.
Well honestly I cannot find any flaws with the code, so it might be a logic error. However, I may have wrongly attached the script or it has something to do with the soulsMenu function.
Any help you give will be greatly appreciated and when the mod goes up you will have your username on the credits for your support and advice.
P.S I am new to this forum so if I have posted incorrectly please let me know as well.