Aschbourne_PRC8/_module/nss/on_enter_buildng.nss

16 lines
523 B
Plaintext
Raw Normal View History

2024-06-14 10:48:20 -04:00
#include "vamp_friends"
void main()
{
object oPC = GetEnteringObject();
// if the character is a valid player character, run the following...
if (GetIsObjectValid(oPC))
{
//If entering object is Undead, make it friendly towards every vampire on module.
//If entering object is Vampire, make every undead on area friendly towards entering vampire.
vamp_friends(oPC);
PrintString("on_enter: " + GetName(oPC) + " (is a valid object) entering "+GetName(GetArea(oPC)));
}
}