IF
  Global("demninvi01","GLOBAL",0)
  See([PC])
  Range([PC],25)
THEN
  RESPONSE #100
    StartDialogue("demninvi",Player1)
    SetGlobal("demninvi01","GLOBAL",1)
END

IF
  Global("demninvidlga","GLOBAL",2)
THEN
  RESPONSE #100
    Wait(7)
    StartDialogue("demnport",Player1)
    SetGlobal("demninvidlga","GLOBAL",3)
END

