Ok, I played around with it some more today. Larz sometimes gets the message he's supposed to talk with *someone* in the morning, but not to whom. If Nara's in the party, he has the banter with her; if she's not, and Morul is, he'll banter with Morul. If neither is in the party, nothing happens. The three banters are in different Mage Trio banter files--the one that is supposed to fire is in Larz's, the Nara banter in Nara's, and the Morul banter in Morul's. All three are started by Larz.
I also coded a much shorter test banter between Jaheira and Larz and that did work, after I fixed a missed variable. I had made the same mistake in the DR banter, but fixing it still did not get the morning after banter to fire. I am not sure, at this point, what else to try.
For what it's worth, the test script runs:
//in Larz's d script
IF
CombatCounter(0)
!See([ENEMY])
!StateCheck("Larz",CD_STATE_NOTVALID)
!StateCheck("Jaheira",CD_STATE_NOTVALID)
InMyArea("Jaheira")
InParty("Jaheira")
GLOBAL("TM#TestRest","GLOBAL",0)
THEN
Response #100
SetGlobal("TM#TestRest","GLOBAL",1)
Interact("Jaheira")
END
//In the banter file
CHAIN
IF
WEIGHT #-1
~
GLOBAL("TM#TestRest","GLOBAL",1)~ THEN BTM#LAR TM#TestChat
~Hi. I am trying to see if it is possible to do an evening and morning chat.~
==BJAHEIR ~Truly? Well, let us sleep and we will see if it is a success.~
DO ~SetGlobal("TM#TestRest","GLOBAL",2) RestParty()~
EXIT
CHAIN
IF
WEIGHT #-1
~
GLOBAL("TM#TestRest","GLOBAL",3)~
THEN BTM#Lar TM#TestChatAM
~Did it work?~
DO ~SetGlobal("TM#TestRest","GLOBAL",4)~
== BJAHEIR ~It is too early to say.~
EXIT
//In Larz's override script:
IF
CombatCounter(0)
!See([ENEMY])
!StateCheck("Larz",CD_STATE_NOTVALID)
!StateCheck("Jaheira",CD_STATE_NOTVALID)
InMyArea("Jaheira")
InParty("Jaheira")
GLOBAL("TM#TestRest","GLOBAL",2)
THEN
Response #100
SetGlobal("TM#TestRest","GLOBAL",3)
ActionOverride("Larz",Interact("Jaheira"))
END
Edited by Bookwyrme, 02 September 2007 - 01:33 PM.