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.
This commit is contained in:
34
_module/nss/jw_banestat_used.nss
Normal file
34
_module/nss/jw_banestat_used.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
void main()
|
||||
{
|
||||
int nOK=0;
|
||||
object oPC=GetLastUsedBy();
|
||||
string sDeity=GetDeity(oPC);
|
||||
int nHP;
|
||||
if (sDeity=="Bane"||sDeity=="bane")
|
||||
{
|
||||
nOK=1;
|
||||
}
|
||||
if (GetAlignmentGoodEvil(oPC)==ALIGNMENT_EVIL&&GetAlignmentLawChaos(oPC)==ALIGNMENT_LAWFUL)
|
||||
{
|
||||
nOK=1;
|
||||
}
|
||||
if (sDeity=="Cyric"||sDeity=="cyric")
|
||||
{
|
||||
nOK=0;
|
||||
}
|
||||
|
||||
if (nOK==0)
|
||||
{
|
||||
nHP=GetCurrentHitPoints(oPC);
|
||||
nHP=nHP-1;
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectDamage(nHP,DAMAGE_TYPE_NEGATIVE,DAMAGE_POWER_PLUS_FIVE),oPC);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_REDUCE_ABILITY_SCORE),oPC);
|
||||
AssignCommand(oPC,ClearAllActions());
|
||||
AssignCommand(oPC,PlayVoiceChat(VOICE_CHAT_PAIN2));
|
||||
AssignCommand(oPC,PlayAnimation(ANIMATION_LOOPING_DEAD_FRONT,0.5,100.0));
|
||||
}
|
||||
|
||||
|
||||
SpeakString("Inscribed on this statue you see: Defy Bane and die - or in death find loyalty to him, for he shall compel it");
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user