Magic Effect Script Help Please

Post » Sat Feb 19, 2011 4:58 am

Hi,

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
User avatar
Kieren Thomson
 
Posts: 3454
Joined: Sat Jul 21, 2007 3:28 am

Post » Sat Feb 19, 2011 11:21 am

Found out what the issue was so I don't need help anymore. Just needed to re-add the spell to that it reset its magnitude.
User avatar
Andy durkan
 
Posts: 3459
Joined: Fri Aug 03, 2007 3:05 pm


Return to IV - Oblivion