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.
26 lines
798 B
Plaintext
26 lines
798 B
Plaintext
void main()
|
|
|
|
{
|
|
|
|
object oPC=GetEnteringObject();
|
|
//object oRight = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC);
|
|
effect ePitfall = EffectKnockdown();
|
|
//if (FortitudeSave(oPC,20,SAVING_THROW_ALL)==0)
|
|
int nDamage=d10(3);
|
|
if(GetIsPC(oPC)||GetIsPC(GetMaster(oPC)))
|
|
{
|
|
if (FortitudeSave(oPC,18,SAVING_THROW_TYPE_ALL)==1)
|
|
{
|
|
SendMessageToPC(oPC,"Saved for half damage");
|
|
nDamage=nDamage/2;
|
|
}
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectDamage(nDamage,DAMAGE_TYPE_BLUDGEONING,DAMAGE_POWER_PLUS_FIVE),oPC);
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, ePitfall, oPC, RoundsToSeconds(2));
|
|
AssignCommand(oPC,PlayVoiceChat(VOICE_CHAT_PAIN1));
|
|
SendMessageToPC(oPC,"You fall into a pit, and find yourself shocked and hurt by the sudden impact..");
|
|
// AssignCommand(oPC, ActionPutDownItem(oRight));
|
|
}
|
|
}
|
|
|