Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

or, not, etc

18 years ago
Well, my story was working a week ago, now suddenly certain links remain grayed out when they shouldn't. I fixed it by checking certain OR and NOT boxes, but it doesn't make any sense why it would fix it. At least not to me. This is a very vague question/complaint, so I'll give an example below.

Hrm, here's a vague example,

Let's say there's a link and the two restrictions on it are, "SOBRIETY = 99,100" and "RESISTED=0." Now let's say you reach the link and you have SOBRIETY=99 or 100 and RESISTED=0. Why would the link be grayed out and not active?? Now let's say I check the OR box next to RESISTED and suddenly everything works perfectly. That is what happens. Does this make sense? If so, and I am not fully understanding OR and NOT, could someone please write a detailed article on it? And please explain briefly within this post.

Thanks a lot in advance!

or, not, etc

18 years ago

NOT is easy -- it's the opposite of whatever you define the condition as. If the (only) restriction is "SOBRIETY = 99", then that means link only visible when SOBRIETY is equal to 99. With NOT checked, link is only visible when "SOBRIETY != 99", or when SOBRIETY is NOT equal to 99.

OR gets a bit trickier. Without OR checked, ALL restrictions MUST be met in order for the link to show up. So, let's go back to your example: "SOBRIETY IN 99,100" and "RESISTED=0". Both must be true for link to be unrestricted. If you have 100 restrictions, then ALL 100 must be met. However, if *any* one of those restrictions are marked as OR and they are true, then the link will show.

Note that it is very possible a bug could show up with this. So, if you notice it behaving differently, please advise.

or, not, etc

18 years ago
Oh I thought that all teh restirctions had to be checked for OR to work, dunnno what I was thinking.