Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2022-10-07 14:20:31 -04:00
parent 0bbbd2678a
commit 128e7e59a4
7060 changed files with 4955665 additions and 0 deletions

26
module/nss/danger.nss Normal file
View File

@@ -0,0 +1,26 @@
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));
}
}
}