Battledale_PRC8/_module/nss/jw_bunty_sed.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

96 lines
1.8 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Custom User Defined Event
//:: FileName
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////
#include "NW_I0_GENERIC"
void main()
{
int nUser = GetUserDefinedEventNumber();
if(nUser == 1001) //HEARTBEAT
{
}
else if(nUser == 1002) // PERCEIVE
{
object oPC=GetLastPerceived();
if (!GetIsPC(oPC))
{
return;
}
object oRobe=GetItemInSlot(INVENTORY_SLOT_CHEST,oPC);
int nRandom=Random(3)+1;
string sSound;
if (GetTag(oRobe)=="jw_rogues_outfit")
{
sSound="as_an_ratsqueak";
}
else
{
sSound="c_rat_atk";
}
sSound=sSound+IntToString(nRandom);
PlaySound(sSound);
object oGirl=GetObjectByTag("jw_elendie");
AssignCommand(oGirl,PlaySound(sSound));
}
else if(nUser == 1003) // END OF COMBAT
{
}
else if(nUser == 1004) // ON DIALOGUE
{
WalkWayPoints();
int nCounter = GetListenPatternNumber();
if ((nCounter==50)||(nCounter==51))
{
object oObject=GetNearestObjectByTag("jw_rog_codedr");
AssignCommand(oObject,SetLocked(oObject,FALSE));
AssignCommand(oObject,ActionOpenDoor(oObject));
//DelayCommand(10.0,AssignCommand(oObject,ActionCloseDoor(oObject)));
// DelayCommand(10.5,AssignCommand(oObject,SetLocked(oObject,TRUE)));
}
else
{
}
}
else if(nUser == 1005) // ATTACKED
{
}
else if(nUser == 1006) // DAMAGED
{
}
else if(nUser == 1007) // DEATH
{
}
else if(nUser == 1008) // DISTURBED
{
}
}