Global("Chapter","GLOBAL",5) // In Underdark
!Global("Chapter","GLOBAL",5) // Not In Underdark
If you are talking about regular B-file stuff, that should do it. Though I don't see many folks actually doing that, really - it seems relatively rare that folks remember to stop stuff from playing in Underdark.
Huh. I saw that the banter pack (I think?) had banters stopping in the UD, so I kind of figured that was common practice. It makes sense.
In regard to the file, yes, I believe it's in the B-file, though I'd have to take another look. I've forgotten a lot in four years and it'll be some time before I pick it back up again. Thanks for the tip though. I wouldn't have occurred to me to check by chapter. I'm assuming that check has to be placed in the triggers of each individual banter?
If you are talking about friendtalks and specificly triggered from script stuff, then you can do some trickery with Drow appearence, or set your own blocking global, but again the simplest way of dealing with the issue is to just ahave good old "not in chapter 5, boyo" in there.
I had thought about drow appearance, too, and then dismissed it thinking that the player might have chosen drow as a race. And then I realized that you can't play drow in
BG2! I'm am so used to working with NWN2, I was putting those available races into
BG2. So, yeah, I could do that. However, I've not gotten to the point of coding friendship dialogues. I'm not sure that I would bother with that with this particular NPCs because 1)Nobody would want to befriend him 2)He's an
NPC created for the purpose of just learning coding and therefore isn't anything special 3)what I have done with him is mainly joke-a-day style. Perhaps if I have enough fun getting back into modding I might try something serious eventually, and then I can work with the friendship dialogues.
Again, thanks for the help. I'm sure I'll have a lot more pesky questions.
"A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort." - Herm Albright