Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 20:24:01 -04:00
parent 4e16ca63ca
commit 5197ad9a4d
7741 changed files with 5391820 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));
}
}
}