GetMagicka

Post » Fri May 27, 2011 10:23 pm

Basically, how do you get the total magicka the player has returned in a script?

I used GetMagicka but it seems to return the current magicka and not the total amount (i.e. if you have 22/50 magicka then it will return 22 not 50). I want to use the total amount of magicka, however, as my script requires it to function properly. Because at the moment when the player has used any magicka the script won't work as intended.

Any help would be greatly appreciated.

Cheers,
Regaez
User avatar
Ridhwan Hemsome
 
Posts: 3501
Joined: Sun May 06, 2007 2:13 pm

Post » Fri May 27, 2011 12:46 pm

The only suggestion I would have is something like this. I am not sure it even works and there may be a better way,

set c to getCurrentMagickamodCurrentMagicka 999999set m to getCurrentMagickamodCurrentMagika c - m


m should now hold the maximum magicka.
User avatar
candice keenan
 
Posts: 3510
Joined: Tue Dec 05, 2006 10:43 pm

Post » Fri May 27, 2011 3:31 pm

Ah, thank you. The last line didn't work, but I can see what I need to do now. I should have thought of that before...
User avatar
Megan Stabler
 
Posts: 3420
Joined: Mon Sep 18, 2006 2:03 pm


Return to III - Morrowind