Jump to content

How do I use the 'or' distinction instead of 'and'?


dianacat777

Recommended Posts

This seems like a simple question, and it probably is... I've been learning how to mod for the past month, and I've certainly improved. I started out following a companion guide, and now I can cobble together rudimentary scripts, quests, dialogue trees, and play with texture maps and their negatives. But in dialogue, I still cannot figure how to use 'or' - and it's impossible to look up because all search engines ignore that particular word when you're looking them up. I've tried since the very beginning.

 

Basically, I have a character that I'm giving different greetings to when you're in certain locations or have certain statuses. However, some areas span more than one cell, and the only way I know how to make the character say X greeting in the area I want is to make y number of greetings, one for each cell or condition. And this is just massively cluttered and there has to be a better way to do it.

 

When I try to use OR... I always have my GetIsID function (with AND), and it seems like the OR takes that as an okay and automatically gives that greeting or trigger, even though none of the other variables - the ones that actually have OR on them - are fulfilled. So... how do I make it so some conditions must be filled, and then at least one of other ones has to be?

 

Thanks, and sorry this is phrased so confusingly.

Link to comment
Share on other sites

All right, still confused at how this is supposed to work. The order says it goes a certain way, but I'm... not quite getting it, I guess.

 

Could somebody explain to me why this is wrong? I'm pretty sure I'll understand it from there.

 

GetSpellUsageNum1 OR

GetSpellUsageNum2 OR

GetSpellUsageNum3 OR

GetSpellUsageNum4 OR

GetSpellUsageNum5 AND

GetScriptVariable AND

GetIsID AND

 

I took this to mean (1 or 2 or 3 or 4 or 5 and script variable and ID), but it seems to just not work, and putting spell number 5 as an or just makes it always come up - which makes sense.

 

Do I need (1 and scriptvar and ID) or (2 and scriptvar and ID) and so on, and if so, how would I place that? The and/or; does it apply to that effect or the next in line?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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