Rune_PRC8/_module/nss/ww_msg_biotechan.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

37 lines
1.3 KiB
Plaintext

//::///////////////////////////////////////////////
//:: 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);
}
}