IF
    InParty(Myself)
    See(Player1)
    !StateCheck(Player1,CD_STATE_NOTVALID)
    !StateCheck(Myself,CD_STATE_NOTVALID)
    CombatCounter(0)
    Global("ValedrinScholarTalk1","GLOBAL",0)
    Global("UlcasterBook","GLOBAL",1) // Po oddaniu książki duchowi Ulcastera
THEN
    RESPONSE #100
        SetGlobal("ValedrinScholarTalk1","GLOBAL",1)
        StartDialogue("DIJAJ",Player1)
END

// Wersja A: Odpala się od razu po wciśnięciu przycisku odpoczynku (tuż przed/po śnie)
IF
    InParty(Myself)
    See(Player1)
    !StateCheck(Player1,CD_STATE_NOTVALID)
    !StateCheck(Myself,CD_STATE_NOTVALID)
    CombatCounter(0)
    Global("ValedrinScholarTalk1","GLOBAL",2) // Musiał odbyć się pierwszy dialog
    Global("ValedrinScholarTalk2","GLOBAL",0)
    PartyRested() // Wykrycie odpoczynku
THEN
    RESPONSE #100
        SetGlobal("ValedrinScholarTalk2","GLOBAL",1)
        StartDialogue("DIJAJ2",Player1)
END

IF
    InParty("VALEDRIN")
    Global("ValedrinWasInParty","LOCALS",0)
THEN
    RESPONSE #100
        SetGlobal("ValedrinWasInParty","LOCALS",1)
END

IF
    !InParty("VALEDRIN")
    Global("ValedrinWasInParty","LOCALS",1)
    Global("ValedrinKickedOut","LOCALS",0)
THEN
    RESPONSE #100
        SetGlobal("ValedrinKickedOut","LOCALS",1)
        StartDialogue("DIJAP",Player1)
END