generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
13
_module/nss/ct_potion28.nss
Normal file
13
_module/nss/ct_potion28.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetItemActivator();
|
||||
int iHD = GetHitDice(oPC);
|
||||
int iHP = GetCurrentHitPoints(oPC);
|
||||
int iDAMAGE = iHD*10/5;
|
||||
effect eDamage = EffectDamage(iDAMAGE, DAMAGE_TYPE_MAGICAL, DAMAGE_POWER_PLUS_TWO);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oPC);
|
||||
AssignCommand(oPC, ActionSpeakString("OUCH!"));
|
||||
DelayCommand(2.5, AssignCommand(oPC, ActionSpeakString("My skin is boiling off AHHHH!")));
|
||||
effect eDamage1 = EffectAbilityDecrease(ABILITY_CHARISMA, 1);
|
||||
DelayCommand(3.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage1, oPC));
|
||||
}
|
||||
Reference in New Issue
Block a user