Changed folder name.
Changed folder name.
This commit is contained in:
24
_module/nss/secrettrigger3.nss
Normal file
24
_module/nss/secrettrigger3.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
void main()
|
||||
{
|
||||
|
||||
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
// replace this tag string with the tag string of your NPC.
|
||||
object oNPC = GetNearestObjectByTag("secretdoor3");
|
||||
|
||||
{
|
||||
|
||||
// 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));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user