Magic Effect and Spell conditions

Post » Wed Jun 20, 2012 5:06 am

I have a scripted spell I'm trying to have only work during the daylight hours.

So, I went and set conditions as such in the spell by double-clicking on the main magic effect.

GetGlobalValue GameHour >= 19.00
GetGlobalValue GameHour <= 5


This completely disabled the spell during any time of the day, why?

Should I instead do this through the script for the scripted magic effect? How would I do this? Thank you.
User avatar
danni Marchant
 
Posts: 3420
Joined: Sat Oct 07, 2006 2:32 am

Post » Wed Jun 20, 2012 6:53 am

Did you use

GetGlobalValue    GameHour    >=    19.00    ANDGetGlobalValue    GameHour    <=    5        AND

or

GetGlobalValue    GameHour    >=    19.00    ORGetGlobalValue    GameHour    <=    5        OR

?
User avatar
Tiffany Carter
 
Posts: 3454
Joined: Wed Jul 19, 2006 4:05 am

Post » Wed Jun 20, 2012 1:28 pm

Mine were AND not OR. Ill try OR next.
User avatar
Javaun Thompson
 
Posts: 3397
Joined: Fri Sep 21, 2007 10:28 am

Post » Wed Jun 20, 2012 2:41 pm

When I set them to OR it worked. Thank you sir. I misunderstood.
User avatar
Alberto Aguilera
 
Posts: 3472
Joined: Wed Aug 29, 2007 12:42 am


Return to V - Skyrim