Initial commit

Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
Jaysyn904
2024-01-04 07:49:38 -05:00
parent df18cd54c8
commit 28cdb617b3
12943 changed files with 9727121 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
//File name: zep_marilith_end
//Usage/Description: OnCombatRound End script for Marilith.
#include "zep_inc_scrptdlg"
void main()
{
object oTarget = GetAttackTarget();
int nTargetAC = GetAC(oTarget);
int nRoll = d20();
int nCrit = FALSE;
if(nRoll >= 19) //crit on natural 19-20
{
if (d20()+8 >nTargetAC)
{
nCrit = TRUE;
}
}
if(nRoll + 8 >= nTargetAC)
{
int nDamage = d8() + 2;
effect eDamage = EffectDamage(nDamage, DAMAGE_TYPE_SLASHING, DAMAGE_POWER_NORMAL);
if(nCrit == TRUE)
{
nDamage = d8(2) + 4;
eDamage = EffectDamage(nDamage, DAMAGE_TYPE_SLASHING, DAMAGE_POWER_NORMAL);
}
string sMessageToPC = GetStringByStrRef(nZEPMarilithDMG,GENDER_MALE);
SendMessageToPC(oTarget, sMessageToPC+IntToString(nDamage));
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oTarget);
}
}