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.
This commit is contained in:
82
_module/nss/jw_kethoth_usd.nss
Normal file
82
_module/nss/jw_kethoth_usd.nss
Normal file
@@ -0,0 +1,82 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Custom User Defined Event
|
||||
//:: FileName
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By:
|
||||
//:: Created On:
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1002) // PERCEIVE
|
||||
{
|
||||
|
||||
object oSeen=GetLastPerceived();
|
||||
if (GetIsPC(oSeen)&&(!GetIsInCombat(OBJECT_SELF)))
|
||||
{
|
||||
PlayVoiceChat(VOICE_CHAT_LAUGH);
|
||||
SpeakString("I shall feed you to my spiders");
|
||||
ActionCastSpellAtObject(SPELL_SHADOW_CONJURATION_MAGE_ARMOR,OBJECT_SELF,METAMAGIC_ANY,TRUE,0,PROJECTILE_PATH_TYPE_DEFAULT,TRUE);
|
||||
}
|
||||
|
||||
}
|
||||
else if(nUser == 1003) // END OF COMBAT
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1004) // ON DIALOGUE
|
||||
{
|
||||
int nCounter = GetListenPatternNumber();
|
||||
if ((nCounter==50)||(nCounter==51))
|
||||
{
|
||||
|
||||
|
||||
SpeakString("No! Do not say her name!");
|
||||
|
||||
}
|
||||
}
|
||||
else if(nUser == 1005) // ATTACKED
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
else if(nUser == 1006) // DAMAGED
|
||||
{
|
||||
if (GetCurrentHitPoints(OBJECT_SELF)<=(GetMaxHitPoints(OBJECT_SELF)/4*3)&&(GetLocalInt(OBJECT_SELF,"golems")!=TRUE))
|
||||
{
|
||||
SpeakString("KILLEMALL",TALKVOLUME_SILENT_SHOUT);
|
||||
|
||||
SpeakString("Mumbles a word . . .");
|
||||
SetLocalInt(OBJECT_SELF,"golems",TRUE);
|
||||
}
|
||||
}
|
||||
else if(nUser == 1007) // DEATH
|
||||
{
|
||||
|
||||
SignalEvent(GetObjectByTag("jw_golem_df"),EventUserDefined(50));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
else if(nUser == 1008) // DISTURBED
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user