Here you go, all set:
There were a few problems, a couple of lines involving ("TNOBanter","GLOBAL",2) were missing the Global at the start.
The final block you wrote is now at the begining, the compiler needs to know that it goes right in the dialog file, as it is not being appended or chained to anything.
BEGIN ~S-BTNO~
IF ~
Global("S-TNORomanceActive","GLOBAL",1)
Global("LoveTalk","LOCALS",2)
Global("S-TNOMatch","GLOBAL",1)
GlobalTimerExpired("S-TNORomance","GLOBAL")~
THEN BEGIN RomanceTalk1
SAY ~Hey, <CHARNAME>, I was wondering... you don't have anything against me being a thief, right?~
IF ~~ THEN REPLY ~What? No, of course not. You have benefited our group in many ways already.~ DO ~SetGlobalTimer("S-TNORomance","GLOBAL",28800)~ GOTO ThanksLine1
IF ~~ THEN REPLY ~Well, I don't really appreciate your life style, but I respect you, and you... nevermind.~ DO ~SetGlobalTimer("S-TNORomance","GLOBAL",28800)~ GOTO ThanksLine2
IF ~~ THEN REPLY ~No, you are a thief, and I think that is a fine profession. I also think that you are a fine person. You aren't "good", but you are certainly... well, you get the idea.~ DO ~SetGlobalTimer("S-TNORomance","GLOBAL",28800)~ GOTO ThanksLine2
IF ~~ THEN REPLY ~You steal me things and kill me things, and that is as useful as you'll ever be. Go away.~ DO ~SetGlobal("S-TNORomanceActive","GLOBAL",3)~ GOTO RomanceEnd1
END
IF ~~ THEN BEGIN ThanksLine1
SAY ~Oh, well, I am glad I can benefit the party. I just hope that in the future I can also benefit... us.~
IF ~~ THEN EXIT
END
IF ~~ THEN BEGIN ThanksLine2
SAY ~Thanks, that really means a lot to me, especially coming from you...~
=
~*Cough* Well, I think we'd better get moving. I am glad we had this nice, albeit brief, talk.~
IF ~~ THEN EXIT
END
IF ~~ THEN BEGIN RomanceEnd1
SAY ~Oh, I thought I meant something more to you. Well, I am sorry you feel that way.~
=
~*Cough* Eh, lets go. I have things to kill, people to rob.~
IF ~~ THEN EXIT
END
APPEND BJAHEIR
IF ~InParty("S-TNO")
See("S-TNO")
!STATECHECK("S-TNO",STATE_STUNNED)
!STATECHECK("S-TNO",STATE_SILENCED)
!STATECHECK("S-TNO",STATE_SLEEPING)
!Dead("S-TNO")
Global("TNOWhy","LOCALS",0)
Global("TNOBanter","GLOBAL",0)~ THEN BEGIN WhyTalk
SAY ~TNO, I have noticed that you claim you aren't evil, yet you steal and kill willingly and gladly. Can you justify your actions?~
IF ~~ THEN DO ~SetGlobal("TNOWhy","LOCALS",1) SetGlobal("TNOBanter","GLOBAL",1)~ EXTERN S-BTNO WhyTalk
END
END
APPEND S-BTNO
IF ~~ THEN BEGIN WhyTalk
SAY ~And I notice that you tend to favor the good side of things. There needs to be a balance between good and evil, and between the neutrals who act 'good' and those who act 'evil.'~
=
~You should learn to control your good actions, Miss 'Cities Can Kiss Nature's Ass,' if you want people to think you're neutral. Now leave me alone.~
IF ~~ THEN EXIT
END
END
CHAIN
IF ~InParty("Jaheira")
See("Jaheira")
!STATECHECK("Jaheira",STATE_SLEEPING)
!STATECHECK("Jaheira",STATE_STUNNED)
!STATECHECK("Jaheira",STATE_SILENCED)
!Dead("Jaheira")
InParty("Minsc")
See("Minsc")
!STATECHECK("Minsc",STATE_SLEEPING)
!STATECHECK("Minsc",STATE_STUNNED)
!STATECHECK("Minsc",STATE_SILENCED)
!Dead("Minsc")
Global("MinscBash","LOCALS",0)
Global("TNOBanter","GLOBAL",1)~ THEN S-BTNO MinscGetsBashed
~Minsc, why must you incessantly talk to that rodent? And don't you ever do anything besides fight for justice, poor people, and little kids?~
DO ~SetGlobal("MinscBash","LOCALS",1) SetGlobal("TNOBanter","GLOBAL",2)~
== BMINSC
~What?! How dare you insult poor Boo! And doing good is right! And, uh, good!~
== BJAHEIR
~TNO, you didn't need to say that. You should learn to be more accepting of people.~
== BMINSC
~Yes! Listen to Jaheira, she knows what is good and right in this world!~
== S-BTNO
~Ah, the dimwit proves my point, Jaheira. You could look at things from a more neutral perspective. I am accepting, I just don't accept imbeciles.~
== BJAHEIR
~Helping someone isn't necessarily 'good,' TNO. Minsc has helped me in the past, I am repaying the favor. Perhaps you shouldn't be so closely bound to your sense of neutrality.~
== BMINSC
~And leave Boo out of this!~
== BJAHEIR
~You need to open your mind to good and evil. Just because you aren't either of them doesn't mean you have to hate them. Learn about them, and figure out a way to balance them. That is what neutrality is.~
== S-BTNO
~*Sigh* Perhaps... perhaps I should... learn more about them. I thought... Eh, nevermind.~
=
~Minsc, I apologize for insulting your lifestyle... and Boo.~
== BMINSC
~Do not worry. Boo and I forgive you.~
== S-BTNO
~Eh, lets... lets get moving. But, just because you have shown me a self-fault doesn't mean I will change my ways. I take what I want if I need it.~
EXIT
APPEND BJAN
IF ~InParty("S-TNO")
See("S-TNO")
!STATECHECK("S-TNO",STATE_SLEEPING)
!STATECHECK("S-TNO",STATE_STUNNED)
!STATECHECK("S-TNO",STATE_SILENCED)
!Dead("S-TNO")
Global("JanInquiry","LOCALS",0)~ THEN BEGIN JanQuestion
SAY ~You know, TNO, you remind me of my great-great-great-great-great half aunt, who married my father's father, despite their vast age difference. She was sort of, you know, "anti-social," like you, which, if you think about it, it quite uncommon for someone in my family. Then again, she was always the oddball. She didn't like parties, didn't enjoy our company, and she most certainly did not like turnips. Oh dear, oh dear, she was quite the oddball. Perhaps she had some halfling in her, or maybe some dwarf... she lived an awfully long time, don't you think? Well, I guess you can't say, because--~
IF ~~ THEN DO ~SetGlobal("JanInquiry","LOCALS",1)~ EXTERN S-BTNO JanTNOStop
END
END
APPEND S-BTNO
IF ~~ THEN BEGIN JanTNOStop
SAY ~ENOUGH! Enough of your incessant drivel! Why can't you leave me in peace?~
IF ~~ THEN EXIT
END
END
CHAIN
IF ~InParty("Yoshimo")
See("Yoshimo")
!STATECHECK("Yoshimo",STATE_SLEEPING)
!STATECHECK("Yoshimo",STATE_STUNNED)
!STATECHECK("Yoshimo",STATE_SILENCED)
!Dead("Yoshimo")
InParty("Jaheira")
See("Jaheira")
!STATECHECK("Jaheira",STATE_SLEEPING)
!STATECHECK("Jaheira",STATE_STUNNED)
!STATECHECK("Jaheira",STATE_SILENCED)
!Dead("Jaheira")
AreaType(CITY)
Global("YoshimoMystery","LOCALS",0)
Global("TNOBanter","GLOBAL",2)~ THEN S-BTNO YoshMyst
~Yoshimo, why do you keep looking over your shoulder? No one is following us, I have checked.~
DO ~SetGlobal("YoshimoMystery","LOCALS",1) SetGlobal("TNOBanter","GLOBAL",3)~
== BYOSHIM
~What do you mean?~
== S-BTNO
~I can see the fear you have in your eyes... fear of what, though? Or of whom?~
== BYOSHIM
~I am not scared of anything or anyone in this city. Now leave me be.~
== S-BTNO
~Fine... but, would you mind telling us of your past? So far, you've mentioned nothing to <CHARNAME> or the rest of us. Why so mysterious?~
== BJAHEIR
~Hmm, the same could be said of you, TNO. Is that even your real name? Nobody has simple initials for their name.~
== S-BTNO
~I was talking to Yoshimo, Jaheira. And if you must know, TNO stands for... The Nameless One. My real name has been forgotten by everyone except me. TNO is what I go by.~
=
~But Yoshimo, can't you tell us something about you?~
== BYOSHIM
~*Mutters under his breath and walks ahead of TNO and Jaheira*~
== S-BTNO
~Hmmm, interesting, wouldn't you say?~
== BJAHEIR
~Yes... I wonder why he is so mysterious about himself. He's more mysterious than even you, TNO.~
== S-BTNO
~I guess so...~
== BJAHEIR
~But now that you mention it, he did appear scared... scared of what, though?~
== S-BTNO
~In time, things will unfold. We shall wait and see.~
EXIT
CHAIN
IF ~InParty("Edwin")
See("Edwin")
!STATECHECK("Edwin",STATE_SLEEPING)
!STATECHECK("Edwin",STATE_STUNNED)
!STATECHECK("Edwin",STATE_SILENCED)
!Dead("Edwin")
Gender("Edwin",FEMALE)
Global("EdwinaTNO1","LOCALS",0)~ THEN S-BTNO EdwinaMock
~Hmmm, Edwin, I'd have to say, I like your rump much better when you're... female. *Snickers*~
DO ~SetGlobal("EdwinaTNO1","LOCALS",0)~
== BEDWIN
~How dare you, you tiny, insignificant man!~
== S-BTNO
~Chauvanistic, too, right?~
== BEDWIN
~Yes, chauv-- wait, no! I will not fall for your trap!~
== S-BTNO
~Heh, just don't get your panties in a bunch. You complain enough. *Laughs*~
== BEDWIN
~I won't! Now leave me be. I have things to do.~
== S-BTNO
~Ah, yes, 'things.' Let me know how those girly things go, alright?~
== BEDWIN
~Maybe I will, maybe I won't... Hey!~
EXIT
if you want, I can delete your text from my post once you have it working