Files
HeroesStone_PRC8/_module/nss/percept_npc1.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

30 lines
714 B
Plaintext

void main()
{
// * if not runnning normal or better Ai then exit for performance reasons
// * if not runnning normal or better Ai then exit for performance reasons
if (GetAILevel() == AI_LEVEL_VERY_LOW) return;
object oPercep = GetLastPerceived();
int bSeen = GetLastPerceptionSeen();
int bHeard = GetLastPerceptionHeard();
if(!GetIsPC(oPercep)) return;
if (oPercep != OBJECT_INVALID)
{
if (bSeen)
{
ActionSpeakString("I can see you.");
return;
}
if (bHeard)
{
ActionSpeakString("I can hear you.");
return;
}
}
}