dianacat777 Posted August 26, 2012 Share Posted August 26, 2012 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 More sharing options...
viennacalling Posted August 26, 2012 Share Posted August 26, 2012 This is the page you want: Category:Conditions - GECK Short answer for this particular case is to put all the OR statements up top and have the AND statement at the bottom. Link to comment Share on other sites More sharing options...
dianacat777 Posted August 26, 2012 Author Share Posted August 26, 2012 (edited) Thanks a ton, let's see if this works. Edit: No, it's still coming up where I don't want it triggered... Edited August 26, 2012 by dianacat777 Link to comment Share on other sites More sharing options...
dianacat777 Posted August 26, 2012 Author Share Posted August 26, 2012 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 ORGetSpellUsageNum2 ORGetSpellUsageNum3 ORGetSpellUsageNum4 ORGetSpellUsageNum5 ANDGetScriptVariable ANDGetIsID 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 More sharing options...
viennacalling Posted August 26, 2012 Share Posted August 26, 2012 Wouldn't be the first time I got the order wrong. Try this and see if works: GetScriptVariable ANDGetIsID ANDGetSpellUsageNum1 ORGetSpellUsageNum2 ORGetSpellUsageNum3 ORGetSpellUsageNum4 ORGetSpellUsageNum5 OR Link to comment Share on other sites More sharing options...
dianacat777 Posted August 27, 2012 Author Share Posted August 27, 2012 Hm, that isn't working either. Link to comment Share on other sites More sharing options...
Recommended Posts