21 lines
624 B
Plaintext
21 lines
624 B
Plaintext
|
void main()
|
||
|
{
|
||
|
// Get the entering object (usually a player character)
|
||
|
object oPC = GetEnteringObject();
|
||
|
|
||
|
// Check if the entering object is a player character and not the module itself
|
||
|
if (GetIsPC(oPC) && !GetIsDM(oPC))
|
||
|
{
|
||
|
// Find the nearest creature with the tag "TARMEPHIT001"
|
||
|
object oCreature = GetNearestObjectByTag("TARMEPHIT001", oPC);
|
||
|
|
||
|
// Check if a valid creature was found
|
||
|
if (GetIsObjectValid(oCreature))
|
||
|
{
|
||
|
// Make the creature say the message
|
||
|
SpeakString("Hey, you stay away from our tar!", TALKVOLUME_SHOUT);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|