Getting the remaing time on a magic effect?

Post » Fri Nov 16, 2012 5:50 pm

Im currently creating some new spells, and i want to put a cooldown timer on a few of them. I know how to do this using magical effects and scripts to check if the effect exists. What im not sure of is getting the number of seconds remaining on the magic cooldown effect, and displaying that in game. For example, you try to cast a spell with a cooldown twice in a row, in the left hand corner of the screen, it will display a message saying "You cannot cast this spell for another # seconds. Anyone know how i can get the actual number of remaining seconds on a magical effect?
User avatar
Hayley Bristow
 
Posts: 3467
Joined: Tue Oct 31, 2006 12:24 am

Post » Fri Nov 16, 2012 8:16 pm

globals + quest + text replacement
User avatar
Samantha Wood
 
Posts: 3286
Joined: Sun Oct 15, 2006 5:03 am

Post » Fri Nov 16, 2012 10:29 pm

Currently, you would have to have each of these spells register for an update every second or half-second and adjust a global variable which you print to screen.
User avatar
Chris BEvan
 
Posts: 3359
Joined: Mon Jul 02, 2007 4:40 pm


Return to V - Skyrim