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:
72
_module/nss/jw_duergasla_usd.nss
Normal file
72
_module/nss/jw_duergasla_usd.nss
Normal file
@@ -0,0 +1,72 @@
|
||||
//::////////////////////////////////////////////////
|
||||
//:: Custom User Defined Event
|
||||
//:: FileName
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By:
|
||||
//:: Created On:
|
||||
//:://////////////////////////////////////////////
|
||||
#include "NW_I0_GENERIC"
|
||||
void main()
|
||||
{
|
||||
int nRandom;
|
||||
object oObject;
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
{
|
||||
if (!IsInConversation(OBJECT_SELF)&&!GetIsInCombat(OBJECT_SELF))
|
||||
|
||||
{
|
||||
oObject=(GetObjectByTag(GetTag(OBJECT_SELF)+"_ore"));
|
||||
|
||||
if (GetIsObjectValid(oObject))
|
||||
{
|
||||
//ActionMoveToObject(oObject);
|
||||
DoPlaceableObjectAction(oObject,PLACEABLE_ACTION_BASH);
|
||||
PlaySound("as_cv_minepick1");
|
||||
// AssignCommand(oObject,DelayCommand(1.3,ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_COM_SPARKS_PARRY),OBJECT_SELF)));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else if(nUser == 1002) // PERCEIVE
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1003) // END OF COMBAT
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1004) // ON DIALOGUE
|
||||
{
|
||||
if (GetIsObjectValid(GetLastSpeaker())&&GetIsPC(GetLastSpeaker()))
|
||||
{
|
||||
ClearAllActions();
|
||||
SpeakString("Leave me to my work");
|
||||
}
|
||||
}
|
||||
else if(nUser == 1005) // ATTACKED
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1006) // DAMAGED
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1007) // DEATH
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1008) // DISTURBED
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user