IF
InParty(Myself)
Global("DreamTimerStarted","GLOBAL",0)
THEN
RESPONSE #100
RealSetGlobalTimer("DreamTalk","GLOBAL",180)
SetGlobal("DreamTimerStarted","GLOBAL",1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
Global("AlPCTimerStarted","GLOBAL",0)
THEN
RESPONSE #100
RealSetGlobalTimer("AlFriendTalkTime","GLOBAL",10)
SetGlobal("AlPCTimerStarted","GLOBAL",1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("AlFriendTalkTime","GLOBAL")
Global("AlFriendTalk","GLOBAL",0)
AreaType(CITY)
THEN
RESPONSE #100
IncrementGlobal("AlFriendTalk","GLOBAL",1)
RealSetGlobalTimer("AlFriendlyTalkTime","GLOBAL",10)
StartDialogueNoSet(Player1)
END

IF 
InParty(Myself)
RealGlobalTimerExpired("AlFriendlyTalkTime","GLOBAL")
Global("AlFriendTalk","GLOBAL",1)
THEN
RESPONSE #100
IncrementGlobal("AlFriendTalk","GLOBAL",1)
RealSetGlobalTimer("AlFriendTalkTime","GLOBAL",18000)
END

IF
RealGlobalTimerExpired("AlFriendTalkTime","GLOBAL")
InParty(Myself) CombatCounter(0) !See([ENEMY])
InParty("Imoen2")
Global("AlFriendTalk","GLOBAL",2)
AreaType(CITY)
THEN
RESPONSE #100
IncrementGlobal("AlFriendTalk","GLOBAL",1)
RealSetGlobalTimer("AlFriendlyTalkTime","GLOBAL",10)
StartDialogueNoSet(Player1)
END

IF 
InParty(Myself)
RealGlobalTimerExpired("AlFriendlyTalkTime","GLOBAL")
Global("AlFriendTalk","GLOBAL",3)
THEN
RESPONSE #100
IncrementGlobal("AlFriendTalk","GLOBAL",1)
RealSetGlobalTimer("AlFriendTalkTime","GLOBAL",18000)
END


