Jump to content

About CreationKit spell Condition menu


Recommended Posts

12 minutes ago, Oh shit WTF said:

can I make an active effect that only works during night time?

Use Condition GetCurrentTime, > 18 (or whatever hour you think night should start), OR condition GetCurrentTime < 6 (or whatever time you think it should end)

13 minutes ago, Oh shit WTF said:

and can I also make an active effect that only works when you're near a tree?

You probably would need a scripted mechanism that could detect trees.  I'm fairly certain trees themselves aren't a selectable object type for condition searches.

 

The scripted FindClosestReferenceOfAnyTypeInListFromRef() should be able to do this if you can create a formlist with trees in it.

Link to comment

I don't think there is an absolute time for day and night. However there is a condition like that in the base Skyrim.

 

Subject.GetGlobalValue(GameHour [GLOB:00000038]) <= 19.000000 AND

Subject.GetGlobalValue(GameHour [GLOB:00000038]) >= 5.000000 AND

 

Base Skyrim uses these values to determine when it is daytime for vampires. It works in military time so if you reverse the arrow signs you could make spells only work between 7pm and 5am.

Link to comment
16 minutes ago, Seijin8 said:

Use Condition GetCurrentTime, > 18 (or whatever hour you think night should start), OR condition GetCurrentTime < 6 (or whatever time you think it should end)

You probably would need a scripted mechanism that could detect trees.  I'm fairly certain trees themselves aren't a selectable object type for condition searches.

 

The scripted FindClosestReferenceOfAnyTypeInListFromRef() should be able to do this if you can create a formlist with trees in it.

Thanks a lot! 

Link to comment
29 minutes ago, Darkpig said:

if you reverse the arrow signs you could make spells only work between 7pm and 5am

Negative.  This would never trigger since both would need to be true, and they couldn't be.  Need to flip the condition to OR for this to work.

 

Mainly leaving this comment in case someone comes looking for the answer for their own use.

Link to comment
10 minutes ago, Seijin8 said:

Negative.  This would never trigger since both would need to be true, and they couldn't be.  Need to flip the condition to OR for this to work.

 

Mainly leaving this comment in case someone comes looking for the answer for their own use.

*Looks through Vanilla Skyrim records using x-edit*

 

Still not seeing an "or" unless you are talking about the greater or equals to.

Spoiler

1331997601_Screenshot(7)_LI.thumb.jpg.dbc72bb7ca1c7703226ab353b23553e1.jpg

 

Link to comment
2 minutes ago, Darkpig said:

Is that my screenshot or yours? Still this makes no sense. If it were Equal to /  or   then it would only work at 7 or 5. You can forget about 8 to midnight and midnight to 4.

The example you gave, except done correctly with logic that works and with one less lookup call per condition check...

In the program of your choice.

 

 

5Capture.JPG.40686936d73d452e569f4356d9be99ad.JPG

Link to comment
6 minutes ago, Seijin8 said:

The example you gave, except done correctly with logic that works and with one less lookup call per condition check...

In the program of your choice.

 

 

5Capture.JPG.40686936d73d452e569f4356d9be99ad.JPG

Let me see if I got this straight. You used

 

Function: GetCurrentTime

 

and I used

 

Function: GetGlobalValue

 

I must say that is more streamlined than my method. I'll have to check it out.

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use