Help with script to modify Actor Value

Post » Tue Aug 14, 2012 8:14 am

Hi there,

I'm trying to create a simple script that doubles the amount of magicka the player has. The script does so upon equipping a ring.

So far I have this:

___________________________________

ScriptName aaaRingOfMagicka

Short CurrentMagicka

Begin OnAdd player

Set CurrentMagicka to player.getAV Magicka
Set player.AV Magicka to CurrentMagicka*2

End

____________________________________

The line in orange is the one that is giving me trouble. Once I have the player's magicka stored in a variable I'd like to somehow double it but I don't know the proper syntaxis to do so. Any help?
User avatar
Horse gal smithe
 
Posts: 3302
Joined: Wed Jul 05, 2006 9:23 pm

Return to IV - Oblivion

cron