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

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

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("ViFriendTalkTime","GLOBAL")
!StateCheck(Player1,STATE_SLEEPING)
See(Player1)
AreaType(FOREST)
TimeOfDay(DAY)
Global("ViFriendTalk","GLOBAL",0)
THEN
RESPONSE #100
IncrementGlobal("ViFriendTalk","GLOBAL",1)
RealSetGlobalTimer("ViFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("ViFriendlyTalkTime","GLOBAL")
Global("ViFriendTalk","GLOBAL",1)
THEN
RESPONSE #100
IncrementGlobal("ViFriendTalk","GLOBAL",1)
RealSetGlobalTimer("ViFriendTalkTime","GLOBAL",18000)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("ViFriendTalkTime","GLOBAL")
!StateCheck(Player1,STATE_SLEEPING)
See(Player1)
InParty("Imoen2")
Global("ViFriendTalk","GLOBAL",2)
THEN
RESPONSE #100
IncrementGlobal("ViFriendTalk","GLOBAL",1)
RealSetGlobalTimer("ViFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("ViFriendlyTalkTime","GLOBAL")
Global("ViFriendTalk","GLOBAL",3)
THEN
RESPONSE #100
IncrementGlobal("ViFriendTalk","GLOBAL",1)
RealSetGlobalTimer("ViFriendTalkTime","GLOBAL",18000)
END



