PoA_PRC8/_module/nss/danger.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

27 lines
641 B
Plaintext

void main()
{
// Remove some gold from the player
object oPC = GetEnteringObject();
// replace this tag string with the tag string of your NPC.
object oNPC = GetNearestObjectByTag("DANGER");
{
// check to make sure NPC isn't already talking to somebody.
if (!IsInConversation(oNPC)) {
// stop whatever we were already doing.
AssignCommand(oNPC, ClearAllActions());
// start talking to PC.
AssignCommand(oNPC, ActionStartConversation(oPC));
}
}
}