» Mon Jun 18, 2012 12:37 am
So I managed to get this to work, I'm not sure how. I used the racial magic effect for Argonians as a baseline, and it works perfect
Only issue is... I'm running into the same problem I had when I was just trying to do this via through scripting alone.
The SpeedMult changes, but the game doesn't register the change until after the player has opened the inventory, crouched, or sprinted. But yet how come enchanted boots of speed can instantly affect speed as soon as they are equipped, or how come frostbite can instantly slow you down when you are hit with it? I'm using the same exact modifier and effects, except in my situation, they ONLY apply when the game decides to look at the value that I changed.
I wonder if the game looks at the value when damage is done as well, so maybe if I deal damage to the player I can cause the effect to happen the instant a player gets the ability (which is how frostbite might work)? Still doesn't explain how boots of speed are different, maybe enchantments run on an entirely different level when it comes to modifiying actor values.
EDIT: Finally got it! I never did get around my above issue, but I learned the game checks what your speedmult is whenever something is added to your inventory. So, when I just have it so my script adds then immediately removes a random misc item to the inventory silently (so there is no noise or message), the game will check my speed and then immediatly apply the correct speed.