Module commit

Module commit.
This commit is contained in:
Jaysyn904
2024-06-14 10:48:20 -04:00
parent 079830314c
commit f5ffe7d0b9
11110 changed files with 4747686 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
// Vampire domination ability
void vamp_domination(object oPC, object oTarget)
{
if (GetIsImmune(oTarget,IMMUNITY_TYPE_DOMINATE)==FALSE)
{
// Create and link effects.
effect eDominated = EffectDominated();
effect eMind = EffectVisualEffect(VFX_DUR_MIND_AFFECTING_DOMINATED);
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_NEGATIVE);
effect eLink = EffectLinkEffects(eMind, eDominated);
eLink = EffectLinkEffects(eLink, eDur);
// Duration and spell DC
int iDuration = 12;
int SpellDC = 10 + (GetHitDice(oPC)/2)+GetAbilityModifier(ABILITY_CHARISMA,oPC);
// Make spell save.
int Save = WillSave(oTarget,SpellDC,SAVING_THROW_TYPE_MIND_SPELLS,oPC);
// If will save failed.
if (Save == 0 )
{
// Target is dominated.
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget,RoundsToSeconds(iDuration));
}
}
else SendMessageToPC(oPC, "Target is immune to domination.");
}