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:
98
_module/nss/jw_ogregrds_usd.nss
Normal file
98
_module/nss/jw_ogregrds_usd.nss
Normal file
@@ -0,0 +1,98 @@
|
||||
//:://///////////////////////////////////////////////////
|
||||
//:: Custom User Defined Event
|
||||
//:: FileName
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
*/
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Created By:
|
||||
//:: Created On:
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "NW_I0_GENERIC"
|
||||
#include "nw_i0_tool"
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
{
|
||||
return;
|
||||
|
||||
int nRandom=Random(4);
|
||||
if (nRandom==1)
|
||||
|
||||
{
|
||||
nRandom=Random(3)+1;
|
||||
PlaySound("as_an_ogregrunt"+IntToString(nRandom));
|
||||
ActionPlayAnimation(ANIMATION_FIREFORGET_TAUNT);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else if(nUser == 1002) // PERCEIVE
|
||||
{
|
||||
object oPC=GetLastPerceived();
|
||||
|
||||
if (GetIsObjectValid(oPC)&&GetObjectSeen(oPC,OBJECT_SELF)&&GetIsPC(oPC))
|
||||
{
|
||||
if (!CheckPartyForItem(oPC,"jw_ogre_amulet"))
|
||||
{
|
||||
ActionSpeakString("You no be here!");
|
||||
SetIsTemporaryEnemy(oPC,OBJECT_SELF,TRUE,300.0);
|
||||
if ((!IsInConversation(OBJECT_SELF))&&(!GetIsInCombat(OBJECT_SELF)))
|
||||
{
|
||||
ClearAllActions();
|
||||
ActionAttack(oPC);
|
||||
}
|
||||
}
|
||||
// else
|
||||
// if ((!IsInConversation(OBJECT_SELF))&&(!GetIsInCombat(OBJECT_SELF)))
|
||||
|
||||
// {
|
||||
// WalkWayPoints();
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
if (GetIsObjectValid(oPC)&&GetObjectSeen(oPC,OBJECT_SELF)&&GetIsEnemy(oPC)&&(!GetIsInCombat(OBJECT_SELF)))
|
||||
{
|
||||
ClearAllActions();
|
||||
ActionAttack(oPC);
|
||||
}
|
||||
|
||||
}
|
||||
else if(nUser == 1003) // END OF COMBAT
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
else if(nUser == 1004) // ON DIALOGUE
|
||||
{
|
||||
|
||||
}
|
||||
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