I'm rather new to papyrus scripting, so this may take me a minute to explain. I'll try to keep it brief if you will bear with me.
I've figured out how to generate random intergers, but I am having some trouble with using the return value to set values for properties/variables.
In some scripts, I know you can use Utility.RandomInt () to set a value, but, in scripts which modify spell effects, the Utility script cannot be accessed to return the value.
I have found that I can still generate the value by adding 'Int Function Random (int aiMin = 0, int aiMax = 100) Native Global', but I have no idea how to access or utilize the returned value. Any suggestions?