// Dialogues IF InParty(Myself) Global("##MyNPCFriendCheck","GLOBAL",0) Global("##MyNPCFriendship","GLOBAL",0) Global("##MyNPCFriendTalks","GLOBAL",0) OR(3) Race(Player1,GNOME) Race(Player1,DWARF) Race(Player1,HALFLING) !Alignment(Player1,MASK_EVIL) THEN RESPONSE #100 RealSetGlobalTimer("##MyNPCFriendTalksTimer","GLOBAL",1200) SetGlobal("##MyNPCFriendTalks","GLOBAL",1) SetGlobal("##MyNPCFriendCheck","GLOBAL",1) SetGlobal("##MyNPFriendship","GLOBAL",1) END IF InParty(Myself) Global("##MyNPCFriendCheck","GLOBAL",0) THEN RESPONSE #100 SetGlobal("##MyNPCFriendCheck","GLOBAL",1) END IF InParty(Myself) See(Player1) !StateCheck("MyNPC",CD_STATE_NOTVALID) !StateCheck(Player1,CD_STATE_NOTVALID) RealGlobalTimerExpired("##MyNPCFriendTalksTimer","GLOBAL") CombatCounter(0) !See([ENEMY]) OR(8) Global("##MyNPCFriendTalks","GLOBAL",1) Global("##MyNPCFriendTalks","GLOBAL",3) Global("##MyNPCFriendTalks","GLOBAL",5) Global("##MyNPCFriendTalks","GLOBAL",7) Global("##MyNPCFriendTalks","GLOBAL",9) Global("##MyNPCFriendTalks","GLOBAL",11) Global("##MyNPCFriendTalks","GLOBAL",13) Global("##MyNPCFriendTalks","GLOBAL",15) THEN RESPONSE #100 MoveToObject(Player1) Dialogue(Player1) END IF InParty(Myself) See(Player1) RealGlobalTimerExpired("##MyNPCFriendTalksTimer","GLOBAL") OR(5) Global("##MyNPCFriendTalks","GLOBAL",2) Global("##MyNPCFriendTalks","GLOBAL",6) Global("##MyNPCFriendTalks","GLOBAL",8) Global("##MyNPCFriendTalks","GLOBAL",12) Global("##MyNPCFriendTalks","GLOBAL",14) THEN RESPONSE #100 IncrementGlobal("##MyNPCFriendTalks","GLOBAL",1) END IF InParty(Myself) See(Player1) RealGlobalTimerExpired("##MyNPCFriendTalksTimer","GLOBAL") AreaType(FOREST) Global("##MyNPCFriendTalks","GLOBAL",4) THEN RESPONSE #100 SetGlobal("##MyNPCFriendTalks","GLOBAL",5) END