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.
77 lines
1.6 KiB
Plaintext
77 lines
1.6 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Name x2_def_userdef
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Default On User Defined Event script
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Keith Warner
|
|
//:: Created On: June 11/03
|
|
//:://////////////////////////////////////////////
|
|
|
|
const int EVENT_USER_DEFINED_PRESPAWN = 1510;
|
|
const int EVENT_USER_DEFINED_POSTSPAWN = 1511;
|
|
void main()
|
|
{
|
|
int nUser = GetUserDefinedEventNumber();
|
|
|
|
if(nUser == EVENT_HEARTBEAT ) //HEARTBEAT
|
|
{
|
|
|
|
}
|
|
else if(nUser == EVENT_PERCEIVE) // PERCEIVE
|
|
{
|
|
|
|
}
|
|
else if(nUser == EVENT_END_COMBAT_ROUND) // END OF COMBAT
|
|
{
|
|
|
|
}
|
|
else if(nUser == EVENT_DIALOGUE) // ON DIALOGUE
|
|
{
|
|
|
|
}
|
|
else if(nUser == EVENT_ATTACKED) // ATTACKED
|
|
{
|
|
|
|
}
|
|
else if(nUser == EVENT_DAMAGED) // DAMAGED
|
|
{
|
|
int nEffect;
|
|
int nRandom=d4();
|
|
switch (nRandom)
|
|
{
|
|
case 1: nEffect=VFX_COM_BLOOD_LRG_YELLOW;
|
|
break;
|
|
case 2: nEffect=VFX_COM_CHUNK_BONE_MEDIUM;
|
|
break;
|
|
case 3: nEffect=VFX_COM_CHUNK_YELLOW_MEDIUM;
|
|
break;
|
|
case 4: nEffect=VFX_COM_CHUNK_YELLOW_SMALL;
|
|
break;
|
|
}
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(nEffect),OBJECT_SELF);
|
|
}
|
|
else if(nUser == 1007) // DEATH - do not use for critical code, does not fire reliably all the time
|
|
{
|
|
|
|
}
|
|
else if(nUser == EVENT_DISTURBED) // DISTURBED
|
|
{
|
|
|
|
}
|
|
else if (nUser == EVENT_USER_DEFINED_PRESPAWN)
|
|
{
|
|
|
|
}
|
|
else if (nUser == EVENT_USER_DEFINED_POSTSPAWN)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|