Finished PRC8 integration. Moved creature abilities to top hak. Setup tooling. Created release archive
84 lines
1.7 KiB
Plaintext
84 lines
1.7 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Custom User Defined Event
|
|
//:: FileName
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By:
|
|
//:: Created On:
|
|
//:://////////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
|
|
|
int nUser = GetUserDefinedEventNumber();
|
|
int nRandom;
|
|
int nEffect;
|
|
effect eVis = EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_1);
|
|
effect eSummon = EffectSummonCreature("jw_rat_summon");
|
|
location lLoc;
|
|
|
|
if(nUser == 1001) //HEARTBEAT
|
|
{
|
|
|
|
|
|
}
|
|
else if(nUser == 1002) // PERCEIVE
|
|
{
|
|
|
|
}
|
|
else if(nUser == 1003) // END OF COMBAT
|
|
{
|
|
|
|
}
|
|
else if(nUser == 1004) // ON DIALOGUE
|
|
{
|
|
|
|
}
|
|
else if(nUser == 1005) // ATTACKED
|
|
{
|
|
|
|
}
|
|
else if(nUser == 1006) // DAMAGED
|
|
{
|
|
lLoc=GetLocation(GetLastDamager());
|
|
|
|
nRandom=d4();
|
|
switch (nRandom)
|
|
{
|
|
case 1: nEffect=VFX_COM_BLOOD_LRG_GREEN;
|
|
break;
|
|
case 2: nEffect=VFX_COM_BLOOD_REG_GREEN;
|
|
break;
|
|
case 3: nEffect=VFX_COM_BLOOD_CRT_GREEN;
|
|
break;
|
|
case 4: nEffect=VFX_COM_CHUNK_GREEN_MEDIUM;
|
|
break;
|
|
}
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(nEffect),OBJECT_SELF);
|
|
|
|
if (GetLocalInt(OBJECT_SELF,"nDone")!=2)
|
|
{
|
|
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVis, lLoc);
|
|
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, eSummon, lLoc);
|
|
SetLocalInt(OBJECT_SELF,"nDone",2);
|
|
}
|
|
|
|
|
|
}
|
|
else if(nUser == 1007) // DEATH
|
|
{
|
|
|
|
}
|
|
else if(nUser == 1008) // DISTURBED
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|