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("FaPCTimerStarted","GLOBAL",0)
THEN
RESPONSE #100
RealSetGlobalTimer("FaFriendTalkTime","GLOBAL",60)
SetGlobal("FaPCTimerStarted","GLOBAL",1)
SetGlobal("FaFriendTalk","GLOBAL",1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
!StateCheck(Player1,STATE_SLEEPING)
RealGlobalTimerExpired("FaFriendTalkTime","GLOBAL")
See(Player1)
AreaCheck("AR8600")
Global("FaFriendTalk","GLOBAL",1)
THEN
RESPONSE #100
IncrementGlobal("FaFriendTalk","GLOBAL",1)
RealSetGlobalTimer("FaFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("FaFriendlyTalkTime","GLOBAL")
Global("FaFriendTalk","GLOBAL",2)
THEN
RESPONSE #100
RealSetGlobalTimer("FaFriendTalkTime","GLOBAL",7200)
IncrementGlobal("FaFriendTalk","GLOBAL",1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
!StateCheck(Player1,STATE_SLEEPING)
RealGlobalTimerExpired("FaFriendTalkTime","GLOBAL")
See(Player1)
CombatCounter(0)
OR(2)
Global("FaFriendTalk","GLOBAL",3)
Global("FaFriendTalk","GLOBAL",5)
THEN
RESPONSE #100
IncrementGlobal("FaFriendTalk","GLOBAL",1)
RealSetGlobalTimer("FaFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("FaFriendlyTalkTime","GLOBAL")
OR(2)
Global("FaFriendTalk","GLOBAL",4)
Global("FaFriendTalk","GLOBAL",6)
THEN
RESPONSE #100
RealSetGlobalTimer("FaFriendTalkTime","GLOBAL",7200)
IncrementGlobal("FaFriendTalk","GLOBAL",1)
END


IF
RealGlobalTimerExpired("DreamTalk","GLOBAL")
InParty(Myself) CombatCounter(0) !See([ENEMY])
Global("blanket","GLOBAL",0)
PartyRested()
Global("FAJA1","LOCALS",0)
InParty("JAHEIRA")
THEN
RESPONSE #100
SetGlobal("blanket","GLOBAL",1)
RealSetGlobalTimer("FaFriendlyTalkTime","GLOBAL",10)
StartDialogueNoSet("JAHEIRA")
END

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

