just wondering if anyone can see why this script isn't working properly. It seems to work upto the part where it changes the effect magnitude and it even reports the correct value in game. The spell that is trying to be changed has one effect (fortify magicka) and the script is trying to 'take' the target's magic and give it to the player in the form of a fortify effect in the spell 'aaaTCMagicBoost'. I've tried changing the changing the variables to different types and made the boost negative but nothing has worked. Think the issue is in the ModNthEffectItemMagnitude line. Would be grateful of any help thanks.
Here's the script:
ref target
float MagickaBoost
Begin Scripteffectstart
set target to GetSelf
if target.GetDisposition player >=95
if target.getbaseav magicka == 0
message "I can gain no strength from my volunteer",
return
endif
if player.hasspell aaaTCMagicBoost
else
player.addspell aaaTCMagicBoost
endif
set MagickaBoost to target.Getbaseav magicka
modntheffectitemmagnitude MagickaBoost aaaTCMagicBoost 0
message "I have gained %.Of Magicka", MagickaBoost
else
message "They are unwilling to give their strength",
endif
end