Condition Stack and Magic Effects Questions

Post » Mon Aug 18, 2014 11:02 pm

Alright. Two issues.

1: How would I set up a magic effect that does nothing other than activate when some conditions are met? It's an ability, constant, and on self and given to the player. It has a script effect, Hide in UI, No Duration, No Hit Effect and No Magnitude. I assume some of these are uneccesary, and maybe others are needed. Essentially it just starts a quest when certain conditions are met, through its script. How would I set up the ability with the MGEF attached? Is there a way to make it hidden in the UI so you can't see it?

2: For the MGEF, I want it to activate if any of the following conditions are met:

If A and B are true

If C and D are true

If A and B and C and D are true

I set up the condition stack like this, but I suspect it's wrong. How would I go about it?

A - OR
C - AND
B - OR
C - AND
A - OR
D - AND
B - OR
D - AND
B - OR
D - AND
C - AND
D - AND
Thanks for your help.
User avatar
Silvia Gil
 
Posts: 3433
Joined: Mon Nov 20, 2006 9:31 pm

Post » Tue Aug 19, 2014 11:44 am

I think....

If A == True AND C == True OR if C == True AND D == True OR If A == True AND B == True AND C == True AND D == True

User avatar
Kevin S
 
Posts: 3457
Joined: Sat Aug 11, 2007 12:50 pm

Post » Tue Aug 19, 2014 4:39 am

Okay, I'll try it. The http://www.creationkit.com/Conditions#Comparison_and_Value was a bit harder to understand then that. I'm usually fine with conditions, but this is quite a few.

User avatar
Causon-Chambers
 
Posts: 3503
Joined: Sun Oct 15, 2006 11:47 pm

Post » Tue Aug 19, 2014 6:26 am

The issue is that if you do this:

A == True AND C == True OR if C == True AND

Then it looks like, from the CK, it will evaluate to this:

If (A AND (C OR C))

User avatar
Catherine Harte
 
Posts: 3379
Joined: Sat Aug 26, 2006 12:58 pm

Post » Tue Aug 19, 2014 11:57 am

I think this should work... :D
A OR C AND A OR D AND B OR C AND B OR D AND A OR B AND C AND D
EDIT: Still need help with making the magic effect not show up in the UI, and what flags I should use.
User avatar
Jessica Colville
 
Posts: 3349
Joined: Wed Oct 18, 2006 6:53 pm

Post » Tue Aug 19, 2014 5:25 am

If you take a screenshot of those conditions, I don't mind adding it as an example picture on the wiki.

As for the UI bit, I think you check the "Hide in UI" flag on the MGEF.

User avatar
Christie Mitchell
 
Posts: 3389
Joined: Mon Nov 27, 2006 10:44 pm

Post » Tue Aug 19, 2014 9:33 am

Is that all I need?

And I'll take a screenshot. I wish there were a way to resize the window, since you can't see all of them. But I haven't verified the conditions work, though it seems like they would. Should I wait?

User avatar
Kat Ives
 
Posts: 3408
Joined: Tue Aug 28, 2007 2:11 pm

Post » Tue Aug 19, 2014 5:21 am

yes wait. And take two screenshots. I can probably do a bit of paintshop work and combine them.

User avatar
GRAEME
 
Posts: 3363
Joined: Sat May 19, 2007 2:48 am

Post » Tue Aug 19, 2014 1:33 pm

Alright.

User avatar
flora
 
Posts: 3479
Joined: Fri Jun 23, 2006 1:48 am

Post » Tue Aug 19, 2014 8:09 am

Nah, I can do it.

Okay. I'll just send you a link to the picture. I haven't tested it yet, but I'll get back to you when I do.

http://i1295.photobucket.com/albums/b630/Matthiaswagg/Screenshot41_zps1b0d27f6.png - Updated picture after doing what egocarib said

User avatar
Ron
 
Posts: 3408
Joined: Tue Jan 16, 2007 4:34 am

Post » Mon Aug 18, 2014 11:15 pm

You just want the first 8 conditions you've figured out there, the ones after that will throw things off.

The third in this list isn't necessary, because the first two lines will always be true if the third one is. So basically, you want to test

( A & B ) OR ( C & D )

which distributes out to what you've already figured out:

A or C and A or D and B or C and B or D

If you include the other conditions you added to the end there, your condition check will never be true unless C & D are true, which will make your effect no longer function for the first ( If A and B are true ) condition you wanted to check for.

How the ability effect will work is that it will initialize your script whenever those conditions first become true.

If the conditions stop being true, the effect will end and the script instance will become orphaned. If the conditions become true again after that, an entirely new instance of the script will be generated (with all properties and variables initialized from scratch, OnInit called, etcetera)

User avatar
k a t e
 
Posts: 3378
Joined: Fri Jan 19, 2007 9:00 am

Post » Tue Aug 19, 2014 12:03 pm

Alright.

Essentially what I'm doing is I have an MCM that allows you to disable some options. So you can disable A by toggling B, and C by toggling D. But I don't want my magic effect to start if A is true and B is not, or if C is true and D is not, but if all are enabled it will work.

Thanks.

User avatar
naana
 
Posts: 3362
Joined: Fri Dec 08, 2006 2:00 pm


Return to V - Skyrim