generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
36
_module/nss/ww_msg_biotechan.nss
Normal file
36
_module/nss/ww_msg_biotechan.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Witchwork: Trigger Message (Tears Wall)
|
||||
//:: WW_Msg_TearsWall.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
A template script. Create a copy where
|
||||
sString = a custom message that will be sent
|
||||
from the server to any player entering the
|
||||
trigger or area.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Rob Bartel
|
||||
//:: Created On: September 11, 2002
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oEnterer = GetEnteringObject();
|
||||
string sPlayerID = GetPCPlayerName(oEnterer) + GetName(oEnterer);
|
||||
int bSeenOnce = GetLocalInt(OBJECT_SELF, sPlayerID+"SeenOnce");
|
||||
string sString = "You have climbed down some rubble, it will be easy to climb back up to the roof and crawl through the hole if you wanted to leave again";
|
||||
|
||||
if (GetIsPC(oEnterer) == TRUE &&
|
||||
bSeenOnce == FALSE)
|
||||
{
|
||||
//Play GUI sound
|
||||
AssignCommand(oEnterer, PlaySound("gui_spell_mem"));
|
||||
|
||||
//Have the Player whisper the message to themselves.
|
||||
AssignCommand(oEnterer, SpeakString(sString, TALKVOLUME_WHISPER));
|
||||
|
||||
//Flag the player as having seen the message.
|
||||
SetLocalInt(OBJECT_SELF, sPlayerID+"SeenOnce", TRUE);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user