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.
88 lines
1.6 KiB
Plaintext
88 lines
1.6 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Custom User Defined Event
|
|
//:: FileName
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By:
|
|
//:: Created On:
|
|
//:://////////////////////////////////////////////
|
|
|
|
|
|
|
|
void main()
|
|
{
|
|
int nUser = GetUserDefinedEventNumber();
|
|
|
|
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
|
|
{
|
|
|
|
}
|
|
else if(nUser == 1007) // DEATH
|
|
{
|
|
|
|
location llocation = GetLocation(OBJECT_SELF);
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_BREACH), llocation);
|
|
|
|
if(GetLocalInt(OBJECT_SELF, "Loot")==1)
|
|
{
|
|
int nDice = d6(1);
|
|
if(nDice == 1)
|
|
{
|
|
CreateItemOnObject("fr_iwd_rw01", OBJECT_SELF);
|
|
}
|
|
if(nDice == 2)
|
|
{
|
|
CreateItemOnObject("fr_iwd_rw02", OBJECT_SELF);
|
|
}
|
|
if(nDice == 3)
|
|
{
|
|
CreateItemOnObject("fr_iwd_rw03", OBJECT_SELF);
|
|
}
|
|
if(nDice == 4)
|
|
{
|
|
CreateItemOnObject("fr_iwd_rw04", OBJECT_SELF);
|
|
}
|
|
if(nDice == 5)
|
|
{
|
|
CreateItemOnObject("fr_iwd_rw05", OBJECT_SELF);
|
|
}
|
|
if(nDice == 6)
|
|
{
|
|
CreateItemOnObject("fr_iwd_rw06", OBJECT_SELF);
|
|
}
|
|
}
|
|
|
|
}
|
|
else if(nUser == 1008) // DISTURBED
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|