Added NESS. Updated Level 10
Added NESS. Updated Level 10. Full compile.
This commit is contained in:
21
Module/nss/lvl10_msg02.nss
Normal file
21
Module/nss/lvl10_msg02.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
void main()
|
||||
{
|
||||
object oActor;
|
||||
|
||||
// Get the creature who triggered this event.
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
// Only fire for (real) PCs.
|
||||
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
|
||||
return;
|
||||
|
||||
// Only fire once per PC.
|
||||
if ( GetLocalInt(oPC, "DO_ONCE__" + GetTag(OBJECT_SELF)) )
|
||||
return;
|
||||
SetLocalInt(oPC, "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
// Have Werna's Sending strike up a conversation with the PC.
|
||||
oActor = GetNearestObjectByTag("LVL10_MSG02", oPC);
|
||||
AssignCommand(oActor, ActionStartConversation(oPC, "lvl10_msg02", FALSE, FALSE));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user