Battledale_PRC8/_module/nss/tri_pitflrusrde2.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

79 lines
1.7 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Custom User Defined Event
//:: FileName
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////
void main()
{
int nUser = GetUserDefinedEventNumber();
effect eDam;
effect nDie = EffectDeath(TRUE, TRUE);
effect nBoom = EffectVisualEffect(VFX_FNF_GREATER_RUIN);
effect nBoom2 = EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD);
effect nBoom3 = EffectVisualEffect(VFX_FNF_SCREEN_SHAKE);
object oDevil = GetObjectByTag("tri_pitfiendlord");
if(nUser == 1001) //HEARTBEAT
{
}
else if(nUser == 1002) // PERCEIVE
{
}
else if(nUser == 1003) // END OF COMBAT
{
}
else if(nUser == 1004) // ON DIALOGUE
{
int nCounter = GetListenPatternNumber();
if ((nCounter==60)||(nCounter==61))
{
object oTarget = GetObjectByTag("tri_pitfiendlord");
int nDamage;
nDamage=1000;
eDam = EffectDamage(nDamage, DAMAGE_TYPE_MAGICAL);
ApplyEffectToObject(DURATION_TYPE_INSTANT, nDie, oDevil);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget);
}
}
else if(nUser == 1005) // ATTACKED
{
}
else if(nUser == 1006) // DAMAGED
{
}
else if(nUser == 1007) // DEATH
{
SpeakString("No! I cannot be defeated....");
ApplyEffectToObject(DURATION_TYPE_INSTANT, nBoom3, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_INSTANT, nBoom2, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_INSTANT, nBoom, OBJECT_SELF);
}
else if(nUser == 1008) // DISTURBED
{
}
}