Help with combining conditions for actor values with form li

Post » Tue Dec 29, 2009 11:44 am

I am using an actor effect and a script to add water breathing to some armor items with the appropriate helm is used with the body armor. To make things simplilier I used form lists for the helmets and then another one for the body peices for each type of armor. However it does not work. Here is a screenshot of how I set up the actor effect...

http://img109.images...46/formlist.jpg

Could it be because it thinks all peices of the armor have to be equiped at the same time rather then just one of the items in the list? How can I get it to work if 1 item from either formlist is equipped then the effect works?
User avatar
Iain Lamb
 
Posts: 3453
Joined: Sat May 19, 2007 4:47 am

Post » Tue Dec 29, 2009 8:49 am

Your link is broken.
User avatar
Richus Dude
 
Posts: 3381
Joined: Fri Jun 16, 2006 1:17 am

Post » Tue Dec 29, 2009 5:36 am

Here's the fixed link - http://img109.imageshack.us/img109/3646/formlist.jpg

Cipscis
User avatar
Baby K(:
 
Posts: 3395
Joined: Thu Nov 09, 2006 9:07 pm

Post » Tue Dec 29, 2009 5:45 am

You have 3 AND's on your list. Wont it read that to mean that you HAVE to wear those 3 items, even if it's physically impossible?
Maybe it'd work if all the armour pieces were set to OR?
User avatar
Tyler F
 
Posts: 3420
Joined: Mon Aug 27, 2007 8:07 pm

Post » Tue Dec 29, 2009 9:13 pm

You have 3 AND's on your list. Wont it read that to mean that you HAVE to wear those 3 items, even if it's physically impossible?
Maybe it'd work if all the armour pieces were set to OR?


I can try that, I just wanted to require at least 1 helm and 1 chest from appropriate armor sets to be worn.
User avatar
Dona BlackHeart
 
Posts: 3405
Joined: Fri Dec 22, 2006 4:05 pm

Post » Tue Dec 29, 2009 5:41 am

You mean, a helmet and chest from the same set?
In that case, you could always do like this:
Create two form lists for each set: one helm, one chest.
If there is, for instance, 3 armour sets, create 3 functions in your Actor Effect form(or whatever you're using) which all enable waterbreathing. Then create two conditions for each function, with and AND function for the two forms(helm, chest).
http://i485.photobucket.com/albums/rr219/Naima_den/example.png
(Woops. Replace 'IsInList' with 'GetEquipped'.)
This is what I mean. Each Waterbreathing function has two conditions for each armour set.


Hope this could help. :)
User avatar
Enie van Bied
 
Posts: 3350
Joined: Sun Apr 22, 2007 11:47 pm

Post » Tue Dec 29, 2009 9:05 pm

You mean, a helmet and chest from the same set?
In that case, you could always do like this:
Create two form lists for each set: one helm, one chest.
If there is, for instance, 3 armour sets, create 3 functions in your Actor Effect form(or whatever you're using) which all enable waterbreathing. Then create two conditions for each function, with and AND function for the two forms(helm, chest).
http://i485.photobucket.com/albums/rr219/Naima_den/example.png
(Woops. Replace 'IsInList' with 'GetEquipped'.)
This is what I mean. Each Waterbreathing function has two conditions for each armour set.


Hope this could help. :)


Yeah, that is what I've done, however it does not work. Are you saying to have multiple effects in the actor effect so each one says AND instead of AND OR? I noticed you have 2 water breathing effects.

Edit: I did exactly what you did, however it still does not work. I think it is expecting ALL the items in each formlist to be equipped which is not possible. Is there a way to tell it if 1 of the items from each list is equipped?
User avatar
Manuela Ribeiro Pereira
 
Posts: 3423
Joined: Fri Nov 17, 2006 10:24 pm

Post » Tue Dec 29, 2009 9:06 pm

You could try using 'IsInList' instead of 'GetEquipped'. That is usually what I use if I want to check if the player is wearing an item from a form list.
User avatar
Lalla Vu
 
Posts: 3411
Joined: Wed Jul 19, 2006 9:40 am


Return to Fallout: New Vegas